NeoMutt  2024-11-14-34-g5aaf0d
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()

static 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 123 of file compile.c.

124{
125 struct ListHead *msgid_list = (struct ListHead *) (user_data);
126 char *nows = mutt_str_skip_whitespace(line);
127 if (*nows == '\0')
128 return true;
130 mutt_list_insert_tail(msgid_list, mutt_str_dup(nows));
131 return true;
132}
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:565
char * mutt_str_dup(const char *str)
Copy a string, safely.
Definition: string.c:253
char * mutt_str_skip_whitespace(const char *p)
Find the first non-whitespace character in a string.
Definition: string.c:551
+ Here is the call graph for this function:
+ Here is the caller graph for this function: