NeoMutt  2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
File Mapping API

Prototype for a text handler function for mutt_file_map_lines(). More...

Functions

static bool add_query_msgid (char *line, int line_num, void *user_data)
 Parse a Message-ID and add it to a list - Implements mutt_file_map_t -.

Detailed Description

Prototype for a text handler function for mutt_file_map_lines().

Parameters
lineLine of text read
line_numLine number
user_dataData to pass to the callback function
Return values
trueRead was successful
falseAbort the reading and free the string

Function Documentation

◆ add_query_msgid()

bool add_query_msgid ( char * line,
int line_num,
void * user_data )
static

Parse a Message-ID and add it to a list - Implements mutt_file_map_t -.

Return values
trueAlways

Definition at line 182 of file compile.c.

183{
184 struct ListHead *msgid_list = (struct ListHead *) (user_data);
185 char *nows = mutt_str_skip_whitespace(line);
186 if (*nows == '\0')
187 return true;
189 mutt_list_insert_tail(msgid_list, mutt_str_dup(nows));
190 return true;
191}
struct ListNode * mutt_list_insert_tail(struct ListHead *h, char *s)
Append a string to the end of a List.
Definition list.c:65
void mutt_str_remove_trailing_ws(char *s)
Trim trailing whitespace from a string.
Definition string.c:571
char * mutt_str_dup(const char *str)
Copy a string, safely.
Definition string.c:257
char * mutt_str_skip_whitespace(const char *p)
Find the first non-whitespace character in a string.
Definition string.c:557
Here is the call graph for this function:
Here is the caller graph for this function: