* @param[in] else_str Otherwise, display this string
* @param[in] data Pointer to the mailbox Context
* @param[in] flags Format flags
+ * @retval src (unchanged)
+ *
+ * history_format_str() is a callback function for mutt_expando_format().
+ *
+ * | Expando | Description
+ * |:--------|:--------------
+ * | \%s | History match
*/
static const char *history_format_str(char *buf, size_t buflen, size_t col, int cols,
char op, const char *src, const char *prec,
break;
}
- return (src);
+ return src;
}
/**
* @param line config line to read
* @param token scratch buffer to be used by parser
* @param err where to write error messages
+ * @retval 0 Success
+ * @retval -1 Failure
*
* Caller should free token->data when finished. the reason for this variable
* is to avoid having to allocate and deallocate a lot of memory if we are
* @param ctx Context to lock
* @param excl Exclusive lock?
* @param retry Should retry if unable to lock?
+ * @retval 0 Success
+ * @retval -1 Failure
*/
static int mbox_lock_mailbox(struct Context *ctx, int excl, int retry)
{
* @param ctx Current mailbox
* @param subdir NULL for MH mailboxes,
* otherwise the subdir of the maildir mailbox to read from
+ * @retval 0 Success
+ * @retval -1 Failure
*/
static int mh_read_dir(struct Context *ctx, const char *subdir)
{
* @param buflen Length of the buffer
* @param addr Address to display
* @param display This address will be displayed to the user
+ * @retval num Bytes written to the buffer
*
* If 'display' is set, then it doesn't matter if the transformation isn't
* reversible.
* lookup_charset - Look for a preferred character set name
* @param type Type, e.g. #MUTT_LOOKUP_CHARSET
* @param cs Character set
+ * @retval ptr Charset string
*
* If the character set matches one of the regexes,
* then return the replacement name.
/**
* mutt_str_sysexit - Return a string matching an error code
* @param e Error code, e.g. EX_NOPERM
+ * @retval ptr string representing the error code
*/
const char *mutt_str_sysexit(int e)
{
* nm_sync_mailbox - Sync a notmuch mailbox
* @param ctx Mailbox
* @param index_hint Remember our place in the index
+ * @retval 0 Success
+ * @retval -1 Failure
*/
static int nm_sync_mailbox(struct Context *ctx, int *index_hint)
{
/**
* create_gpgme_context - Create a new GPGME context
* @param for_smime If set, protocol of the context is set to CMS
+ * @retval ptr New GPGME context
*/
static gpgme_ctx_t create_gpgme_context(int for_smime)
{
* mutt_read_mime_header - Parse a MIME header
* @param fp stream to read from
* @param digest 1 if reading subparts of a multipart/digest, 0 otherwise
+ * @retval ptr New Body containing parsed structure
*/
struct Body *mutt_read_mime_header(FILE *fp, int digest)
{
* mutt_rfc822_parse_message - parse a Message/RFC822 body
* @param fp stream to read from
* @param parent info about the message/rfc822 body part
+ * @retval ptr New Body containing parsed message
*
* NOTE: this assumes that `parent->length' has been set!
*/
* @param end_off length of the multipart body (used when the final
* boundary is missing to avoid reading too far)
* @param digest 1 if reading a multipart/digest, 0 otherwise
+ * @retval ptr New Body containing parsed structure
*/
struct Body *mutt_parse_multipart(FILE *fp, const char *boundary, LOFF_T end_off, int digest)
{
* @param a List of addresses
* @param leave_only If set, don't remove the user's address if it it the only
* one in the list
+ * @retval ptr Head of the remaining Address List
*/
static struct Address *remove_user(struct Address *a, int leave_only)
{
* to the temporary file containing the stdout of the
* child process. If it is NULL, stderr and stdout
* are not redirected.
+ * @retval 0 Success
+ * @retval >0 Failure, return code from sendmail
*/
static int send_msg(const char *path, char **args, const char *msg, char **tempfile)
{
* @param bcc Recipients
* @param msg File containing message
* @param eightbit Message contains 8bit chars
+ * @retval 0 Success
+ * @retval -1 Failure
*/
int mutt_invoke_sendmail(struct Address *from, struct Address *to, struct Address *cc,
struct Address *bcc, const char *msg, int eightbit)