NeoMutt  2024-03-23-23-gec7045
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 122 of file compile.c.

123{
124 struct ListHead *msgid_list = (struct ListHead *) (user_data);
125 char *nows = mutt_str_skip_whitespace(line);
126 if (*nows == '\0')
127 return true;
129 mutt_list_insert_tail(msgid_list, mutt_str_dup(nows));
130 return true;
131}
struct ListNode * mutt_list_insert_tail(struct ListHead *h, char *s)
Append a string to the end of a List.
Definition: list.c:64
void mutt_str_remove_trailing_ws(char *s)
Trim trailing whitespace from a string.
Definition: string.c:614
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:600
+ Here is the call graph for this function:
+ Here is the caller graph for this function: