{
Mask = mutt_mem_calloc(1, sizeof(struct Regex *));
}
- mutt_str_replace(&Mask->pattern, buf); //QWQ
+ mutt_str_replace(&Mask->pattern, buf);
Mask->regex = rx;
Mask->not = not;
* @note RFC3548 obsoletes RFC2045.
* @note RFC4648 obsoletes RFC3548.
*
- * | Data | Description
- * | :----------------- | :--------------------------------------------------
+ * | Data | Description
+ * | :---------------- | :--------------------------------------------------
* | #Index64 | Lookup table for Base64 encoding characters
*
- * | Function | Description
- * | :----------------- | :-------------------------------------------------
- * | mutt_b64_decode() | convert null-terminated base64 string to raw bytes
- * | mutt_b64_encode() | convert raw bytes to null-terminated base64 string
+ * | Function | Description
+ * | :---------------- | :-------------------------------------------------
+ * | mutt_b64_encode() | Convert raw bytes to null-terminated base64 string
+ * | mutt_b64_decode() | Convert null-terminated base64 string to raw bytes
*/
#include "config.h"
// clang-format on
/**
- * mutt_b64_encode - convert raw bytes to null-terminated base64 string
+ * mutt_b64_encode - Convert raw bytes to null-terminated base64 string
* @param out Output buffer for the base64 encoded string
* @param cin Input buffer for the raw bytes
* @param len Length of the input buffer
}
/**
- * mutt_b64_decode - convert null-terminated base64 string to raw bytes
+ * mutt_b64_decode - Convert null-terminated base64 string to raw bytes
* @param out Output buffer for the raw bytes
* @param in Input buffer for the null-terminated base64-encoded string
* @retval n Number of bytes written on success
*
* The Buffer object make parsing and manipulating strings easier.
*
- * | Function | Description
- * | :------------------- | :--------------------------------------------------
- * | mutt_buffer_add() | Add a string to a Buffer, expanding it if necessary
- * | mutt_buffer_addch() | Add a single character to a Buffer
- * | mutt_buffer_addstr() | Add a string to a Buffer
- * | mutt_buffer_free() | Release a Buffer and its contents
- * | mutt_buffer_from() | Create Buffer from an existing string
- * | mutt_buffer_init() | Initialise a new Buffer
- * | mutt_buffer_new() | Create and initialise a Buffer
- * | mutt_buffer_printf() | Format a string into a Buffer
- * | mutt_buffer_reset() | Reset an existing Buffer
+ * | Function | Description
+ * | :--------------------- | :--------------------------------------------------
+ * | mutt_buffer_add() | Add a string to a Buffer, expanding it if necessary
+ * | mutt_buffer_addch() | Add a single character to a Buffer
+ * | mutt_buffer_addstr() | Add a string to a Buffer
+ * | mutt_buffer_alloc() | Create a new Buffer
+ * | mutt_buffer_free() | Release a Buffer and its contents
+ * | mutt_buffer_from() | Create Buffer from an existing string
+ * | mutt_buffer_init() | Initialise a new Buffer
+ * | mutt_buffer_is_empty() | Is the Buffer empty?
+ * | mutt_buffer_new() | Create and initialise a Buffer
+ * | mutt_buffer_printf() | Format a string into a Buffer
+ * | mutt_buffer_reset() | Reset an existing Buffer
*/
#include "config.h"
#include <stdio.h>
#include <string.h>
#include "buffer.h"
-#include "debug.h"
#include "memory.h"
#include "string2.h"
*
* Some commonly used time and date functions.
*
- * | Data | Description
- * | :-------------------- | :--------------------------------------------------
- * | #Months | Months of the year (abbreviated)
- * | #TimeZones | Lookup table of Time Zones
- * | #Weekdays | Day of the week (abbreviated)
+ * | Data | Description
+ * | :------------------------ | :--------------------------------------------------
+ * | #Months | Months of the year (abbreviated)
+ * | #TimeZones | Lookup table of Time Zones
+ * | #Weekdays | Day of the week (abbreviated)
*
* | Function | Description
* | :------------------------- | :--------------------------------------------------
}
/**
- * mutt_file_chmod - change permissions of a file
+ * mutt_file_chmod - Set permissions of a file
* @param path Filename
* @param mode the permissions to set
* @retval int same as chmod(2)
}
/**
- * mutt_file_chmod_add - add permissions to a file
+ * mutt_file_chmod_add - Add permissions to a file
* @param path Filename
* @param mode the permissions to add
* @retval int same as chmod(2)
}
/**
- * mutt_file_chmod_add_stat - add permissions to a file
+ * mutt_file_chmod_add_stat - Add permissions to a file
* @param path Filename
* @param mode the permissions to add
* @param st struct stat for the file (optional)
}
/**
- * mutt_file_chmod_rm - remove permissions from a file
+ * mutt_file_chmod_rm - Remove permissions from a file
* @param path Filename
* @param mode the permissions to remove
* @retval int same as chmod(2)
}
/**
- * mutt_file_chmod_rm_stat - remove permissions from a file
+ * mutt_file_chmod_rm_stat - Remove permissions from a file
* @param path Filename
* @param mode the permissions to remove
* @param st struct stat for the file (optional)
*/
#include "config.h"
+#include <string.h>
#include "list.h"
#include "memory.h"
#include "string2.h"
#ifndef _MUTT_LIST_H
#define _MUTT_LIST_H
-#include <string.h>
#include <stdbool.h>
#include "mutt/queue.h"
*/
#include "mapping.h"
+#include <stddef.h>
#include "string2.h"
/**
#ifndef _MUTT_MAPPING_H
#define _MUTT_MAPPING_H
-#include <stddef.h>
-
/**
* struct Mapping - Mapping between user-readable string and a constant
*/
*
* Some commonly-used multi-byte string manipulation routines.
*
- * | Data | Description
- * | :--------------- | :--------------------------------------------------
- * | #ReplacementChar | When a Unicode character can't be displayed, use this instead
+ * | Data | Description
+ * | :---------------------- | :--------------------------------------------------
+ * | #ReplacementChar | When a Unicode character can't be displayed, use this instead
*
* | Function | Description
* | :---------------------- | :---------------------------------------------------------
* | mutt_replacelist_add() | Add a pattern and a template to a list
* | mutt_replacelist_apply() | Apply replacements to a buffer
* | mutt_replacelist_free() | Free a ReplaceList object
- * | mutt_replacelist_match() | Does a string match a spam pattern
+ * | mutt_replacelist_match() | Does a string match a pattern?
* | mutt_replacelist_new() | Create a new ReplaceList
* | mutt_replacelist_remove() | Remove a pattern from a list
*/
#include "config.h"
+#include <ctype.h>
+#include <regex.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
*
* | Function | Description
* | :------------------------- | :---------------------------------------------------------
- * | mutt_sig_exit_handler() | Notify the user and shutdown gracefully
- * | mutt_sig_empty_handler() | Dummy signal handler
* | mutt_sig_allow_interrupt() | Allow/disallow Ctrl-C (SIGINT)
* | mutt_sig_block() | Block signals during critical operations
* | mutt_sig_block_system() | Block signals before calling exec()
+ * | mutt_sig_empty_handler() | Dummy signal handler
+ * | mutt_sig_exit_handler() | Notify the user and shutdown gracefully
* | mutt_sig_init() | Initialise the signal handling
* | mutt_sig_unblock() | Restore previously blocked signals
* | mutt_sig_unblock_system() | Restore previously blocked signals
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "debug.h"
#include "message.h"
#include "signal2.h"
#include "config.h"
#include <stdio.h>
-#include <string.h>
#include "mutt/mutt.h"
#include "address.h"
bool message_is_tagged(struct Context *ctx, int index);
bool message_is_visible(struct Context *ctx, int index);
-int mutt_addrlist_to_local(struct Address *a);
int mutt_addrlist_to_intl(struct Address *a, char **err);
-int mutt_env_to_intl(struct Envelope *env, char **tag, char **err);
-void mutt_env_to_local(struct Envelope *e);
+int mutt_addrlist_to_local(struct Address *a);
#endif /* _MUTT_PROTOS_H */
#include "config.h"
#include <stddef.h>
+#include <string.h>
#include "mutt/hash.h"
#include "mutt/queue.h"
#include "mutt/string2.h"