void *adata;
void (*free_adata)(void **);
};
-
TAILQ_HEAD(AccountList, Account);
extern struct AccountList AllAccounts; ///< List of all Accounts
short num;
TAILQ_ENTRY(Alias) entries;
};
-
TAILQ_HEAD(AliasList, Alias);
void mutt_alias_create(struct Envelope *cur, struct Address *iaddr);
}
/**
- * mutt_select_file - Let the user select a file
+ * mutt_buffer_select_file - Let the user select a file
* @param[in] file Buffer for the result
* @param[in] flags Flags, see #SelectFileFlags
* @param[out] files Array of selected files
struct Connection;
-/**
- * struct ConnectionList - A list of connections
- */
-TAILQ_HEAD(ConnectionList, Connection);
-
struct Connection *mutt_socket_new(enum ConnectionType type);
int mutt_socket_open(struct Connection *conn);
}
const CopyHeaderFlags chflags =
- CH_NOLEN | (((m->magic == MUTT_MBOX) || (m->magic == MUTT_MMDF)) ? CH_NO_FLAGS : CH_NOSTATUS);
+ CH_NOLEN |
+ (((m->magic == MUTT_MBOX) || (m->magic == MUTT_MMDF)) ? CH_NO_FLAGS : CH_NOSTATUS);
rc = mutt_append_message(ctx_tmp->mailbox, m, e, MUTT_CM_NO_FLAGS, chflags);
int oerrno = errno;
struct Email *email;
STAILQ_ENTRY(EmailNode) entries;
};
-
STAILQ_HEAD(EmailList, EmailNode);
bool mutt_email_cmp_strict(const struct Email *e1, const struct Email *e2);
struct Group *group;
STAILQ_ENTRY(GroupNode) entries;
};
-
-/**
- * struct GroupList - A list of GroupNodes
- */
STAILQ_HEAD(GroupList, GroupNode);
void mutt_grouplist_init(void);
#include <stdbool.h>
#include "mutt/mutt.h"
-/**
- * struct ParameterList - List of parameters
- */
-TAILQ_HEAD(ParameterList, Parameter);
-
/**
* struct Parameter - Attribute associated with a MIME part
*/
char *value;
TAILQ_ENTRY(Parameter) entries;
};
+TAILQ_HEAD(ParameterList, Parameter);
bool mutt_param_cmp_strict(const struct ParameterList *p1, const struct ParameterList *p2);
void mutt_param_delete(struct ParameterList *p, const char *attribute);
char *value;
STAILQ_ENTRY(UrlQueryString) entries;
};
-
STAILQ_HEAD(UrlQueryStringHead, UrlQueryString);
/**
state_attach_puts(strbuf, s);
mutt_copy_hdr(s->fp_in, s->fp_out, ftello(s->fp_in), b->parts->offset,
- (C_Weed ? (CH_WEED | CH_REORDER) : CH_NO_FLAGS) | CH_DECODE | CH_DISPLAY, NULL);
+ (C_Weed ? (CH_WEED | CH_REORDER) : CH_NO_FLAGS) | CH_DECODE | CH_DISPLAY,
+ NULL);
}
}
else
state_attach_puts(strbuf, s);
mutt_copy_hdr(s->fp_in, s->fp_out, ftello(s->fp_in), b->parts->offset,
- (C_Weed ? (CH_WEED | CH_REORDER) : CH_NO_FLAGS) | CH_DECODE | CH_DISPLAY, NULL);
+ (C_Weed ? (CH_WEED | CH_REORDER) : CH_NO_FLAGS) | CH_DECODE | CH_DISPLAY,
+ NULL);
}
}
** of mailboxes it polls for new mail just as if you had issued individual
** "$mailboxes" commands.
*/
- { "imap_condstore", DT_BOOL, R_NONE, &C_ImapCondStore, 0 },
+ { "imap_condstore", DT_BOOL, R_NONE, &C_ImapCondStore, false },
/*
** .pp
** When \fIset\fP, mutt will use the CONDSTORE extension (RFC 7162)
** for new mail, before timing out and closing the connection. Set
** to 0 to disable timing out.
*/
- { "imap_qresync", DT_BOOL, R_NONE, &C_ImapQResync, 0 },
+ { "imap_qresync", DT_BOOL, R_NONE, &C_ImapQResync, false },
/*
** .pp
** When \fIset\fP, mutt will use the QRESYNC extension (RFC 7162)
** subprocess failed.
** (PGP only)
*/
- { "pgp_check_gpg_decrypt_status_fd", DT_BOOL, R_NONE, &C_PgpCheckGpgDecryptStatusFd, 1 },
+ { "pgp_check_gpg_decrypt_status_fd", DT_BOOL, R_NONE, &C_PgpCheckGpgDecryptStatusFd, true },
/*
** .pp
** If \fIset\fP, mutt will check the status file descriptor output
struct Mailbox *mailbox;
STAILQ_ENTRY(MailboxNode) entries;
};
-
STAILQ_HEAD(MailboxList, MailboxNode);
extern struct MailboxList AllMailboxes; ///< List of all Mailboxes
}
/**
- * mutt_buffer_strcpy - Copy a string into a Buffer
+ * mutt_buffer_strcpy_n - Copy a string into a Buffer
* @param buf Buffer to overwrite
* @param s String to copy
* @param len Length of string to copy
char *data;
STAILQ_ENTRY(ListNode) entries;
};
-
-/**
- * struct ListHead - A generic list of strings
- *
- * The List is stored as a STAILQ.
- * This means that insertions are quick at the head and tail of the list.
- */
STAILQ_HEAD(ListHead, ListNode);
/**
char *message;
STAILQ_ENTRY(LogLine) entries;
};
-
-/**
- * struct LogList - A list of log lines
- *
- * The Log is stored as a STAILQ.
- * This means that insertions are quick at the head and tail of the list.
- */
STAILQ_HEAD(LogList, LogLine);
#define mutt_debug(LEVEL, ...) MuttLogger(0, __FILE__, __LINE__, __func__, LEVEL, __VA_ARGS__)
struct Regex *regex; /**< Regex containing a regular expression */
STAILQ_ENTRY(RegexListNode) entries; /**< Next item in list */
};
-
STAILQ_HEAD(RegexList, RegexListNode);
/**
}
/**
- * mutt_buffer_concat - Join a directory name and a filename
+ * mutt_buffer_concat_path - Join a directory name and a filename
* @param d Buffer to add to
* @param dir Directory name
* @param fname File name
#if GPGME_VERSION_NUMBER >= 0x010b00 /* gpgme >= 1.11.0 */
/**
- * create_recipient_string - XXX
+ * create_recipient_string - Create a string of recipients
* @param keylist Keys, space-separated
* @param recpstring Buffer to store the recipients
* @param use_smime Use SMIME
}
gpgme_data_release(armored_data);
- if (fp_out)
- {
- mutt_file_fclose(&fp_out);
- }
+ mutt_file_fclose(&fp_out);
}
else
{
* | \%p | Protocol
* | \%t | Trust/validity of the key-uid association
* | \%u | User id
- * | \%[...] | Date of key using strftime(3)
+ * | \%[fmt] | Date of key using strftime(3)
* | |
* | \%a | Algorithm
* | \%c | Capabilities
* | \%n | Number
* | \%t | Trust/validity of the key-uid association
* | \%u | User id
- * | \%[...] | Date of key using strftime(3)
+ * | \%[fmt] | Date of key using strftime(3)
* | |
* | \%a | Algorithm
* | \%c | Capabilities
/* flag to mutt_pattern_comp() */
#define MUTT_FULL_MSG (1 << 0) /* enable body and header matching */
-SLIST_HEAD(PatternHead, Pattern);
-
/**
* struct Pattern - A simple (non-regex) pattern
*/
struct ListHead multi_cases;
} p;
};
+SLIST_HEAD(PatternHead, Pattern);
/**
* enum PatternExecFlag - Flags for mutt_pattern_exec()
#include <stdbool.h>
struct Mailbox;
-struct Context;
/* These Config Variables are only used in sidebar.c */
extern short C_SidebarComponentDepth;