NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
Expando Get String API

Get some string data. More...

+ Collaboration diagram for Expando Get String API:

Functions

void alias_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Alias: Alias name - Implements ExpandoRenderData::get_string() -.
 
void alias_c (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Alias: Comment - Implements ExpandoRenderData::get_string() -.
 
void alias_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Alias: Flags - Implements ExpandoRenderData::get_string() -.
 
void alias_r (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Alias: Address - Implements ExpandoRenderData::get_string() -.
 
void alias_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Alias: Tagged char - Implements ExpandoRenderData::get_string() -.
 
void alias_Y (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Alias: Tags - Implements ExpandoRenderData::get_string() -.
 
void query_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Query: Address - Implements ExpandoRenderData::get_string() -.
 
void query_e (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Query: Extra information - Implements ExpandoRenderData::get_string() -.
 
void query_n (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Query: Name - Implements ExpandoRenderData::get_string() -.
 
void query_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Query: Tagged char - Implements ExpandoRenderData::get_string() -.
 
void query_Y (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Query: Tags - Implements ExpandoRenderData::get_string() -.
 
void attach_c (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Requires conversion flag - Implements ExpandoRenderData::get_string() -.
 
void attach_C (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Charset - Implements ExpandoRenderData::get_string() -.
 
void attach_d (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Description - Implements ExpandoRenderData::get_string() -.
 
void attach_D (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Deleted - Implements ExpandoRenderData::get_string() -.
 
void attach_e (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: MIME type - Implements ExpandoRenderData::get_string() -.
 
void attach_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Filename - Implements ExpandoRenderData::get_string() -.
 
void attach_F (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Filename in header - Implements ExpandoRenderData::get_string() -.
 
void attach_I (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Disposition flag - Implements ExpandoRenderData::get_string() -.
 
void attach_m (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Major MIME type - Implements ExpandoRenderData::get_string() -.
 
void attach_M (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: MIME subtype - Implements ExpandoRenderData::get_string() -.
 
void attach_Q (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Attachment counting - Implements ExpandoRenderData::get_string() -.
 
void attach_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Size - Implements ExpandoRenderData::get_string() -.
 
void attach_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Is Tagged - Implements ExpandoRenderData::get_string() -.
 
void attach_T (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Tree characters - Implements ExpandoRenderData::get_string() -.
 
void attach_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Attachment: Unlink flag - Implements ExpandoRenderData::get_string() -.
 
void autocrypt_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Autocrypt: Address - Implements ExpandoRenderData::get_string() -.
 
void autocrypt_k (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Autocrypt: GPG Key - Implements ExpandoRenderData::get_string() -.
 
void autocrypt_p (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Autocrypt: Prefer-encrypt flag - Implements ExpandoRenderData::get_string() -.
 
void autocrypt_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Autocrypt: Status flag - Implements ExpandoRenderData::get_string() -.
 
void folder_date (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Last modified (strftime) - Implements ExpandoRenderData::get_string() -.
 
void folder_space (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Fixed whitespace - Implements ExpandoRenderData::get_string() -.
 
void folder_d (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Last modified - Implements ExpandoRenderData::get_string() -.
 
void folder_D (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Last modified ($date_format) - Implements ExpandoRenderData::get_string() -.
 
void folder_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Filename - Implements ExpandoRenderData::get_string() -.
 
void folder_F (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: File permissions - Implements ExpandoRenderData::get_string() -.
 
void folder_g (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Group name - Implements ExpandoRenderData::get_string() -.
 
void folder_i (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Description - Implements ExpandoRenderData::get_string() -.
 
void folder_l (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Hard links - Implements ExpandoRenderData::get_string() -.
 
void folder_m (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Number of messages - Implements ExpandoRenderData::get_string() -.
 
void folder_n (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Number of unread messages - Implements ExpandoRenderData::get_string() -.
 
void folder_N (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: New mail flag - Implements ExpandoRenderData::get_string() -.
 
void folder_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Size in bytes - Implements ExpandoRenderData::get_string() -.
 
void folder_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Is Tagged - Implements ExpandoRenderData::get_string() -.
 
void folder_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Browser: Owner name - Implements ExpandoRenderData::get_string() -.
 
void compress_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Compress: From filename - Implements ExpandoRenderData::get_string() -.
 
void compress_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Compress: To filename - Implements ExpandoRenderData::get_string() -.
 
void compose_h (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Compose: Hostname - Implements ExpandoRenderData::get_string() -.
 
void compose_l (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Compose: Size in bytes - Implements ExpandoRenderData::get_string() -.
 
void compose_v (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Compose: Version - Implements ExpandoRenderData::get_string() -.
 
void index_date_recv_local (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Received local date and time - Implements ExpandoRenderData::get_string() -.
 
void index_date_local (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Sent local date and time - Implements ExpandoRenderData::get_string() -.
 
void index_date (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Sent date and time - Implements ExpandoRenderData::get_string() -.
 
void index_format_hook (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: index-format-hook - Implements ExpandoRenderData::get_string() -.
 
void index_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Author Address - Implements ExpandoRenderData::get_string() -.
 
void index_A (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Reply-to address - Implements ExpandoRenderData::get_string() -.
 
void index_b (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Filename - Implements ExpandoRenderData::get_string() -.
 
void index_B (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Email list - Implements ExpandoRenderData::get_string() -.
 
void index_c (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Number of bytes - Implements ExpandoRenderData::get_string() -.
 
void index_cr (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Number of raw bytes - Implements ExpandoRenderData::get_string() -.
 
void index_d (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Sent date and time - Implements ExpandoRenderData::get_string() -.
 
void index_D (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Sent local date and time - Implements ExpandoRenderData::get_string() -.
 
void index_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Sender - Implements ExpandoRenderData::get_string() -.
 
void index_F (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Author name - Implements ExpandoRenderData::get_string() -.
 
void index_Fp (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Plain author name - Implements ExpandoRenderData::get_string() -.
 
void index_g (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Message tags - Implements ExpandoRenderData::get_string() -.
 
void index_G (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Individual tag - Implements ExpandoRenderData::get_string() -.
 
void index_H (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Spam attributes - Implements ExpandoRenderData::get_string() -.
 
void index_i (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Message-id - Implements ExpandoRenderData::get_string() -.
 
void index_I (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Initials of author - Implements ExpandoRenderData::get_string() -.
 
void index_J (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Tags - Implements ExpandoRenderData::get_string() -.
 
void index_K (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Mailing list - Implements ExpandoRenderData::get_string() -.
 
void index_L (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: List address - Implements ExpandoRenderData::get_string() -.
 
void index_M (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Number of hidden messages - Implements ExpandoRenderData::get_string() -.
 
void index_n (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Author's real name - Implements ExpandoRenderData::get_string() -.
 
void index_O (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: List Name or Save folder - Implements ExpandoRenderData::get_string() -.
 
void index_P (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Progress indicator - Implements ExpandoRenderData::get_string() -.
 
void index_q (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Newsgroup name - Implements ExpandoRenderData::get_string() -.
 
void index_r (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: To recipients - Implements ExpandoRenderData::get_string() -.
 
void index_R (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Cc recipients - Implements ExpandoRenderData::get_string() -.
 
void index_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Subject - Implements ExpandoRenderData::get_string() -.
 
void index_S (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Status flag - Implements ExpandoRenderData::get_string() -.
 
void index_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: To field - Implements ExpandoRenderData::get_string() -.
 
void index_T (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: $to_chars flag - Implements ExpandoRenderData::get_string() -.
 
void index_tree (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Thread tree - Implements ExpandoRenderData::get_string() -.
 
void index_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: User name - Implements ExpandoRenderData::get_string() -.
 
void index_v (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: First name - Implements ExpandoRenderData::get_string() -.
 
void index_W (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Organization - Implements ExpandoRenderData::get_string() -.
 
void index_x (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: X-Comment-To - Implements ExpandoRenderData::get_string() -.
 
void index_y (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: X-Label - Implements ExpandoRenderData::get_string() -.
 
void index_Y (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: X-Label (if different) - Implements ExpandoRenderData::get_string() -.
 
void index_zc (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Message crypto flags - Implements ExpandoRenderData::get_string() -.
 
void index_zs (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Message status flags - Implements ExpandoRenderData::get_string() -.
 
void index_zt (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Message tag flags - Implements ExpandoRenderData::get_string() -.
 
void index_Z (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Index: Status flags - Implements ExpandoRenderData::get_string() -.
 
void history_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 History: History match - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_date (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: Date of the key - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_p (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: Protocol - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: Trust/validity - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: User id - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: Key Algorithm - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_c (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: Key Capabilities - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: Key Flags - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_i (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: Key fingerprint - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_gpgme_k (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 GPGME: Key id - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_date (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Date of the key - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Trust/validity - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: User id - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Key Algorithm - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_A (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Principal Key Algorithm - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_c (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Key Capabilities - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_C (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Principal Key Capabilities - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Key Flags - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_F (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Principal Key Flags - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_k (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Key id - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_pgp_K (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Principal Key id - Implements ExpandoRenderData::get_string() -.
 
void pgp_entry_ignore (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP: Field not supported - Implements ExpandoRenderData::get_string() -.
 
void pgp_command_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP Command: $pgp_sign_as or $pgp_default_key - Implements ExpandoRenderData::get_string() -.
 
void pgp_command_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP Command: Filename of message - Implements ExpandoRenderData::get_string() -.
 
void pgp_command_p (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP Command: PGPPASSFD=0 if passphrase is needed - Implements ExpandoRenderData::get_string() -.
 
void pgp_command_r (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP Command: key IDs - Implements ExpandoRenderData::get_string() -.
 
void pgp_command_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 PGP Command: Filename of signature - Implements ExpandoRenderData::get_string() -.
 
void smime_command_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Smime Command: algorithm - Implements ExpandoRenderData::get_string() -.
 
void smime_command_c (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Smime Command: certificate IDs - Implements ExpandoRenderData::get_string() -.
 
void smime_command_C (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Smime Command: CA location - Implements ExpandoRenderData::get_string() -.
 
void smime_command_d (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Smime Command: Message digest algorithm - Implements ExpandoRenderData::get_string() -.
 
void smime_command_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Smime Command: Filename of message - Implements ExpandoRenderData::get_string() -.
 
void smime_command_i (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Smime Command: Intermediate certificates - Implements ExpandoRenderData::get_string() -.
 
void smime_command_k (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Smime Command: Key-pair - Implements ExpandoRenderData::get_string() -.
 
void smime_command_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Smime Command: Filename of signature - Implements ExpandoRenderData::get_string() -.
 
void group_index_d (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 NNTP: Description - Implements ExpandoRenderData::get_string() -.
 
void group_index_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 NNTP: Newsgroup name - Implements ExpandoRenderData::get_string() -.
 
void group_index_M (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 NNTP: Moderated flag - Implements ExpandoRenderData::get_string() -.
 
void group_index_N (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 NNTP: New flag - Implements ExpandoRenderData::get_string() -.
 
void nntp_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Newsrc: Account url - Implements ExpandoRenderData::get_string() -.
 
void nntp_P (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Newsrc: Port if specified - Implements ExpandoRenderData::get_string() -.
 
void nntp_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Newsrc: News server name - Implements ExpandoRenderData::get_string() -.
 
void nntp_S (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Newsrc: Url schema - Implements ExpandoRenderData::get_string() -.
 
void nntp_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Newsrc: Username - Implements ExpandoRenderData::get_string() -.
 
void pattern_d (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Pattern: pattern description - Implements ExpandoRenderData::get_string() -.
 
void pattern_e (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Pattern: pattern expression - Implements ExpandoRenderData::get_string() -.
 
void greeting_n (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Greeting: Real name - Implements ExpandoRenderData::get_string() -.
 
void greeting_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Greeting: Login name - Implements ExpandoRenderData::get_string() -.
 
void greeting_v (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Greeting: First name - Implements ExpandoRenderData::get_string() -.
 
void sidebar_bang (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Sidebar: Flagged flags - Implements ExpandoRenderData::get_string() -.
 
void sidebar_B (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Sidebar: Name of the mailbox - Implements ExpandoRenderData::get_string() -.
 
void sidebar_D (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Sidebar: Descriptive name - Implements ExpandoRenderData::get_string() -.
 
void sidebar_n (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Sidebar: New mail flag - Implements ExpandoRenderData::get_string() -.
 
void status_r (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Modified/read-only flag - Implements ExpandoRenderData::get_string() -.
 
void status_D (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Description of the mailbox - Implements ExpandoRenderData::get_string() -.
 
void status_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: pathname of the mailbox - Implements ExpandoRenderData::get_string() -.
 
void status_l (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Size of the current mailbox - Implements ExpandoRenderData::get_string() -.
 
void status_T (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Current threading mode - Implements ExpandoRenderData::get_string() -.
 
void status_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Sorting mode - Implements ExpandoRenderData::get_string() -.
 
void status_S (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Aux sorting method - Implements ExpandoRenderData::get_string() -.
 
void status_P (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Percentage through index - Implements ExpandoRenderData::get_string() -.
 
void status_h (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Local hostname - Implements ExpandoRenderData::get_string() -.
 
void status_L (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Size of the messages - Implements ExpandoRenderData::get_string() -.
 
void status_v (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Version string - Implements ExpandoRenderData::get_string() -.
 
void status_V (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Status: Active limit pattern - Implements ExpandoRenderData::get_string() -.
 

Detailed Description

Get some string data.

Parameters
[in]nodeExpandoNode containing the callback
[in]dataPrivate data
[in]flagsFlags, see MuttFormatFlags
[out]bufBuffer in which to save string

Get some string data to be formatted.

Function Documentation

◆ alias_a()

void alias_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Alias: Alias name - Implements ExpandoRenderData::get_string() -.

Definition at line 116 of file dlg_alias.c.

118{
119 const struct AliasView *av = data;
120 const struct Alias *alias = av->alias;
121
122 const char *s = alias->name;
123 buf_strcpy(buf, s);
124}
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
Definition: buffer.c:395
GUI data wrapping an Alias.
Definition: gui.h:38
struct Alias * alias
Alias.
Definition: gui.h:46
A shortcut for an email address or addresses.
Definition: alias.h:35
char * name
Short name.
Definition: alias.h:36
+ Here is the call graph for this function:

◆ alias_c()

void alias_c ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Alias: Comment - Implements ExpandoRenderData::get_string() -.

Definition at line 129 of file dlg_alias.c.

131{
132 const struct AliasView *av = data;
133 const struct Alias *alias = av->alias;
134
135 const char *s = alias->comment;
136 buf_strcpy(buf, s);
137}
char * comment
Free-form comment string.
Definition: alias.h:38
+ Here is the call graph for this function:

◆ alias_f()

void alias_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Alias: Flags - Implements ExpandoRenderData::get_string() -.

Definition at line 151 of file dlg_alias.c.

153{
154 const struct AliasView *av = data;
155
156 // NOTE(g0mb4): use $flag_chars?
157 const char *s = av->is_deleted ? "D" : " ";
158 buf_strcpy(buf, s);
159}
bool is_deleted
Is it deleted?
Definition: gui.h:44
+ Here is the call graph for this function:

◆ alias_r()

void alias_r ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Alias: Address - Implements ExpandoRenderData::get_string() -.

Definition at line 174 of file dlg_alias.c.

176{
177 const struct AliasView *av = data;
178 const struct Alias *alias = av->alias;
179
180 mutt_addrlist_write(&alias->addr, buf, true);
181}
size_t mutt_addrlist_write(const struct AddressList *al, struct Buffer *buf, bool display)
Write an Address to a buffer.
Definition: address.c:1206
struct AddressList addr
List of Addresses the Alias expands to.
Definition: alias.h:37
+ Here is the call graph for this function:

◆ alias_t()

void alias_t ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Alias: Tagged char - Implements ExpandoRenderData::get_string() -.

Definition at line 195 of file dlg_alias.c.

197{
198 const struct AliasView *av = data;
199
200 // NOTE(g0mb4): use $flag_chars?
201 const char *s = av->is_tagged ? "*" : " ";
202 buf_strcpy(buf, s);
203}
bool is_tagged
Is it tagged?
Definition: gui.h:43
+ Here is the call graph for this function:

◆ alias_Y()

void alias_Y ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Alias: Tags - Implements ExpandoRenderData::get_string() -.

Definition at line 208 of file dlg_alias.c.

210{
211 const struct AliasView *av = data;
212
213 alias_tags_to_buffer(&av->alias->tags, buf);
214}
void alias_tags_to_buffer(struct TagList *tl, struct Buffer *buf)
Write a comma-separated list of tags to a Buffer.
Definition: commands.c:49
struct TagList tags
Tags.
Definition: alias.h:39
+ Here is the call graph for this function:

◆ query_a()

void query_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Query: Address - Implements ExpandoRenderData::get_string() -.

Definition at line 145 of file dlg_query.c.

147{
148 const struct AliasView *av = data;
149 const struct Alias *alias = av->alias;
150
151 struct Buffer *addrs = buf_pool_get();
152 mutt_addrlist_write(&alias->addr, addrs, true);
153
154 buf_printf(buf, "<%s>", buf_string(addrs));
155}
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
Definition: buffer.c:161
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Definition: buffer.h:96
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
Definition: pool.c:81
String manipulation buffer.
Definition: buffer.h:36
+ Here is the call graph for this function:

◆ query_e()

void query_e ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Query: Extra information - Implements ExpandoRenderData::get_string() -.

Definition at line 170 of file dlg_query.c.

172{
173 const struct AliasView *av = data;
174 const struct Alias *alias = av->alias;
175
176 const char *s = alias->comment;
177 buf_strcpy(buf, s);
178}
+ Here is the call graph for this function:

◆ query_n()

void query_n ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Query: Name - Implements ExpandoRenderData::get_string() -.

Definition at line 183 of file dlg_query.c.

185{
186 const struct AliasView *av = data;
187 const struct Alias *alias = av->alias;
188
189 const char *s = alias->name;
190 buf_strcpy(buf, s);
191}
+ Here is the call graph for this function:

◆ query_t()

void query_t ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Query: Tagged char - Implements ExpandoRenderData::get_string() -.

Definition at line 205 of file dlg_query.c.

207{
208 const struct AliasView *av = data;
209
210 // NOTE(g0mb4): use $flag_chars?
211 const char *s = av->is_tagged ? "*" : " ";
212 buf_strcpy(buf, s);
213}
+ Here is the call graph for this function:

◆ query_Y()

void query_Y ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Query: Tags - Implements ExpandoRenderData::get_string() -.

Definition at line 218 of file dlg_query.c.

220{
221 const struct AliasView *av = data;
222
223 alias_tags_to_buffer(&av->alias->tags, buf);
224}
+ Here is the call graph for this function:

◆ attach_c()

void attach_c ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Requires conversion flag - Implements ExpandoRenderData::get_string() -.

Definition at line 136 of file dlg_attach.c.

138{
139 const struct AttachPtr *aptr = data;
140
141 // NOTE(g0mb4): use $to_chars?
142 const char *s = ((aptr->body->type != TYPE_TEXT) || aptr->body->noconv) ? "n" : "c";
143 buf_strcpy(buf, s);
144}
@ TYPE_TEXT
Type: 'text/*'.
Definition: mime.h:38
An email to which things will be attached.
Definition: attach.h:37
struct Body * body
Attachment.
Definition: attach.h:38
bool noconv
Don't do character set conversion.
Definition: body.h:46
unsigned int type
content-type primary type, ContentType
Definition: body.h:40
+ Here is the call graph for this function:

◆ attach_C()

void attach_C ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Charset - Implements ExpandoRenderData::get_string() -.

Definition at line 149 of file dlg_attach.c.

151{
152 const struct AttachPtr *aptr = data;
153
154 char tmp[128] = { 0 };
155
156 if (mutt_is_text_part(aptr->body) && mutt_body_get_charset(aptr->body, tmp, sizeof(tmp)))
157 {
158 buf_strcpy(buf, tmp);
159 }
160}
char * mutt_body_get_charset(struct Body *b, char *buf, size_t buflen)
Get a body's character set.
Definition: body.c:133
bool mutt_is_text_part(const struct Body *b)
Is this part of an email in plain text?
Definition: muttlib.c:407
+ Here is the call graph for this function:

◆ attach_d()

void attach_d ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Description - Implements ExpandoRenderData::get_string() -.

Definition at line 165 of file dlg_attach.c.

167{
168 const struct AttachPtr *aptr = data;
169
170 const struct Expando *c_message_format = cs_subset_expando(NeoMutt->sub, "message_format");
171 if (aptr->body->description)
172 {
173 const char *s = aptr->body->description;
174 buf_strcpy(buf, s);
175 return;
176 }
177
178 if (mutt_is_message_type(aptr->body->type, aptr->body->subtype) &&
179 c_message_format && aptr->body->email)
180 {
181 mutt_make_string(buf, -1, c_message_format, NULL, -1, aptr->body->email,
183
184 return;
185 }
186
187 if (!aptr->body->d_filename && !aptr->body->filename)
188 {
189 const char *s = "<no description>";
190 buf_strcpy(buf, s);
191 return;
192 }
193
194 attach_F(node, data, flags, buf);
195}
const struct Expando * cs_subset_expando(const struct ConfigSubset *sub, const char *name)
Get an Expando config item by name.
Definition: config_type.c:357
bool mutt_is_message_type(int type, const char *subtype)
Determine if a mime type matches a message or not.
Definition: parse.c:1498
void attach_F(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Attachment: Filename in header - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:258
int mutt_make_string(struct Buffer *buf, size_t max_cols, const struct Expando *exp, struct Mailbox *m, int inpgr, struct Email *e, MuttFormatFlags flags, const char *progress)
Create formatted strings using mailbox expandos.
Definition: hdrline.c:1719
#define MUTT_FORMAT_FORCESUBJ
Print the subject even if unchanged.
Definition: render.h:34
#define MUTT_FORMAT_ARROWCURSOR
Reserve space for arrow_cursor.
Definition: render.h:37
char * d_filename
filename to be used for the content-disposition header If NULL, filename is used instead.
Definition: body.h:56
struct Email * email
header information for message/rfc822
Definition: body.h:74
char * description
content-description
Definition: body.h:55
char * subtype
content-type subtype
Definition: body.h:61
char * filename
When sending a message, this is the file to which this structure refers.
Definition: body.h:59
Parsed Expando trees.
Definition: expando.h:41
struct ExpandoNode * node
Parsed tree.
Definition: expando.h:43
Container for Accounts, Notifications.
Definition: neomutt.h:42
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:46
+ Here is the call graph for this function:

◆ attach_D()

void attach_D ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Deleted - Implements ExpandoRenderData::get_string() -.

Definition at line 209 of file dlg_attach.c.

211{
212 const struct AttachPtr *aptr = data;
213
214 // NOTE(g0mb4): use $to_chars?
215 const char *s = aptr->body->deleted ? "D" : " ";
216 buf_strcpy(buf, s);
217}
bool deleted
Attachment marked for deletion.
Definition: body.h:88
+ Here is the call graph for this function:

◆ attach_e()

void attach_e ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: MIME type - Implements ExpandoRenderData::get_string() -.

Definition at line 222 of file dlg_attach.c.

224{
225 const struct AttachPtr *aptr = data;
226
227 const char *s = ENCODING(aptr->body->encoding);
228 buf_strcpy(buf, s);
229}
#define ENCODING(x)
Definition: mime.h:92
unsigned int encoding
content-transfer-encoding, ContentEncoding
Definition: body.h:41
+ Here is the call graph for this function:

◆ attach_f()

void attach_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Filename - Implements ExpandoRenderData::get_string() -.

Definition at line 234 of file dlg_attach.c.

236{
237 const struct AttachPtr *aptr = data;
238
239 if (aptr->body->filename && (*aptr->body->filename == '/'))
240 {
241 struct Buffer *path = buf_pool_get();
242
243 buf_strcpy(path, aptr->body->filename);
244 buf_pretty_mailbox(path);
245 buf_copy(buf, path);
246 buf_pool_release(&path);
247 }
248 else
249 {
250 const char *s = aptr->body->filename;
251 buf_strcpy(buf, s);
252 }
253}
size_t buf_copy(struct Buffer *dst, const struct Buffer *src)
Copy a Buffer's contents to another Buffer.
Definition: buffer.c:601
void buf_pretty_mailbox(struct Buffer *buf)
Shorten a mailbox path using '~' or '='.
Definition: muttlib.c:519
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
Definition: pool.c:94
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ attach_F()

void attach_F ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Filename in header - Implements ExpandoRenderData::get_string() -.

Definition at line 258 of file dlg_attach.c.

260{
261 const struct AttachPtr *aptr = data;
262
263 if (aptr->body->d_filename)
264 {
265 const char *s = aptr->body->d_filename;
266 buf_strcpy(buf, s);
267 return;
268 }
269
270 attach_f(node, data, flags, buf);
271}
void attach_f(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Attachment: Filename - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:234
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ attach_I()

void attach_I ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Disposition flag - Implements ExpandoRenderData::get_string() -.

Definition at line 276 of file dlg_attach.c.

278{
279 const struct AttachPtr *aptr = data;
280
281 // NOTE(g0mb4): use $to_chars?
282 static const char dispchar[] = { 'I', 'A', 'F', '-' };
283 char ch;
284
285 if (aptr->body->disposition < sizeof(dispchar))
286 {
287 ch = dispchar[aptr->body->disposition];
288 }
289 else
290 {
291 mutt_debug(LL_DEBUG1, "ERROR: invalid content-disposition %d\n", aptr->body->disposition);
292 ch = '!';
293 }
294
295 buf_printf(buf, "%c", ch);
296}
#define mutt_debug(LEVEL,...)
Definition: logging2.h:89
@ LL_DEBUG1
Log at debug level 1.
Definition: logging2.h:43
unsigned int disposition
content-disposition, ContentDisposition
Definition: body.h:42
+ Here is the call graph for this function:

◆ attach_m()

void attach_m ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Major MIME type - Implements ExpandoRenderData::get_string() -.

Definition at line 301 of file dlg_attach.c.

303{
304 const struct AttachPtr *aptr = data;
305
306 const char *s = TYPE(aptr->body);
307 buf_strcpy(buf, s);
308}
#define TYPE(body)
Definition: mime.h:89
+ Here is the call graph for this function:

◆ attach_M()

void attach_M ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: MIME subtype - Implements ExpandoRenderData::get_string() -.

Definition at line 313 of file dlg_attach.c.

315{
316 const struct AttachPtr *aptr = data;
317
318 const char *s = aptr->body->subtype;
319 buf_strcpy(buf, s);
320}
+ Here is the call graph for this function:

◆ attach_Q()

void attach_Q ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Attachment counting - Implements ExpandoRenderData::get_string() -.

Definition at line 344 of file dlg_attach.c.

346{
347 const struct AttachPtr *aptr = data;
348
349 // NOTE(g0mb4): use $to_chars?
350 const char *s = aptr->body->attach_qualifies ? "Q" : " ";
351 buf_strcpy(buf, s);
352}
bool attach_qualifies
This attachment should be counted.
Definition: body.h:87
+ Here is the call graph for this function:

◆ attach_s()

void attach_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Size - Implements ExpandoRenderData::get_string() -.

Definition at line 370 of file dlg_attach.c.

372{
373 const struct AttachPtr *aptr = data;
374
375 char tmp[128] = { 0 };
376
377 size_t l = 0;
378 if (aptr->body->filename && (flags & MUTT_FORMAT_STAT_FILE))
379 {
380 l = mutt_file_get_size(aptr->body->filename);
381 }
382 else
383 {
384 l = aptr->body->length;
385 }
386
387 mutt_str_pretty_size(tmp, sizeof(tmp), l);
388 buf_strcpy(buf, tmp);
389}
long mutt_file_get_size(const char *path)
Get the size of a file.
Definition: file.c:1519
void mutt_str_pretty_size(char *buf, size_t buflen, size_t num)
Display an abbreviated size, like 3.4K.
Definition: muttlib.c:1004
#define MUTT_FORMAT_STAT_FILE
Used by attach_format_str.
Definition: render.h:36
LOFF_T length
length (in bytes) of attachment
Definition: body.h:53
+ Here is the call graph for this function:

◆ attach_t()

void attach_t ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Is Tagged - Implements ExpandoRenderData::get_string() -.

Definition at line 403 of file dlg_attach.c.

405{
406 const struct AttachPtr *aptr = data;
407
408 // NOTE(g0mb4): use $to_chars?
409 const char *s = aptr->body->tagged ? "*" : " ";
410 buf_strcpy(buf, s);
411}
bool tagged
This attachment is tagged.
Definition: body.h:90
+ Here is the call graph for this function:

◆ attach_T()

void attach_T ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Tree characters - Implements ExpandoRenderData::get_string() -.

Definition at line 416 of file dlg_attach.c.

418{
419 const struct AttachPtr *aptr = data;
420
422 node_expando_set_has_tree(node, true);
423 const char *s = aptr->tree;
424 buf_strcpy(buf, s);
425}
@ MT_COLOR_TREE
Index: tree-drawing characters.
Definition: color.h:79
void node_expando_set_color(const struct ExpandoNode *node, int cid)
Set the colour for an Expando.
Definition: node_expando.c:100
void node_expando_set_has_tree(const struct ExpandoNode *node, bool has_tree)
Set the has_tree flag for an Expando.
Definition: node_expando.c:115
char * tree
Tree characters to display.
Definition: attach.h:41
+ Here is the call graph for this function:

◆ attach_u()

void attach_u ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Attachment: Unlink flag - Implements ExpandoRenderData::get_string() -.

Definition at line 439 of file dlg_attach.c.

441{
442 const struct AttachPtr *aptr = data;
443
444 // NOTE(g0mb4): use $to_chars?
445 const char *s = aptr->body->unlink ? "-" : " ";
446 buf_strcpy(buf, s);
447}
bool unlink
If true, filename should be unlink()ed before free()ing this structure.
Definition: body.h:68
+ Here is the call graph for this function:

◆ autocrypt_a()

void autocrypt_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Autocrypt: Address - Implements ExpandoRenderData::get_string() -.

Definition at line 117 of file dlg_autocrypt.c.

119{
120 const struct AccountEntry *entry = data;
121
122 buf_copy(buf, entry->addr->mailbox);
123}
An entry in the Autocrypt account Menu.
Definition: private.h:45
struct Address * addr
Email address associated with the account.
Definition: private.h:48
struct Buffer * mailbox
Mailbox and host address.
Definition: address.h:38
+ Here is the call graph for this function:

◆ autocrypt_k()

void autocrypt_k ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Autocrypt: GPG Key - Implements ExpandoRenderData::get_string() -.

Definition at line 128 of file dlg_autocrypt.c.

130{
131 const struct AccountEntry *entry = data;
132
133 const char *s = entry->account->keyid;
134 buf_strcpy(buf, s);
135}
struct AutocryptAccount * account
Account details.
Definition: private.h:47
char * keyid
PGP Key id.
Definition: lib.h:109
+ Here is the call graph for this function:

◆ autocrypt_p()

void autocrypt_p ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Autocrypt: Prefer-encrypt flag - Implements ExpandoRenderData::get_string() -.

Definition at line 150 of file dlg_autocrypt.c.

152{
153 const struct AccountEntry *entry = data;
154
155 if (entry->account->prefer_encrypt)
156 {
157 /* L10N: Autocrypt Account menu.
158 flag that an account has prefer-encrypt set */
159 buf_addstr(buf, _("prefer encrypt"));
160 }
161 else
162 {
163 /* L10N: Autocrypt Account menu.
164 flag that an account has prefer-encrypt unset;
165 thus encryption will need to be manually enabled. */
166 buf_addstr(buf, _("manual encrypt"));
167 }
168}
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
Definition: buffer.c:226
#define _(a)
Definition: message.h:28
bool prefer_encrypt
false = nopref, true = mutual
Definition: lib.h:111
+ Here is the call graph for this function:

◆ autocrypt_s()

void autocrypt_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Autocrypt: Status flag - Implements ExpandoRenderData::get_string() -.

Definition at line 173 of file dlg_autocrypt.c.

175{
176 const struct AccountEntry *entry = data;
177
178 if (entry->account->enabled)
179 {
180 /* L10N: Autocrypt Account menu.
181 flag that an account is enabled/active */
182 buf_addstr(buf, _("active"));
183 }
184 else
185 {
186 /* L10N: Autocrypt Account menu.
187 flag that an account is disabled/inactive */
188 buf_addstr(buf, _("inactive"));
189 }
190}
bool enabled
Is this account enabled.
Definition: lib.h:112
+ Here is the call graph for this function:

◆ folder_date()

void folder_date ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Last modified (strftime) - Implements ExpandoRenderData::get_string() -.

Definition at line 207 of file dlg_browser.c.

209{
210 const struct Folder *folder = data;
211
212 if (!folder->ff->local)
213 return;
214
215 bool use_c_locale = false;
216 const char *text = node->text;
217 if (*text == '!')
218 {
219 use_c_locale = true;
220 text++;
221 }
222
223 char tmp[128] = { 0 };
224 struct tm tm = mutt_date_localtime(folder->ff->mtime);
225
226 if (use_c_locale)
227 {
228 strftime_l(tmp, sizeof(tmp), text, &tm, NeoMutt->time_c_locale);
229 }
230 else
231 {
232 strftime(tmp, sizeof(tmp), text, &tm);
233 }
234
235 buf_strcpy(buf, tmp);
236}
struct tm mutt_date_localtime(time_t t)
Converts calendar time to a broken-down time structure expressed in user timezone.
Definition: date.c:906
const char * text
Node-specific text.
Definition: node.h:73
time_t mtime
Modification time.
Definition: lib.h:80
A folder/dir in the browser.
Definition: lib.h:68
struct FolderFile * ff
File / Dir / Mailbox.
Definition: lib.h:69
locale_t time_c_locale
Current locale but LC_TIME=C.
Definition: neomutt.h:48
+ Here is the call graph for this function:

◆ folder_space()

void folder_space ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Fixed whitespace - Implements ExpandoRenderData::get_string() -.

Definition at line 241 of file dlg_browser.c.

243{
244 buf_addstr(buf, " ");
245}
+ Here is the call graph for this function:

◆ folder_d()

void folder_d ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Last modified - Implements ExpandoRenderData::get_string() -.

Definition at line 282 of file dlg_browser.c.

284{
285 const struct Folder *folder = data;
286 if (!folder->ff->local)
287 return;
288
289 static const time_t one_year = 31536000;
290 const char *t_fmt = ((mutt_date_now() - folder->ff->mtime) < one_year) ?
291 "%b %d %H:%M" :
292 "%b %d %Y";
293
294 char tmp[128] = { 0 };
295
296 mutt_date_localtime_format(tmp, sizeof(tmp), t_fmt, folder->ff->mtime);
297
298 buf_strcpy(buf, tmp);
299}
size_t mutt_date_localtime_format(char *buf, size_t buflen, const char *format, time_t t)
Format localtime.
Definition: date.c:951
time_t mutt_date_now(void)
Return the number of seconds since the Unix epoch.
Definition: date.c:456
+ Here is the call graph for this function:

◆ folder_D()

void folder_D ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Last modified ($date_format) - Implements ExpandoRenderData::get_string() -.

Definition at line 316 of file dlg_browser.c.

318{
319 const struct Folder *folder = data;
320 if (!folder->ff->local)
321 return;
322
323 char tmp[128] = { 0 };
324 bool use_c_locale = false;
325 const char *const c_date_format = cs_subset_string(NeoMutt->sub, "date_format");
326 const char *t_fmt = NONULL(c_date_format);
327 if (*t_fmt == '!')
328 {
329 t_fmt++;
330 use_c_locale = true;
331 }
332
333 if (use_c_locale)
334 {
335 mutt_date_localtime_format_locale(tmp, sizeof(tmp), t_fmt,
336 folder->ff->mtime, NeoMutt->time_c_locale);
337 }
338 else
339 {
340 mutt_date_localtime_format(tmp, sizeof(tmp), t_fmt, folder->ff->mtime);
341 }
342
343 buf_strcpy(buf, tmp);
344}
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Definition: helpers.c:291
size_t mutt_date_localtime_format_locale(char *buf, size_t buflen, const char *format, time_t t, locale_t loc)
Format localtime using a given locale.
Definition: date.c:969
#define NONULL(x)
Definition: string2.h:37
+ Here is the call graph for this function:

◆ folder_f()

void folder_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Filename - Implements ExpandoRenderData::get_string() -.

Definition at line 349 of file dlg_browser.c.

351{
352 const struct Folder *folder = data;
353
354 const char *s = NONULL(folder->ff->name);
355
356 buf_printf(buf, "%s%s", s,
357 folder->ff->local ?
358 (S_ISLNK(folder->ff->mode) ?
359 "@" :
360 (S_ISDIR(folder->ff->mode) ?
361 "/" :
362 (((folder->ff->mode & S_IXUSR) != 0) ? "*" : ""))) :
363 "");
364}
char * name
Name of file/dir/mailbox.
Definition: lib.h:85
mode_t mode
File permissions.
Definition: lib.h:78
+ Here is the call graph for this function:

◆ folder_F()

void folder_F ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: File permissions - Implements ExpandoRenderData::get_string() -.

Definition at line 369 of file dlg_browser.c.

371{
372 const struct Folder *folder = data;
373
374 if (folder->ff->local)
375 {
376 buf_printf(buf, "%c%c%c%c%c%c%c%c%c%c",
377 S_ISDIR(folder->ff->mode) ? 'd' : (S_ISLNK(folder->ff->mode) ? 'l' : '-'),
378 ((folder->ff->mode & S_IRUSR) != 0) ? 'r' : '-',
379 ((folder->ff->mode & S_IWUSR) != 0) ? 'w' : '-',
380 ((folder->ff->mode & S_ISUID) != 0) ? 's' :
381 ((folder->ff->mode & S_IXUSR) != 0) ? 'x' :
382 '-',
383 ((folder->ff->mode & S_IRGRP) != 0) ? 'r' : '-',
384 ((folder->ff->mode & S_IWGRP) != 0) ? 'w' : '-',
385 ((folder->ff->mode & S_ISGID) != 0) ? 's' :
386 ((folder->ff->mode & S_IXGRP) != 0) ? 'x' :
387 '-',
388 ((folder->ff->mode & S_IROTH) != 0) ? 'r' : '-',
389 ((folder->ff->mode & S_IWOTH) != 0) ? 'w' : '-',
390 ((folder->ff->mode & S_ISVTX) != 0) ? 't' :
391 ((folder->ff->mode & S_IXOTH) != 0) ? 'x' :
392 '-');
393 }
394 else if (folder->ff->imap)
395 {
396 /* mark folders with subfolders AND mail */
397 buf_printf(buf, "IMAP %c", (folder->ff->inferiors && folder->ff->selectable) ? '+' : ' ');
398 }
399}
bool selectable
Folder can be selected.
Definition: lib.h:95
bool imap
This is an IMAP folder.
Definition: lib.h:94
bool inferiors
Folder has children.
Definition: lib.h:96
+ Here is the call graph for this function:

◆ folder_g()

void folder_g ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Group name - Implements ExpandoRenderData::get_string() -.

Definition at line 404 of file dlg_browser.c.

406{
407 const struct Folder *folder = data;
408 if (!folder->ff->local)
409 return;
410
411 struct group *gr = getgrgid(folder->ff->gid);
412 if (gr)
413 {
414 buf_addstr(buf, gr->gr_name);
415 }
416 else
417 {
418 buf_printf(buf, "%u", folder->ff->gid);
419 }
420}
gid_t gid
File's Group ID.
Definition: lib.h:82
+ Here is the call graph for this function:

◆ folder_i()

void folder_i ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Description - Implements ExpandoRenderData::get_string() -.

Definition at line 425 of file dlg_browser.c.

427{
428 const struct Folder *folder = data;
429
430 const char *s = NULL;
431 if (folder->ff->desc)
432 s = folder->ff->desc;
433 else
434 s = folder->ff->name;
435
436 buf_printf(buf, "%s%s", s,
437 folder->ff->local ?
438 (S_ISLNK(folder->ff->mode) ?
439 "@" :
440 (S_ISDIR(folder->ff->mode) ?
441 "/" :
442 (((folder->ff->mode & S_IXUSR) != 0) ? "*" : ""))) :
443 "");
444}
char * desc
Description of mailbox.
Definition: lib.h:86
+ Here is the call graph for this function:

◆ folder_l()

void folder_l ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Hard links - Implements ExpandoRenderData::get_string() -.

Definition at line 462 of file dlg_browser.c.

464{
465 const struct Folder *folder = data;
466 if (!folder->ff->local)
467 return;
468
469 buf_add_printf(buf, "%d", (int) folder->ff->nlink);
470}
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
Definition: buffer.c:204
nlink_t nlink
Number of hard links.
Definition: lib.h:83
+ Here is the call graph for this function:

◆ folder_m()

void folder_m ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Number of messages - Implements ExpandoRenderData::get_string() -.

Definition at line 488 of file dlg_browser.c.

490{
491 const struct Folder *folder = data;
492 if (!folder->ff->has_mailbox)
493 return;
494
495 buf_add_printf(buf, "%d", folder->ff->msg_count);
496}
bool has_mailbox
This is a mailbox.
Definition: lib.h:97
int msg_count
total number of messages
Definition: lib.h:89
+ Here is the call graph for this function:

◆ folder_n()

void folder_n ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Number of unread messages - Implements ExpandoRenderData::get_string() -.

Definition at line 514 of file dlg_browser.c.

516{
517 const struct Folder *folder = data;
518 if (!folder->ff->has_mailbox)
519 return;
520
521 buf_add_printf(buf, "%d", folder->ff->msg_unread);
522}
int msg_unread
number of unread messages
Definition: lib.h:90
+ Here is the call graph for this function:

◆ folder_N()

void folder_N ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: New mail flag - Implements ExpandoRenderData::get_string() -.

Definition at line 536 of file dlg_browser.c.

538{
539 const struct Folder *folder = data;
540
541 // NOTE(g0mb4): use $to_chars?
542 const char *s = folder->ff->has_new_mail ? "N" : " ";
543 buf_strcpy(buf, s);
544}
bool has_new_mail
true if mailbox has "new mail"
Definition: lib.h:88
+ Here is the call graph for this function:

◆ folder_s()

void folder_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Size in bytes - Implements ExpandoRenderData::get_string() -.

Definition at line 568 of file dlg_browser.c.

570{
571 const struct Folder *folder = data;
572
573 char tmp[128] = { 0 };
574
575 mutt_str_pretty_size(tmp, sizeof(tmp), folder->ff->size);
576 buf_strcpy(buf, tmp);
577}
off_t size
File size.
Definition: lib.h:79
+ Here is the call graph for this function:

◆ folder_t()

void folder_t ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Is Tagged - Implements ExpandoRenderData::get_string() -.

Definition at line 591 of file dlg_browser.c.

593{
594 const struct Folder *folder = data;
595
596 // NOTE(g0mb4): use $to_chars?
597 const char *s = folder->ff->tagged ? "*" : " ";
598 buf_strcpy(buf, s);
599}
bool tagged
Folder is tagged.
Definition: lib.h:101
+ Here is the call graph for this function:

◆ folder_u()

void folder_u ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Browser: Owner name - Implements ExpandoRenderData::get_string() -.

Definition at line 604 of file dlg_browser.c.

606{
607 const struct Folder *folder = data;
608 if (!folder->ff->local)
609 return;
610
611 struct passwd *pw = getpwuid(folder->ff->uid);
612 if (pw)
613 {
614 buf_addstr(buf, pw->pw_name);
615 }
616 else
617 {
618 buf_printf(buf, "%u", folder->ff->uid);
619 }
620}
uid_t uid
File's User ID.
Definition: lib.h:81
+ Here is the call graph for this function:

◆ compress_f()

void compress_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Compress: From filename - Implements ExpandoRenderData::get_string() -.

Definition at line 287 of file compress.c.

289{
290 const struct Mailbox *m = data;
291
292 struct Buffer *quoted = buf_pool_get();
293 buf_quote_filename(quoted, m->realpath, false);
294 buf_copy(buf, quoted);
295 buf_pool_release(&quoted);
296}
void buf_quote_filename(struct Buffer *buf, const char *filename, bool add_outer)
Quote a filename to survive the shell's quoting rules.
Definition: file.c:933
A mailbox.
Definition: mailbox.h:79
char * realpath
Used for duplicate detection, context comparison, and the sidebar.
Definition: mailbox.h:81
+ Here is the call graph for this function:

◆ compress_t()

void compress_t ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Compress: To filename - Implements ExpandoRenderData::get_string() -.

Definition at line 301 of file compress.c.

303{
304 const struct Mailbox *m = data;
305
306 struct Buffer *quoted = buf_pool_get();
307 buf_quote_filename(quoted, mailbox_path(m), false);
308 buf_copy(buf, quoted);
309 buf_pool_release(&quoted);
310}
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
Definition: mailbox.h:223
+ Here is the call graph for this function:

◆ compose_h()

void compose_h ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Compose: Hostname - Implements ExpandoRenderData::get_string() -.

Definition at line 108 of file cbar.c.

110{
111 const char *s = ShortHostname;
112 buf_strcpy(buf, s);
113}
char * ShortHostname
Short version of the hostname.
Definition: globals.c:38
+ Here is the call graph for this function:

◆ compose_l()

void compose_l ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Compose: Size in bytes - Implements ExpandoRenderData::get_string() -.

Definition at line 127 of file cbar.c.

129{
130 const struct ComposeSharedData *shared = data;
131
132 char tmp[128] = { 0 };
133
134 mutt_str_pretty_size(tmp, sizeof(tmp), cum_attachs_size(shared->sub, shared->adata));
135 buf_strcpy(buf, tmp);
136}
unsigned long cum_attachs_size(struct ConfigSubset *sub, struct ComposeAttachData *adata)
Cumulative Attachments Size.
Definition: attach.c:84
Shared Compose Data.
Definition: shared_data.h:35
struct ConfigSubset * sub
Config set to use.
Definition: shared_data.h:36
struct ComposeAttachData * adata
Attachments.
Definition: shared_data.h:39
+ Here is the call graph for this function:

◆ compose_v()

void compose_v ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Compose: Version - Implements ExpandoRenderData::get_string() -.

Definition at line 141 of file cbar.c.

143{
144 const char *s = mutt_make_version();
145 buf_strcpy(buf, s);
146}
const char * mutt_make_version(void)
Generate the NeoMutt version string.
Definition: muttlib.c:858
+ Here is the call graph for this function:

◆ index_date_recv_local()

void index_date_recv_local ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Received local date and time - Implements ExpandoRenderData::get_string() -.

Definition at line 396 of file hdrline.c.

398{
399 const struct HdrFormatInfo *hfi = data;
400 const struct Email *e = hfi->email;
401 if (!e)
402 return;
403
404 index_email_date(node, e, RECV_LOCAL, flags, buf, node->text);
405}
static void index_email_date(const struct ExpandoNode *node, const struct Email *e, enum IndexDateChoice which, MuttFormatFlags flags, struct Buffer *buf, const char *format)
Index: Sent/Received Local/Sender date and time.
Definition: hdrline.c:336
@ RECV_LOCAL
Date received in the local timezone.
Definition: hdrline.c:324
The envelope/body of an email.
Definition: email.h:39
Data passed to index_format_str()
Definition: hdrline.c:71
struct Email * email
Current Email.
Definition: hdrline.c:74
+ Here is the call graph for this function:

◆ index_date_local()

void index_date_local ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Sent local date and time - Implements ExpandoRenderData::get_string() -.

Definition at line 423 of file hdrline.c.

425{
426 const struct HdrFormatInfo *hfi = data;
427 const struct Email *e = hfi->email;
428 if (!e)
429 return;
430
431 index_email_date(node, e, SENT_LOCAL, flags, buf, node->text);
432}
@ SENT_LOCAL
Date sent in the local timezone.
Definition: hdrline.c:323
+ Here is the call graph for this function:

◆ index_date()

void index_date ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Sent date and time - Implements ExpandoRenderData::get_string() -.

Definition at line 450 of file hdrline.c.

452{
453 const struct HdrFormatInfo *hfi = data;
454 const struct Email *e = hfi->email;
455 if (!e)
456 return;
457
458 index_email_date(node, e, SENT_SENDER, flags, buf, node->text);
459}
@ SENT_SENDER
Date sent in the sender's timezone.
Definition: hdrline.c:322
+ Here is the call graph for this function:

◆ index_format_hook()

void index_format_hook ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: index-format-hook - Implements ExpandoRenderData::get_string() -.

Definition at line 464 of file hdrline.c.

466{
467 const struct HdrFormatInfo *hfi = data;
468 struct Email *e = hfi->email;
469 if (!e)
470 return;
471
472 struct Mailbox *m = hfi->mailbox;
473
474 const struct Expando *exp = mutt_idxfmt_hook(node->text, m, e);
475 if (!exp)
476 return;
477
479}
int expando_filter(const struct Expando *exp, const struct ExpandoRenderData *rdata, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Render an Expando and run the result through a filter.
Definition: filter.c:138
const struct ExpandoRenderData IndexRenderData[]
Callbacks for Index Expandos.
Definition: hdrline.c:65
const struct Expando * mutt_idxfmt_hook(const char *name, struct Mailbox *m, struct Email *e)
Get index-format-hook format string.
Definition: hook.c:991
#define MUTT_FORMAT_NO_FLAGS
No flags are set.
Definition: render.h:33
size_t dsize
Length of data.
Definition: buffer.h:39
struct Mailbox * mailbox
Current Mailbox.
Definition: hdrline.c:72
+ Here is the call graph for this function:

◆ index_a()

void index_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Author Address - Implements ExpandoRenderData::get_string() -.

Definition at line 484 of file hdrline.c.

486{
487 const struct HdrFormatInfo *hfi = data;
488 const struct Email *e = hfi->email;
489 if (!e || !e->env)
490 return;
491
492 const struct Address *from = TAILQ_FIRST(&e->env->from);
493
494 const char *s = NULL;
495 if (from && from->mailbox)
496 {
497 s = mutt_addr_for_display(from);
498 }
499
500 if (flags & MUTT_FORMAT_INDEX)
502 buf_strcpy(buf, s);
503}
const char * mutt_addr_for_display(const struct Address *a)
Convert an Address for display purposes.
Definition: address.c:1012
@ MT_COLOR_INDEX_AUTHOR
Index: author field.
Definition: color.h:84
#define TAILQ_FIRST(head)
Definition: queue.h:723
#define MUTT_FORMAT_INDEX
This is a main index entry.
Definition: render.h:38
An email address.
Definition: address.h:36
struct Envelope * env
Envelope information.
Definition: email.h:68
struct AddressList from
Email's 'From' list.
Definition: envelope.h:59
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ index_A()

void index_A ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Reply-to address - Implements ExpandoRenderData::get_string() -.

Definition at line 508 of file hdrline.c.

510{
511 const struct HdrFormatInfo *hfi = data;
512 const struct Email *e = hfi->email;
513 if (!e || !e->env)
514 return;
515
516 const struct Address *reply_to = TAILQ_FIRST(&e->env->reply_to);
517
518 if (reply_to && reply_to->mailbox)
519 {
520 if (flags & MUTT_FORMAT_INDEX)
522 const char *s = mutt_addr_for_display(reply_to);
523 buf_strcpy(buf, s);
524 return;
525 }
526
527 index_a(node, data, flags, buf);
528}
void index_a(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Index: Author Address - Implements ExpandoRenderData::get_string() -.
Definition: hdrline.c:484
struct AddressList reply_to
Email's 'reply-to'.
Definition: envelope.h:64
+ Here is the call graph for this function:

◆ index_b()

void index_b ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Filename - Implements ExpandoRenderData::get_string() -.

Definition at line 533 of file hdrline.c.

535{
536 const struct HdrFormatInfo *hfi = data;
537 struct Mailbox *m = hfi->mailbox;
538 if (!m)
539 {
540 buf_addstr(buf, "(null)");
541 return;
542 }
543
544 char *p = NULL;
545
546#ifdef USE_NOTMUCH
547 struct Email *e = hfi->email;
548 if (m->type == MUTT_NOTMUCH)
549 {
551 }
552#endif
553 if (!p)
554 {
555 p = strrchr(mailbox_path(m), '/');
556 if (p)
557 {
558 p++;
559 }
560 }
561 buf_addstr(buf, p ? p : mailbox_path(m));
562}
@ MUTT_NOTMUCH
'Notmuch' (virtual) Mailbox type
Definition: mailbox.h:51
char * nm_email_get_folder_rel_db(struct Mailbox *m, struct Email *e)
Get the folder for a Email from the same level as the notmuch database.
Definition: notmuch.c:1488
enum MailboxType type
Mailbox type.
Definition: mailbox.h:102
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ index_B()

void index_B ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Email list - Implements ExpandoRenderData::get_string() -.

Definition at line 567 of file hdrline.c.

569{
570 const struct HdrFormatInfo *hfi = data;
571 const struct Email *e = hfi->email;
572 if (!e || !e->env)
573 return;
574
575 char tmp[128] = { 0 };
576
577 if (first_mailing_list(tmp, sizeof(tmp), &e->env->to) ||
578 first_mailing_list(tmp, sizeof(tmp), &e->env->cc))
579 {
580 buf_strcpy(buf, tmp);
581 return;
582 }
583
584 index_b(node, data, flags, buf);
585}
void index_b(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Index: Filename - Implements ExpandoRenderData::get_string() -.
Definition: hdrline.c:533
bool first_mailing_list(char *buf, size_t buflen, struct AddressList *al)
Get the first mailing list in the list of addresses.
Definition: maillist.c:125
struct AddressList to
Email's 'To' list.
Definition: envelope.h:60
struct AddressList cc
Email's 'Cc' list.
Definition: envelope.h:61
+ Here is the call graph for this function:

◆ index_c()

void index_c ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Number of bytes - Implements ExpandoRenderData::get_string() -.

Definition at line 603 of file hdrline.c.

605{
606 const struct HdrFormatInfo *hfi = data;
607 const struct Email *e = hfi->email;
608 if (!e)
609 return;
610
611 char tmp[128] = { 0 };
612
613 if (flags & MUTT_FORMAT_INDEX)
615
616 mutt_str_pretty_size(tmp, sizeof(tmp), e->body->length);
617 buf_strcpy(buf, tmp);
618}
@ MT_COLOR_INDEX_SIZE
Index: size field.
Definition: color.h:90
struct Body * body
List of MIME parts.
Definition: email.h:69
+ Here is the call graph for this function:

◆ index_cr()

void index_cr ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Number of raw bytes - Implements ExpandoRenderData::get_string() -.

Definition at line 623 of file hdrline.c.

625{
626 const struct HdrFormatInfo *hfi = (const struct HdrFormatInfo *) data;
627 const struct Email *e = hfi->email;
628 if (!e)
629 return;
630
631 char tmp[128] = { 0 };
632
633 if (flags & MUTT_FORMAT_INDEX)
635
636 mutt_str_pretty_size(tmp, sizeof(tmp), email_size(e));
637 buf_strcpy(buf, tmp);
638}
size_t email_size(const struct Email *e)
Compute the size of an email.
Definition: email.c:121
+ Here is the call graph for this function:

◆ index_d()

void index_d ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Sent date and time - Implements ExpandoRenderData::get_string() -.

Definition at line 672 of file hdrline.c.

674{
675 const struct HdrFormatInfo *hfi = data;
676 const struct Email *e = hfi->email;
677 if (!e)
678 return;
679
680 const char *c_date_format = cs_subset_string(NeoMutt->sub, "date_format");
681 const char *cp = NONULL(c_date_format);
682
683 index_email_date(node, e, SENT_SENDER, flags, buf, cp);
684}
+ Here is the call graph for this function:

◆ index_D()

void index_D ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Sent local date and time - Implements ExpandoRenderData::get_string() -.

Definition at line 689 of file hdrline.c.

691{
692 const struct HdrFormatInfo *hfi = data;
693 const struct Email *e = hfi->email;
694 if (!e)
695 return;
696
697 const char *c_date_format = cs_subset_string(NeoMutt->sub, "date_format");
698 const char *cp = NONULL(c_date_format);
699
700 index_email_date(node, e, SENT_LOCAL, flags, buf, cp);
701}
+ Here is the call graph for this function:

◆ index_f()

void index_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Sender - Implements ExpandoRenderData::get_string() -.

Definition at line 743 of file hdrline.c.

745{
746 const struct HdrFormatInfo *hfi = data;
747 struct Email *e = hfi->email;
748 if (!e || !e->env)
749 return;
750
751 mutt_addrlist_write(&e->env->from, buf, true);
752}
+ Here is the call graph for this function:

◆ index_F()

void index_F ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Author name - Implements ExpandoRenderData::get_string() -.

Definition at line 757 of file hdrline.c.

759{
760 const struct HdrFormatInfo *hfi = data;
761 struct Email *e = hfi->email;
762 if (!e || !e->env)
763 return;
764
765 char tmp[128] = { 0 };
766
767 make_from(e->env, tmp, sizeof(tmp), false, MUTT_FORMAT_NO_FLAGS);
768
769 if (flags & MUTT_FORMAT_INDEX)
771
772 buf_strcpy(buf, tmp);
773}
static void make_from(struct Envelope *env, char *buf, size_t buflen, bool do_lists, MuttFormatFlags flags)
Generate a From: field (with optional prefix)
Definition: hdrline.c:137
+ Here is the call graph for this function:

◆ index_Fp()

void index_Fp ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Plain author name - Implements ExpandoRenderData::get_string() -.

Definition at line 778 of file hdrline.c.

780{
781 const struct HdrFormatInfo *hfi = (const struct HdrFormatInfo *) data;
782 struct Email *e = hfi->email;
783 if (!e || !e->env)
784 return;
785
786 char tmp[128] = { 0 };
787
788 if (flags & MUTT_FORMAT_INDEX)
790
791 make_from(e->env, tmp, sizeof(tmp), false, MUTT_FORMAT_PLAIN);
792
793 buf_strcpy(buf, tmp);
794}
#define MUTT_FORMAT_PLAIN
Do not prepend DISP_TO, DISP_CC ...
Definition: render.h:39
+ Here is the call graph for this function:

◆ index_g()

void index_g ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Message tags - Implements ExpandoRenderData::get_string() -.

Definition at line 799 of file hdrline.c.

801{
802 const struct HdrFormatInfo *hfi = data;
803 struct Email *e = hfi->email;
804 if (!e)
805 return;
806
807 if (flags & MUTT_FORMAT_INDEX)
810}
@ MT_COLOR_INDEX_TAGS
Index: tags field (g, J)
Definition: color.h:93
struct TagList tags
For drivers that support server tagging.
Definition: email.h:72
void driver_tags_get_transformed(struct TagList *tl, struct Buffer *tags)
Get transformed tags separated by space.
Definition: tags.c:152
+ Here is the call graph for this function:

◆ index_G()

void index_G ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Individual tag - Implements ExpandoRenderData::get_string() -.

Definition at line 815 of file hdrline.c.

817{
818 const struct HdrFormatInfo *hfi = data;
819 struct Email *e = hfi->email;
820 if (!e)
821 return;
822
823 char *tag = mutt_hash_find(TagFormats, node->text);
824 if (!tag)
825 return;
826
827 if (flags & MUTT_FORMAT_INDEX)
830}
@ MT_COLOR_INDEX_TAG
Index: tag field (G)
Definition: color.h:92
void * mutt_hash_find(const struct HashTable *table, const char *strkey)
Find the HashElem data in a Hash Table element using a key.
Definition: hash.c:362
struct HashTable * TagFormats
Hash Table: "inbox" -> "GI" - Tag format strings.
Definition: tags.c:42
void driver_tags_get_transformed_for(struct TagList *tl, const char *name, struct Buffer *tags)
Get transformed tags for a tag name separated by space.
Definition: tags.c:187
+ Here is the call graph for this function:

◆ index_H()

void index_H ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Spam attributes - Implements ExpandoRenderData::get_string() -.

Definition at line 835 of file hdrline.c.

837{
838 const struct HdrFormatInfo *hfi = data;
839 struct Email *e = hfi->email;
840 if (!e || !e->env)
841 return;
842
843 buf_copy(buf, &e->env->spam);
844}
struct Buffer spam
Spam header.
Definition: envelope.h:82
+ Here is the call graph for this function:

◆ index_i()

void index_i ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Message-id - Implements ExpandoRenderData::get_string() -.

Definition at line 849 of file hdrline.c.

851{
852 const struct HdrFormatInfo *hfi = data;
853 struct Email *e = hfi->email;
854 if (!e || !e->env)
855 return;
856
857 const char *s = e->env->message_id ? e->env->message_id : "<no.id>";
858 buf_strcpy(buf, s);
859}
char * message_id
Message ID.
Definition: envelope.h:73
+ Here is the call graph for this function:

◆ index_I()

void index_I ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Initials of author - Implements ExpandoRenderData::get_string() -.

Definition at line 864 of file hdrline.c.

866{
867 const struct HdrFormatInfo *hfi = data;
868 const struct Email *e = hfi->email;
869 if (!e || !e->env)
870 return;
871
872 const struct Address *from = TAILQ_FIRST(&e->env->from);
873
874 char tmp[128] = { 0 };
875
876 if (mutt_mb_get_initials(mutt_get_name(from), tmp, sizeof(tmp)))
877 {
878 if (flags & MUTT_FORMAT_INDEX)
880
881 buf_strcpy(buf, tmp);
882 return;
883 }
884
885 index_a(node, data, flags, buf);
886}
bool mutt_mb_get_initials(const char *name, char *buf, size_t buflen)
Turn a name into initials.
Definition: mbyte.c:82
const char * mutt_get_name(const struct Address *a)
Pick the best name to display from an address.
Definition: sort.c:134
+ Here is the call graph for this function:

◆ index_J()

void index_J ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Tags - Implements ExpandoRenderData::get_string() -.

Definition at line 891 of file hdrline.c.

893{
894 const struct HdrFormatInfo *hfi = data;
895 struct Email *e = hfi->email;
896 if (!e)
897 return;
898
899 bool have_tags = true;
900 struct Buffer *tags = buf_pool_get();
902 if (!buf_is_empty(tags))
903 {
904 if (flags & MUTT_FORMAT_TREE)
905 {
906 struct Buffer *parent_tags = buf_pool_get();
907 if (e->thread->prev && e->thread->prev->message)
908 {
910 }
911 if (!parent_tags && e->thread->parent && e->thread->parent->message)
912 {
914 }
915 if (parent_tags && buf_istr_equal(tags, parent_tags))
916 have_tags = false;
917 buf_pool_release(&parent_tags);
918 }
919 }
920 else
921 {
922 have_tags = false;
923 }
924
925 if (flags & MUTT_FORMAT_INDEX)
927
928 const char *s = have_tags ? buf_string(tags) : "";
929 buf_strcpy(buf, s);
930
931 buf_pool_release(&tags);
932}
bool buf_istr_equal(const struct Buffer *a, const struct Buffer *b)
Return if two buffers are equal, case insensitive.
Definition: buffer.c:697
bool buf_is_empty(const struct Buffer *buf)
Is the Buffer empty?
Definition: buffer.c:291
#define MUTT_FORMAT_TREE
Draw the thread tree.
Definition: render.h:35
struct MuttThread * thread
Thread of Emails.
Definition: email.h:119
struct MuttThread * parent
Parent of this Thread.
Definition: thread.h:44
struct MuttThread * prev
Previous sibling Thread.
Definition: thread.h:47
struct Email * message
Email this Thread refers to.
Definition: thread.h:49
+ Here is the call graph for this function:

◆ index_K()

void index_K ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Mailing list - Implements ExpandoRenderData::get_string() -.

Definition at line 937 of file hdrline.c.

939{
940 const struct HdrFormatInfo *hfi = data;
941 const struct Email *e = hfi->email;
942 if (!e || !e->env)
943 return;
944
945 char tmp[128] = { 0 };
946
947 if (first_mailing_list(tmp, sizeof(tmp), &e->env->to) ||
948 first_mailing_list(tmp, sizeof(tmp), &e->env->cc))
949 {
950 buf_strcpy(buf, tmp);
951 }
952}
+ Here is the call graph for this function:

◆ index_L()

void index_L ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: List address - Implements ExpandoRenderData::get_string() -.

Definition at line 973 of file hdrline.c.

975{
976 const struct HdrFormatInfo *hfi = data;
977 const struct Email *e = hfi->email;
978 if (!e)
979 return;
980
981 char tmp[128] = { 0 };
982
983 make_from(e->env, tmp, sizeof(tmp), true, flags);
984
985 if (flags & MUTT_FORMAT_INDEX)
987 buf_strcpy(buf, tmp);
988}
+ Here is the call graph for this function:

◆ index_M()

void index_M ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Number of hidden messages - Implements ExpandoRenderData::get_string() -.

Definition at line 1007 of file hdrline.c.

1009{
1010 const struct HdrFormatInfo *hfi = data;
1011 const struct Email *e = hfi->email;
1012 if (!e)
1013 return;
1014
1015 const bool threads = mutt_using_threads();
1016 const bool is_index = (flags & MUTT_FORMAT_INDEX) != 0;
1017
1018 if (threads && is_index && e->collapsed && (e->num_hidden > 1))
1019 {
1020 if (flags & MUTT_FORMAT_INDEX)
1022 const int num = e->num_hidden;
1023 buf_printf(buf, "%d", num);
1024 }
1025 else if (is_index && threads)
1026 {
1027 if (flags & MUTT_FORMAT_INDEX)
1029 const char *s = " ";
1030 buf_strcpy(buf, s);
1031 }
1032}
@ MT_COLOR_INDEX_COLLAPSED
Index: number of messages in collapsed thread.
Definition: color.h:85
#define mutt_using_threads()
Definition: mutt_thread.h:114
bool collapsed
Is this message part of a collapsed thread?
Definition: email.h:120
size_t num_hidden
Number of hidden messages in this view (only valid when collapsed is set)
Definition: email.h:123
+ Here is the call graph for this function:

◆ index_n()

void index_n ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Author's real name - Implements ExpandoRenderData::get_string() -.

Definition at line 1060 of file hdrline.c.

1062{
1063 const struct HdrFormatInfo *hfi = data;
1064 const struct Email *e = hfi->email;
1065 if (!e || !e->env)
1066 return;
1067
1068 const struct Address *from = TAILQ_FIRST(&e->env->from);
1069
1070 if (flags & MUTT_FORMAT_INDEX)
1072
1073 const char *s = mutt_get_name(from);
1074 buf_strcpy(buf, s);
1075}
+ Here is the call graph for this function:

◆ index_O()

void index_O ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: List Name or Save folder - Implements ExpandoRenderData::get_string() -.

Definition at line 1093 of file hdrline.c.

1095{
1096 const struct HdrFormatInfo *hfi = data;
1097 const struct Email *e = hfi->email;
1098 if (!e || !e->env)
1099 return;
1100
1101 char tmp[128] = { 0 };
1102 char *p = NULL;
1103
1104 make_from_addr(e->env, tmp, sizeof(tmp), true);
1105 const bool c_save_address = cs_subset_bool(NeoMutt->sub, "save_address");
1106 if (!c_save_address && (p = strpbrk(tmp, "%@")))
1107 {
1108 *p = '\0';
1109 }
1110
1111 buf_strcpy(buf, tmp);
1112}
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Definition: helpers.c:47
static void make_from_addr(struct Envelope *env, char *buf, size_t buflen, bool do_lists)
Create a 'from' address for a reply email.
Definition: hdrline.c:193
+ Here is the call graph for this function:

◆ index_P()

void index_P ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Progress indicator - Implements ExpandoRenderData::get_string() -.

Definition at line 1117 of file hdrline.c.

1119{
1120 const struct HdrFormatInfo *hfi = data;
1121
1122 const char *s = hfi->pager_progress;
1123 buf_strcpy(buf, s);
1124}
const char * pager_progress
String representing Pager position through Email.
Definition: hdrline.c:75
+ Here is the call graph for this function:

◆ index_q()

void index_q ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Newsgroup name - Implements ExpandoRenderData::get_string() -.

Definition at line 1129 of file hdrline.c.

1131{
1132 const struct HdrFormatInfo *hfi = data;
1133 const struct Email *e = hfi->email;
1134 if (!e || !e->env)
1135 return;
1136
1137 const char *s = e->env->newsgroups;
1138 buf_strcpy(buf, s);
1139}
char * newsgroups
List of newsgroups.
Definition: envelope.h:78
+ Here is the call graph for this function:

◆ index_r()

void index_r ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: To recipients - Implements ExpandoRenderData::get_string() -.

Definition at line 1144 of file hdrline.c.

1146{
1147 const struct HdrFormatInfo *hfi = data;
1148 const struct Email *e = hfi->email;
1149 if (!e || !e->env)
1150 return;
1151
1152 mutt_addrlist_write(&e->env->to, buf, true);
1153}
+ Here is the call graph for this function:

◆ index_R()

void index_R ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Cc recipients - Implements ExpandoRenderData::get_string() -.

Definition at line 1158 of file hdrline.c.

1160{
1161 const struct HdrFormatInfo *hfi = data;
1162 const struct Email *e = hfi->email;
1163 if (!e || !e->env)
1164 return;
1165
1166 mutt_addrlist_write(&e->env->cc, buf, true);
1167}
+ Here is the call graph for this function:

◆ index_s()

void index_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Subject - Implements ExpandoRenderData::get_string() -.

Definition at line 1172 of file hdrline.c.

1174{
1175 const struct HdrFormatInfo *hfi = data;
1176 const struct Email *e = hfi->email;
1177 if (!e || !e->env)
1178 return;
1179
1180 if ((flags & MUTT_FORMAT_TREE) && !e->collapsed && !(flags & MUTT_FORMAT_FORCESUBJ))
1181 return;
1182
1183 if (flags & MUTT_FORMAT_INDEX)
1185
1187
1188 if (e->env->disp_subj)
1189 buf_strcpy(buf, e->env->disp_subj);
1190 else
1191 buf_strcpy(buf, e->env->subject);
1192}
@ MT_COLOR_INDEX_SUBJECT
Index: subject field.
Definition: color.h:91
char *const subject
Email's subject.
Definition: envelope.h:70
char * disp_subj
Display subject (modified copy of subject)
Definition: envelope.h:72
bool subjrx_apply_mods(struct Envelope *env)
Apply regex modifications to the subject.
Definition: subjectrx.c:133
+ Here is the call graph for this function:

◆ index_S()

void index_S ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Status flag - Implements ExpandoRenderData::get_string() -.

Definition at line 1197 of file hdrline.c.

1199{
1200 const struct HdrFormatInfo *hfi = data;
1201 const struct Email *e = hfi->email;
1202 if (!e)
1203 return;
1204
1205 const struct MbTable *c_flag_chars = cs_subset_mbtable(NeoMutt->sub, "flag_chars");
1206 const int msg_in_pager = hfi->msg_in_pager;
1207
1208 const char *wch = NULL;
1209 if (e->deleted)
1210 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_DELETED);
1211 else if (e->attach_del)
1213 else if (e->tagged)
1214 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_TAGGED);
1215 else if (e->flagged)
1216 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_IMPORTANT);
1217 else if (e->replied)
1218 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_REPLIED);
1219 else if (e->read && (msg_in_pager != e->msgno))
1220 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_SEMPTY);
1221 else if (e->old)
1222 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD);
1223 else
1224 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW);
1225
1226 if (flags & MUTT_FORMAT_INDEX)
1228
1229 buf_strcpy(buf, wch);
1230}
@ MT_COLOR_INDEX_FLAGS
Index: flags field.
Definition: color.h:87
struct MbTable * cs_subset_mbtable(const struct ConfigSubset *sub, const char *name)
Get a Multibyte table config item by name.
Definition: helpers.c:119
@ FLAG_CHAR_OLD
Character denoting an email that has been read.
Definition: hdrline.h:45
@ FLAG_CHAR_REPLIED
Character denoting an email that has been replied to.
Definition: hdrline.h:44
@ FLAG_CHAR_TAGGED
Character denoting a tagged email.
Definition: hdrline.h:40
@ FLAG_CHAR_NEW
Character denoting an unread email.
Definition: hdrline.h:46
@ FLAG_CHAR_DELETED
Character denoting a deleted email.
Definition: hdrline.h:42
@ FLAG_CHAR_DELETED_ATTACH
Character denoting a deleted attachment.
Definition: hdrline.h:43
@ FLAG_CHAR_SEMPTY
Character denoting a read email, $index_format S expando.
Definition: hdrline.h:49
@ FLAG_CHAR_IMPORTANT
Character denoting a important (flagged) email.
Definition: hdrline.h:41
const char * mbtable_get_nth_wchar(const struct MbTable *table, int index)
Extract one char from a multi-byte table.
Definition: mbtable.c:331
bool read
Email is read.
Definition: email.h:50
bool old
Email is seen, but unread.
Definition: email.h:49
bool attach_del
Has an attachment marked for deletion.
Definition: email.h:99
bool flagged
Marked important?
Definition: email.h:47
bool replied
Email has been replied to.
Definition: email.h:51
int msgno
Number displayed to the user.
Definition: email.h:111
bool deleted
Email is deleted.
Definition: email.h:78
bool tagged
Email is tagged.
Definition: email.h:107
int msg_in_pager
Index of Email displayed in the Pager.
Definition: hdrline.c:73
Multibyte character table.
Definition: mbtable.h:36
+ Here is the call graph for this function:

◆ index_t()

void index_t ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: To field - Implements ExpandoRenderData::get_string() -.

Definition at line 1235 of file hdrline.c.

1237{
1238 const struct HdrFormatInfo *hfi = data;
1239 const struct Email *e = hfi->email;
1240 if (!e || !e->env)
1241 return;
1242
1243 const struct Address *to = TAILQ_FIRST(&e->env->to);
1244 const struct Address *cc = TAILQ_FIRST(&e->env->cc);
1245
1246 char tmp[128] = { 0 };
1247
1248 if (!check_for_mailing_list(&e->env->to, "To ", tmp, sizeof(tmp)) &&
1249 !check_for_mailing_list(&e->env->cc, "Cc ", tmp, sizeof(tmp)))
1250 {
1251 if (to)
1252 snprintf(tmp, sizeof(tmp), "To %s", mutt_get_name(to));
1253 else if (cc)
1254 snprintf(tmp, sizeof(tmp), "Cc %s", mutt_get_name(cc));
1255 else
1256 {
1257 tmp[0] = '\0';
1258 }
1259 }
1260
1261 buf_strcpy(buf, tmp);
1262}
bool check_for_mailing_list(struct AddressList *al, const char *pfx, char *buf, int buflen)
Search list of addresses for a mailing list.
Definition: maillist.c:79
+ Here is the call graph for this function:

◆ index_T()

void index_T ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: $to_chars flag - Implements ExpandoRenderData::get_string() -.

Definition at line 1267 of file hdrline.c.

1269{
1270 const struct HdrFormatInfo *hfi = data;
1271 struct Email *e = hfi->email;
1272 if (!e)
1273 return;
1274
1275 const struct MbTable *c_to_chars = cs_subset_mbtable(NeoMutt->sub, "to_chars");
1276
1277 int i;
1278 const char *s = (c_to_chars && ((i = user_is_recipient(e))) < c_to_chars->len) ?
1279 c_to_chars->chars[i] :
1280 " ";
1281
1282 buf_strcpy(buf, s);
1283}
static enum ToChars user_is_recipient(struct Email *e)
Is the user a recipient of the message.
Definition: hdrline.c:237
int len
Number of characters.
Definition: mbtable.h:38
+ Here is the call graph for this function:

◆ index_tree()

void index_tree ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Thread tree - Implements ExpandoRenderData::get_string() -.

Definition at line 1288 of file hdrline.c.

1290{
1291 const struct HdrFormatInfo *hfi = data;
1292 const struct Email *e = hfi->email;
1293 if (!e || !e->env)
1294 return;
1295
1296 if (!(flags & MUTT_FORMAT_TREE) || e->collapsed)
1297 return;
1298
1300 node_expando_set_has_tree(node, true);
1301 buf_strcpy(buf, e->tree);
1302}
char * tree
Character string to print thread tree.
Definition: email.h:125
+ Here is the call graph for this function:

◆ index_u()

void index_u ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: User name - Implements ExpandoRenderData::get_string() -.

Definition at line 1307 of file hdrline.c.

1309{
1310 const struct HdrFormatInfo *hfi = data;
1311 const struct Email *e = hfi->email;
1312 if (!e || !e->env)
1313 return;
1314
1315 const struct Address *from = TAILQ_FIRST(&e->env->from);
1316 if (!from || !from->mailbox)
1317 return;
1318
1319 char tmp[128] = { 0 };
1320 char *p = NULL;
1321
1322 mutt_str_copy(tmp, mutt_addr_for_display(from), sizeof(tmp));
1323 p = strpbrk(tmp, "%@");
1324 if (p)
1325 {
1326 *p = '\0';
1327 }
1328
1329 buf_strcpy(buf, tmp);
1330}
size_t mutt_str_copy(char *dest, const char *src, size_t dsize)
Copy a string into a buffer (guaranteeing NUL-termination)
Definition: string.c:581
+ Here is the call graph for this function:

◆ index_v()

void index_v ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: First name - Implements ExpandoRenderData::get_string() -.

Definition at line 1335 of file hdrline.c.

1337{
1338 const struct HdrFormatInfo *hfi = data;
1339 const struct Email *e = hfi->email;
1340 if (!e || !e->env)
1341 return;
1342
1343 const struct Address *from = TAILQ_FIRST(&e->env->from);
1344 const struct Address *to = TAILQ_FIRST(&e->env->to);
1345 const struct Address *cc = TAILQ_FIRST(&e->env->cc);
1346
1347 char tmp[128] = { 0 };
1348 char *p = NULL;
1349
1350 if (mutt_addr_is_user(from))
1351 {
1352 if (to)
1353 {
1354 const char *s = mutt_get_name(to);
1355 mutt_str_copy(tmp, NONULL(s), sizeof(tmp));
1356 }
1357 else if (cc)
1358 {
1359 const char *s = mutt_get_name(cc);
1360 mutt_str_copy(tmp, NONULL(s), sizeof(tmp));
1361 }
1362 }
1363 else
1364 {
1365 const char *s = mutt_get_name(from);
1366 mutt_str_copy(tmp, NONULL(s), sizeof(tmp));
1367 }
1368 p = strpbrk(tmp, " %@");
1369 if (p)
1370 {
1371 *p = '\0';
1372 }
1373
1374 buf_strcpy(buf, tmp);
1375}
bool mutt_addr_is_user(const struct Address *addr)
Does the address belong to the user.
Definition: alias.c:600
+ Here is the call graph for this function:

◆ index_W()

void index_W ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Organization - Implements ExpandoRenderData::get_string() -.

Definition at line 1380 of file hdrline.c.

1382{
1383 const struct HdrFormatInfo *hfi = data;
1384 const struct Email *e = hfi->email;
1385 if (!e || !e->env)
1386 return;
1387
1388 const char *s = e->env->organization;
1389 buf_strcpy(buf, s);
1390}
char * organization
Organisation header.
Definition: envelope.h:77
+ Here is the call graph for this function:

◆ index_x()

void index_x ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: X-Comment-To - Implements ExpandoRenderData::get_string() -.

Definition at line 1395 of file hdrline.c.

1397{
1398 const struct HdrFormatInfo *hfi = data;
1399 const struct Email *e = hfi->email;
1400 if (!e || !e->env)
1401 return;
1402
1403 const char *s = e->env->x_comment_to;
1404 buf_strcpy(buf, s);
1405}
char * x_comment_to
List of 'X-comment-to' fields.
Definition: envelope.h:81
+ Here is the call graph for this function:

◆ index_y()

void index_y ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: X-Label - Implements ExpandoRenderData::get_string() -.

Definition at line 1431 of file hdrline.c.

1433{
1434 const struct HdrFormatInfo *hfi = data;
1435 const struct Email *e = hfi->email;
1436 if (!e || !e->env)
1437 return;
1438
1439 if (flags & MUTT_FORMAT_INDEX)
1441
1442 const char *s = e->env->x_label;
1443 buf_strcpy(buf, s);
1444}
@ MT_COLOR_INDEX_LABEL
Index: label field.
Definition: color.h:88
char * x_label
X-Label.
Definition: envelope.h:76
+ Here is the call graph for this function:

◆ index_Y()

void index_Y ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: X-Label (if different) - Implements ExpandoRenderData::get_string() -.

Definition at line 1449 of file hdrline.c.

1451{
1452 const struct HdrFormatInfo *hfi = data;
1453 const struct Email *e = hfi->email;
1454 if (!e || !e->env)
1455 return;
1456
1457 bool label = true;
1458 if (e->env->x_label)
1459 {
1460 struct Email *e_tmp = NULL;
1461 if (flags & MUTT_FORMAT_TREE && (e->thread->prev && e->thread->prev->message &&
1462 e->thread->prev->message->env->x_label))
1463 {
1464 e_tmp = e->thread->prev->message;
1465 }
1466 else if (flags & MUTT_FORMAT_TREE && (e->thread->parent && e->thread->parent->message &&
1468 {
1469 e_tmp = e->thread->parent->message;
1470 }
1471
1472 if (e_tmp && mutt_istr_equal(e->env->x_label, e_tmp->env->x_label))
1473 {
1474 label = false;
1475 }
1476 }
1477 else
1478 {
1479 label = false;
1480 }
1481
1482 if (flags & MUTT_FORMAT_INDEX)
1484
1485 if (label)
1486 {
1487 const char *s = e->env->x_label;
1488 buf_strcpy(buf, s);
1489 }
1490}
bool mutt_istr_equal(const char *a, const char *b)
Compare two strings, ignoring case.
Definition: string.c:672
+ Here is the call graph for this function:

◆ index_zc()

void index_zc ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Message crypto flags - Implements ExpandoRenderData::get_string() -.

Definition at line 1495 of file hdrline.c.

1497{
1498 const struct HdrFormatInfo *hfi = data;
1499 const struct Email *e = hfi->email;
1500 if (!e)
1501 return;
1502
1503 const struct MbTable *c_crypt_chars = cs_subset_mbtable(NeoMutt->sub, "crypt_chars");
1504
1505 const char *ch = NULL;
1506 if ((WithCrypto != 0) && (e->security & SEC_GOODSIGN))
1507 {
1509 }
1510 else if ((WithCrypto != 0) && (e->security & SEC_ENCRYPT))
1511 {
1513 }
1514 else if ((WithCrypto != 0) && (e->security & SEC_SIGN))
1515 {
1516 ch = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_SIGNED);
1517 }
1518 else if (((WithCrypto & APPLICATION_PGP) != 0) && ((e->security & PGP_KEY) == PGP_KEY))
1519 {
1521 }
1522 else
1523 {
1525 }
1526
1527 if (flags & MUTT_FORMAT_INDEX)
1529 buf_strcpy(buf, ch);
1530}
@ FLAG_CHAR_CRYPT_CONTAINS_KEY
Character denoting a message contains a PGP key.
Definition: hdrline.h:61
@ FLAG_CHAR_CRYPT_SIGNED
Character denoting a message is signed.
Definition: hdrline.h:60
@ FLAG_CHAR_CRYPT_NO_CRYPTO
Character denoting a message has no cryptography information.
Definition: hdrline.h:62
@ FLAG_CHAR_CRYPT_GOOD_SIGN
Character denoting a message signed with a verified key.
Definition: hdrline.h:58
@ FLAG_CHAR_CRYPT_ENCRYPTED
Character denoting a message is PGP-encrypted.
Definition: hdrline.h:59
#define SEC_GOODSIGN
Email has a valid signature.
Definition: lib.h:80
#define APPLICATION_PGP
Use PGP to encrypt/sign.
Definition: lib.h:90
#define SEC_ENCRYPT
Email is encrypted.
Definition: lib.h:78
#define PGP_KEY
Definition: lib.h:99
#define WithCrypto
Definition: lib.h:116
#define SEC_SIGN
Email is signed.
Definition: lib.h:79
SecurityFlags security
bit 0-10: flags, bit 11,12: application, bit 13: traditional pgp See: ncrypt/lib.h pgplib....
Definition: email.h:43
+ Here is the call graph for this function:

◆ index_zs()

void index_zs ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Message status flags - Implements ExpandoRenderData::get_string() -.

Definition at line 1535 of file hdrline.c.

1537{
1538 const struct HdrFormatInfo *hfi = data;
1539 struct Email *e = hfi->email;
1540 if (!e)
1541 return;
1542
1543 const bool threads = mutt_using_threads();
1544 const struct MbTable *c_flag_chars = cs_subset_mbtable(NeoMutt->sub, "flag_chars");
1545 const int msg_in_pager = hfi->msg_in_pager;
1546
1547 const char *ch = NULL;
1548 if (e->deleted)
1549 {
1550 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_DELETED);
1551 }
1552 else if (e->attach_del)
1553 {
1555 }
1556 else if (threads && thread_is_new(e))
1557 {
1558 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW_THREAD);
1559 }
1560 else if (threads && thread_is_old(e))
1561 {
1562 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD_THREAD);
1563 }
1564 else if (e->read && (msg_in_pager != e->msgno))
1565 {
1566 if (e->replied)
1567 {
1568 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_REPLIED);
1569 }
1570 else
1571 {
1572 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_ZEMPTY);
1573 }
1574 }
1575 else
1576 {
1577 if (e->old)
1578 {
1579 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD);
1580 }
1581 else
1582 {
1583 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW);
1584 }
1585 }
1586
1587 if (flags & MUTT_FORMAT_INDEX)
1589 buf_strcpy(buf, ch);
1590}
static bool thread_is_old(struct Email *e)
Does the email thread contain any unread emails?
Definition: hdrline.c:299
static bool thread_is_new(struct Email *e)
Does the email thread contain any new emails?
Definition: hdrline.c:289
@ FLAG_CHAR_OLD_THREAD
Character denoting a thread of emails that has been read.
Definition: hdrline.h:47
@ FLAG_CHAR_ZEMPTY
Character denoting a read email, $index_format Z expando.
Definition: hdrline.h:50
@ FLAG_CHAR_NEW_THREAD
Character denoting a thread containing at least one new email.
Definition: hdrline.h:48
+ Here is the call graph for this function:

◆ index_zt()

void index_zt ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Message tag flags - Implements ExpandoRenderData::get_string() -.

Definition at line 1595 of file hdrline.c.

1597{
1598 const struct HdrFormatInfo *hfi = data;
1599 struct Email *e = hfi->email;
1600 if (!e)
1601 return;
1602
1603 const struct MbTable *c_flag_chars = cs_subset_mbtable(NeoMutt->sub, "flag_chars");
1604 const struct MbTable *c_to_chars = cs_subset_mbtable(NeoMutt->sub, "to_chars");
1605
1606 const char *ch = NULL;
1607 if (e->tagged)
1608 {
1609 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_TAGGED);
1610 }
1611 else if (e->flagged)
1612 {
1613 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_IMPORTANT);
1614 }
1615 else
1616 {
1617 ch = mbtable_get_nth_wchar(c_to_chars, user_is_recipient(e));
1618 }
1619
1620 if (flags & MUTT_FORMAT_INDEX)
1622 buf_strcpy(buf, ch);
1623}
+ Here is the call graph for this function:

◆ index_Z()

void index_Z ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Index: Status flags - Implements ExpandoRenderData::get_string() -.

Definition at line 1628 of file hdrline.c.

1630{
1631 const struct HdrFormatInfo *hfi = data;
1632 struct Email *e = hfi->email;
1633 if (!e)
1634 return;
1635
1636 const int msg_in_pager = hfi->msg_in_pager;
1637
1638 const struct MbTable *c_crypt_chars = cs_subset_mbtable(NeoMutt->sub, "crypt_chars");
1639 const struct MbTable *c_flag_chars = cs_subset_mbtable(NeoMutt->sub, "flag_chars");
1640 const struct MbTable *c_to_chars = cs_subset_mbtable(NeoMutt->sub, "to_chars");
1641 const bool threads = mutt_using_threads();
1642
1643 const char *first = NULL;
1644 if (threads && thread_is_new(e))
1645 {
1646 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW_THREAD);
1647 }
1648 else if (threads && thread_is_old(e))
1649 {
1650 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD_THREAD);
1651 }
1652 else if (e->read && (msg_in_pager != e->msgno))
1653 {
1654 if (e->replied)
1655 {
1656 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_REPLIED);
1657 }
1658 else
1659 {
1660 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_ZEMPTY);
1661 }
1662 }
1663 else
1664 {
1665 if (e->old)
1666 {
1667 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD);
1668 }
1669 else
1670 {
1671 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW);
1672 }
1673 }
1674
1675 /* Marked for deletion; deleted attachments; crypto */
1676 const char *second = NULL;
1677 if (e->deleted)
1678 second = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_DELETED);
1679 else if (e->attach_del)
1680 second = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_DELETED_ATTACH);
1681 else if ((WithCrypto != 0) && (e->security & SEC_GOODSIGN))
1682 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_GOOD_SIGN);
1683 else if ((WithCrypto != 0) && (e->security & SEC_ENCRYPT))
1684 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_ENCRYPTED);
1685 else if ((WithCrypto != 0) && (e->security & SEC_SIGN))
1686 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_SIGNED);
1687 else if (((WithCrypto & APPLICATION_PGP) != 0) && (e->security & PGP_KEY))
1688 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_CONTAINS_KEY);
1689 else
1690 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_NO_CRYPTO);
1691
1692 /* Tagged, flagged and recipient flag */
1693 const char *third = NULL;
1694 if (e->tagged)
1695 third = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_TAGGED);
1696 else if (e->flagged)
1697 third = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_IMPORTANT);
1698 else
1699 third = mbtable_get_nth_wchar(c_to_chars, user_is_recipient(e));
1700
1701 if (flags & MUTT_FORMAT_INDEX)
1703
1704 buf_printf(buf, "%s%s%s", first, second, third);
1705}
+ Here is the call graph for this function:

◆ history_s()

void history_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

History: History match - Implements ExpandoRenderData::get_string() -.

Definition at line 99 of file dlg_history.c.

101{
102 const struct HistoryEntry *entry = data;
103
104 const char *s = entry->history;
105 buf_strcpy(buf, s);
106}
A line in the History menu.
Definition: lib.h:65
const char * history
Description of history.
Definition: lib.h:67
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_date()

void pgp_entry_gpgme_date ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: Date of the key - Implements ExpandoRenderData::get_string() -.

Definition at line 302 of file dlg_gpgme.c.

304{
305#ifdef HAVE_PKG_GPGME
306 const struct CryptEntry *entry = data;
307 const struct CryptKeyInfo *key = entry->key;
308
309 const char *text = node->text;
310 bool use_c_locale = false;
311 if (*text == '!')
312 {
313 use_c_locale = true;
314 text++;
315 }
316
317 struct tm tm = { 0 };
318 if (key->kobj->subkeys && (key->kobj->subkeys->timestamp > 0))
319 {
320 tm = mutt_date_localtime(key->kobj->subkeys->timestamp);
321 }
322 else
323 {
324 tm = mutt_date_localtime(0); // Default to 1970-01-01
325 }
326
327 char tmp[128] = { 0 };
328 if (use_c_locale)
329 {
330 strftime_l(tmp, sizeof(tmp), text, &tm, NeoMutt->time_c_locale);
331 }
332 else
333 {
334 strftime(tmp, sizeof(tmp), text, &tm);
335 }
336
337 buf_strcpy(buf, tmp);
338#endif
339}
An entry in the Select-Key menu.
Definition: crypt_gpgme.h:85
struct CryptKeyInfo * key
Key.
Definition: crypt_gpgme.h:87
A stored PGP key.
Definition: crypt_gpgme.h:44
gpgme_key_t kobj
Definition: crypt_gpgme.h:46
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_p()

void pgp_entry_gpgme_p ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: Protocol - Implements ExpandoRenderData::get_string() -.

Definition at line 357 of file dlg_gpgme.c.

359{
360#ifdef HAVE_PKG_GPGME
361 const struct CryptEntry *entry = data;
362 const struct CryptKeyInfo *key = entry->key;
363
364 const char *s = gpgme_get_protocol_name(key->kobj->protocol);
365 buf_strcpy(buf, s);
366#endif
367}
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_t()

void pgp_entry_gpgme_t ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: Trust/validity - Implements ExpandoRenderData::get_string() -.

Definition at line 372 of file dlg_gpgme.c.

374{
375#ifdef HAVE_PKG_GPGME
376 const struct CryptEntry *entry = data;
377 const struct CryptKeyInfo *key = entry->key;
378
379 const char *s = "";
380 if ((key->flags & KEYFLAG_ISX509))
381 {
382 s = "x";
383 }
384 else
385 {
386 switch (key->validity)
387 {
388 case GPGME_VALIDITY_FULL:
389 s = "f";
390 break;
391 case GPGME_VALIDITY_MARGINAL:
392 s = "m";
393 break;
394 case GPGME_VALIDITY_NEVER:
395 s = "n";
396 break;
397 case GPGME_VALIDITY_ULTIMATE:
398 s = "u";
399 break;
400 case GPGME_VALIDITY_UNDEFINED:
401 s = "q";
402 break;
403 case GPGME_VALIDITY_UNKNOWN:
404 default:
405 s = "?";
406 break;
407 }
408 }
409
410 buf_strcpy(buf, s);
411#endif
412}
#define KEYFLAG_ISX509
Key is an X.509 key.
Definition: lib.h:129
gpgme_validity_t validity
uid validity (cached for convenience)
Definition: crypt_gpgme.h:50
KeyFlags flags
global and per uid flags (for convenience)
Definition: crypt_gpgme.h:49
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_u()

void pgp_entry_gpgme_u ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: User id - Implements ExpandoRenderData::get_string() -.

Definition at line 417 of file dlg_gpgme.c.

419{
420#ifdef HAVE_PKG_GPGME
421 const struct CryptEntry *entry = data;
422 const struct CryptKeyInfo *key = entry->key;
423
424 const char *s = key->uid;
425 buf_strcpy(buf, s);
426#endif
427}
const char * uid
and for convenience point to this user ID
Definition: crypt_gpgme.h:48
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_a()

void pgp_entry_gpgme_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: Key Algorithm - Implements ExpandoRenderData::get_string() -.

Definition at line 432 of file dlg_gpgme.c.

434{
435#ifdef HAVE_PKG_GPGME
436 const struct CryptEntry *entry = data;
437 const struct CryptKeyInfo *key = entry->key;
438
439 const char *s = NULL;
440 if (key->kobj->subkeys)
441 s = gpgme_pubkey_algo_name(key->kobj->subkeys->pubkey_algo);
442 else
443 s = "?";
444
445 buf_strcpy(buf, s);
446#endif
447}
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_c()

void pgp_entry_gpgme_c ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: Key Capabilities - Implements ExpandoRenderData::get_string() -.

Definition at line 452 of file dlg_gpgme.c.

454{
455#ifdef HAVE_PKG_GPGME
456 const struct CryptEntry *entry = data;
457 const struct CryptKeyInfo *key = entry->key;
458
459 const char *s = crypt_key_abilities(key->flags);
460 buf_strcpy(buf, s);
461#endif
462}
static char * crypt_key_abilities(KeyFlags flags)
Parse key flags into a string.
Definition: dlg_gpgme.c:242
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_f()

void pgp_entry_gpgme_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: Key Flags - Implements ExpandoRenderData::get_string() -.

Definition at line 467 of file dlg_gpgme.c.

469{
470#ifdef HAVE_PKG_GPGME
471 const struct CryptEntry *entry = data;
472 const struct CryptKeyInfo *key = entry->key;
473
474 const char *s = crypt_flags(key->flags);
475 buf_strcpy(buf, s);
476#endif
477}
static char * crypt_flags(KeyFlags flags)
Parse the key flags into a single character.
Definition: dlg_gpgme.c:272
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_i()

void pgp_entry_gpgme_i ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: Key fingerprint - Implements ExpandoRenderData::get_string() -.

Definition at line 482 of file dlg_gpgme.c.

484{
485#ifdef HAVE_PKG_GPGME
486 const struct CryptEntry *entry = data;
487 struct CryptKeyInfo *key = entry->key;
488
489 /* fixme: we need a way to distinguish between main and subkeys.
490 * Store the idx in entry? */
491 const char *s = crypt_fpr_or_lkeyid(key);
492 buf_strcpy(buf, s);
493#endif
494}
const char * crypt_fpr_or_lkeyid(struct CryptKeyInfo *k)
Find the fingerprint of a key.
Definition: crypt_gpgme.c:214
+ Here is the call graph for this function:

◆ pgp_entry_gpgme_k()

void pgp_entry_gpgme_k ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

GPGME: Key id - Implements ExpandoRenderData::get_string() -.

Definition at line 499 of file dlg_gpgme.c.

501{
502#ifdef HAVE_PKG_GPGME
503 const struct CryptEntry *entry = data;
504 struct CryptKeyInfo *key = entry->key;
505
506 /* fixme: we need a way to distinguish between main and subkeys.
507 * Store the idx in entry? */
508 const char *s = crypt_keyid(key);
509 buf_strcpy(buf, s);
510#endif
511}
const char * crypt_keyid(struct CryptKeyInfo *k)
Find the ID for the key.
Definition: crypt_gpgme.c:138
+ Here is the call graph for this function:

◆ pgp_entry_pgp_date()

void pgp_entry_pgp_date ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Date of the key - Implements ExpandoRenderData::get_string() -.

Definition at line 270 of file dlg_pgp.c.

272{
273#ifdef HAVE_PGP
274 const struct PgpEntry *entry = data;
275 const struct PgpUid *uid = entry->uid;
276 const struct PgpKeyInfo *key = uid->parent;
277
278 bool use_c_locale = false;
279 const char *text = node->text;
280 if (*text == '!')
281 {
282 use_c_locale = true;
283 text++;
284 }
285
286 char tmp[128] = { 0 };
287 if (use_c_locale)
288 {
289 mutt_date_localtime_format_locale(tmp, sizeof(tmp), text, key->gen_time,
291 }
292 else
293 {
294 mutt_date_localtime_format(tmp, sizeof(tmp), text, key->gen_time);
295 }
296
297 buf_strcpy(buf, tmp);
298#endif
299}
An entry in a PGP key menu.
Definition: private.h:39
struct PgpUid * uid
PGP Key info.
Definition: private.h:41
Information about a PGP key.
Definition: pgplib.h:47
time_t gen_time
Definition: pgplib.h:53
PGP User ID.
Definition: pgplib.h:35
struct PgpKeyInfo * parent
Parent key.
Definition: pgplib.h:39
+ Here is the call graph for this function:

◆ pgp_entry_pgp_t()

void pgp_entry_pgp_t ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Trust/validity - Implements ExpandoRenderData::get_string() -.

Definition at line 317 of file dlg_pgp.c.

319{
320#ifdef HAVE_PGP
321 const struct PgpEntry *entry = data;
322 const struct PgpUid *uid = entry->uid;
323
324 buf_printf(buf, "%c", TrustFlags[uid->trust & 0x03]);
325#endif
326}
static const char TrustFlags[]
Characters used to show the trust level for PGP keys.
Definition: dlg_pgp.c:105
short trust
Definition: pgplib.h:37
+ Here is the call graph for this function:

◆ pgp_entry_pgp_u()

void pgp_entry_pgp_u ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: User id - Implements ExpandoRenderData::get_string() -.

Definition at line 331 of file dlg_pgp.c.

333{
334#ifdef HAVE_PGP
335 const struct PgpEntry *entry = data;
336 const struct PgpUid *uid = entry->uid;
337
338 const char *s = uid->addr;
339 buf_strcpy(buf, s);
340#endif
341}
char * addr
Definition: pgplib.h:36
+ Here is the call graph for this function:

◆ pgp_entry_pgp_a()

void pgp_entry_pgp_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Key Algorithm - Implements ExpandoRenderData::get_string() -.

Definition at line 346 of file dlg_pgp.c.

348{
349#ifdef HAVE_PGP
350 const struct PgpEntry *entry = data;
351 const struct PgpUid *uid = entry->uid;
352 const struct PgpKeyInfo *key = uid->parent;
353
354 const char *s = key->algorithm;
355 buf_strcpy(buf, s);
356#endif
357}
const char * algorithm
Definition: pgplib.h:55
+ Here is the call graph for this function:

◆ pgp_entry_pgp_A()

void pgp_entry_pgp_A ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Principal Key Algorithm - Implements ExpandoRenderData::get_string() -.

Definition at line 362 of file dlg_pgp.c.

364{
365#ifdef HAVE_PGP
366 const struct PgpEntry *entry = data;
367 const struct PgpUid *uid = entry->uid;
368 struct PgpKeyInfo *key = uid->parent;
369 struct PgpKeyInfo *pkey = pgp_principal_key(key);
370
371 const char *s = pkey->algorithm;
372 buf_strcpy(buf, s);
373#endif
374}
struct PgpKeyInfo * pgp_principal_key(struct PgpKeyInfo *key)
Get the main (parent) PGP key.
Definition: pgpkey.c:92
+ Here is the call graph for this function:

◆ pgp_entry_pgp_c()

void pgp_entry_pgp_c ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Key Capabilities - Implements ExpandoRenderData::get_string() -.

Definition at line 379 of file dlg_pgp.c.

381{
382#ifdef HAVE_PGP
383 const struct PgpEntry *entry = data;
384 const struct PgpUid *uid = entry->uid;
385 const struct PgpKeyInfo *key = uid->parent;
386
387 const KeyFlags kflags = key->flags | uid->flags;
388
389 const char *s = pgp_key_abilities(kflags);
390 buf_strcpy(buf, s);
391#endif
392}
static char * pgp_key_abilities(KeyFlags flags)
Turn PGP key abilities into a string.
Definition: dlg_pgp.c:210
uint16_t KeyFlags
Flags describing PGP/SMIME keys, e.g. KEYFLAG_CANSIGN.
Definition: lib.h:125
KeyFlags flags
Definition: pgplib.h:51
int flags
Definition: pgplib.h:38
+ Here is the call graph for this function:

◆ pgp_entry_pgp_C()

void pgp_entry_pgp_C ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Principal Key Capabilities - Implements ExpandoRenderData::get_string() -.

Definition at line 397 of file dlg_pgp.c.

399{
400#ifdef HAVE_PGP
401 const struct PgpEntry *entry = data;
402 const struct PgpUid *uid = entry->uid;
403 struct PgpKeyInfo *key = uid->parent;
404 struct PgpKeyInfo *pkey = pgp_principal_key(key);
405
406 const KeyFlags kflags = (pkey->flags & KEYFLAG_RESTRICTIONS) | uid->flags;
407
408 const char *s = pgp_key_abilities(kflags);
409 buf_strcpy(buf, s);
410#endif
411}
#define KEYFLAG_RESTRICTIONS
Definition: lib.h:140
+ Here is the call graph for this function:

◆ pgp_entry_pgp_f()

void pgp_entry_pgp_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Key Flags - Implements ExpandoRenderData::get_string() -.

Definition at line 416 of file dlg_pgp.c.

418{
419#ifdef HAVE_PGP
420 const struct PgpEntry *entry = data;
421 const struct PgpUid *uid = entry->uid;
422 const struct PgpKeyInfo *key = uid->parent;
423
424 const KeyFlags kflags = key->flags | uid->flags;
425
426 buf_printf(buf, "%c", pgp_flags(kflags));
427#endif
428}
static char pgp_flags(KeyFlags flags)
Turn PGP key flags into a string.
Definition: dlg_pgp.c:238
+ Here is the call graph for this function:

◆ pgp_entry_pgp_F()

void pgp_entry_pgp_F ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Principal Key Flags - Implements ExpandoRenderData::get_string() -.

Definition at line 433 of file dlg_pgp.c.

435{
436#ifdef HAVE_PGP
437 const struct PgpEntry *entry = data;
438 const struct PgpUid *uid = entry->uid;
439 struct PgpKeyInfo *key = uid->parent;
440 struct PgpKeyInfo *pkey = pgp_principal_key(key);
441
442 const KeyFlags kflags = (pkey->flags & KEYFLAG_RESTRICTIONS) | uid->flags;
443
444 buf_printf(buf, "%c", pgp_flags(kflags));
445#endif
446}
+ Here is the call graph for this function:

◆ pgp_entry_pgp_k()

void pgp_entry_pgp_k ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Key id - Implements ExpandoRenderData::get_string() -.

Definition at line 451 of file dlg_pgp.c.

453{
454#ifdef HAVE_PGP
455 const struct PgpEntry *entry = data;
456 const struct PgpUid *uid = entry->uid;
457 struct PgpKeyInfo *key = uid->parent;
458
459 const char *s = pgp_this_keyid(key);
460 buf_strcpy(buf, s);
461#endif
462}
char * pgp_this_keyid(struct PgpKeyInfo *k)
Get the ID of this key.
Definition: pgp.c:191
+ Here is the call graph for this function:

◆ pgp_entry_pgp_K()

void pgp_entry_pgp_K ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Principal Key id - Implements ExpandoRenderData::get_string() -.

Definition at line 467 of file dlg_pgp.c.

469{
470#ifdef HAVE_PGP
471 const struct PgpEntry *entry = data;
472 const struct PgpUid *uid = entry->uid;
473 struct PgpKeyInfo *key = uid->parent;
474 struct PgpKeyInfo *pkey = pgp_principal_key(key);
475
476 const char *s = pgp_this_keyid(pkey);
477 buf_strcpy(buf, s);
478#endif
479}
+ Here is the call graph for this function:

◆ pgp_entry_ignore()

void pgp_entry_ignore ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP: Field not supported - Implements ExpandoRenderData::get_string() -.

Definition at line 517 of file dlg_pgp.c.

519{
520}

◆ pgp_command_a()

void pgp_command_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP Command: $pgp_sign_as or $pgp_default_key - Implements ExpandoRenderData::get_string() -.

Definition at line 59 of file pgpinvoke.c.

61{
62 const struct PgpCommandContext *cctx = data;
63
64 const char *s = cctx->signas;
65 buf_strcpy(buf, s);
66}
Data for a PGP command.
Definition: pgp.h:43
const char * signas
a
Definition: pgp.h:47
+ Here is the call graph for this function:

◆ pgp_command_f()

void pgp_command_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP Command: Filename of message - Implements ExpandoRenderData::get_string() -.

Definition at line 71 of file pgpinvoke.c.

73{
74 const struct PgpCommandContext *cctx = data;
75
76 const char *s = cctx->fname;
77 buf_strcpy(buf, s);
78}
const char * fname
f
Definition: pgp.h:45
+ Here is the call graph for this function:

◆ pgp_command_p()

void pgp_command_p ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP Command: PGPPASSFD=0 if passphrase is needed - Implements ExpandoRenderData::get_string() -.

Definition at line 83 of file pgpinvoke.c.

85{
86 const struct PgpCommandContext *cctx = data;
87
88 const char *s = cctx->need_passphrase ? "PGPPASSFD=0" : "";
89 buf_strcpy(buf, s);
90}
bool need_passphrase
p
Definition: pgp.h:44
+ Here is the call graph for this function:

◆ pgp_command_r()

void pgp_command_r ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP Command: key IDs - Implements ExpandoRenderData::get_string() -.

Definition at line 95 of file pgpinvoke.c.

97{
98 const struct PgpCommandContext *cctx = data;
99
100 const char *s = cctx->ids;
101 buf_strcpy(buf, s);
102}
const char * ids
r
Definition: pgp.h:48
+ Here is the call graph for this function:

◆ pgp_command_s()

void pgp_command_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

PGP Command: Filename of signature - Implements ExpandoRenderData::get_string() -.

Definition at line 107 of file pgpinvoke.c.

109{
110 const struct PgpCommandContext *cctx = data;
111
112 const char *s = cctx->sig_fname;
113 buf_strcpy(buf, s);
114}
const char * sig_fname
s
Definition: pgp.h:46
+ Here is the call graph for this function:

◆ smime_command_a()

void smime_command_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Smime Command: algorithm - Implements ExpandoRenderData::get_string() -.

Definition at line 203 of file smime.c.

205{
206#ifdef HAVE_SMIME
207 const struct SmimeCommandContext *cctx = data;
208
209 const char *s = cctx->cryptalg;
210 buf_strcpy(buf, s);
211#endif
212}
Data for a SIME command.
Definition: smime.h:57
const char * cryptalg
a
Definition: smime.h:59
+ Here is the call graph for this function:

◆ smime_command_c()

void smime_command_c ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Smime Command: certificate IDs - Implements ExpandoRenderData::get_string() -.

Definition at line 217 of file smime.c.

219{
220#ifdef HAVE_SMIME
221 const struct SmimeCommandContext *cctx = data;
222
223 const char *s = cctx->certificates;
224 buf_strcpy(buf, s);
225#endif
226}
const char * certificates
c
Definition: smime.h:63
+ Here is the call graph for this function:

◆ smime_command_C()

void smime_command_C ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Smime Command: CA location - Implements ExpandoRenderData::get_string() -.

Definition at line 231 of file smime.c.

233{
234#ifdef HAVE_SMIME
235 const char *const c_smime_ca_location = cs_subset_path(NeoMutt->sub, "smime_ca_location");
236
237 struct Buffer *path = buf_pool_get();
238 struct Buffer *buf1 = buf_pool_get();
239 struct Buffer *buf2 = buf_pool_get();
240 struct stat st = { 0 };
241
242 buf_strcpy(path, c_smime_ca_location);
243 buf_expand_path(path);
244 buf_quote_filename(buf1, buf_string(path), true);
245
246 if ((stat(buf_string(path), &st) != 0) || !S_ISDIR(st.st_mode))
247 {
248 buf_printf(buf2, "-CAfile %s", buf_string(buf1));
249 }
250 else
251 {
252 buf_printf(buf2, "-CApath %s", buf_string(buf1));
253 }
254
255 buf_copy(buf, buf2);
256
257 buf_pool_release(&path);
258 buf_pool_release(&buf1);
259 buf_pool_release(&buf2);
260#endif
261}
const char * cs_subset_path(const struct ConfigSubset *sub, const char *name)
Get a path config item by name.
Definition: helpers.c:168
void buf_expand_path(struct Buffer *buf)
Create the canonical path.
Definition: muttlib.c:315
+ Here is the call graph for this function:

◆ smime_command_d()

void smime_command_d ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Smime Command: Message digest algorithm - Implements ExpandoRenderData::get_string() -.

Definition at line 266 of file smime.c.

268{
269#ifdef HAVE_SMIME
270 const struct SmimeCommandContext *cctx = data;
271
272 const char *s = cctx->digestalg;
273 buf_strcpy(buf, s);
274#endif
275}
const char * digestalg
d
Definition: smime.h:60
+ Here is the call graph for this function:

◆ smime_command_f()

void smime_command_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Smime Command: Filename of message - Implements ExpandoRenderData::get_string() -.

Definition at line 280 of file smime.c.

282{
283#ifdef HAVE_SMIME
284 const struct SmimeCommandContext *cctx = data;
285
286 const char *s = cctx->fname;
287 buf_strcpy(buf, s);
288#endif
289}
const char * fname
f
Definition: smime.h:61
+ Here is the call graph for this function:

◆ smime_command_i()

void smime_command_i ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Smime Command: Intermediate certificates - Implements ExpandoRenderData::get_string() -.

Definition at line 294 of file smime.c.

296{
297#ifdef HAVE_SMIME
298 const struct SmimeCommandContext *cctx = data;
299
300 const char *s = cctx->intermediates;
301 buf_strcpy(buf, s);
302#endif
303}
const char * intermediates
i
Definition: smime.h:64
+ Here is the call graph for this function:

◆ smime_command_k()

void smime_command_k ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Smime Command: Key-pair - Implements ExpandoRenderData::get_string() -.

Definition at line 308 of file smime.c.

310{
311#ifdef HAVE_SMIME
312 const struct SmimeCommandContext *cctx = data;
313
314 const char *s = cctx->key;
315 buf_strcpy(buf, s);
316#endif
317}
const char * key
k
Definition: smime.h:58
+ Here is the call graph for this function:

◆ smime_command_s()

void smime_command_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Smime Command: Filename of signature - Implements ExpandoRenderData::get_string() -.

Definition at line 322 of file smime.c.

324{
325#ifdef HAVE_SMIME
326 const struct SmimeCommandContext *cctx = data;
327
328 const char *s = cctx->sig_fname;
329 buf_strcpy(buf, s);
330#endif
331}
const char * sig_fname
s
Definition: smime.h:62
+ Here is the call graph for this function:

◆ group_index_d()

void group_index_d ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

NNTP: Description - Implements ExpandoRenderData::get_string() -.

Definition at line 65 of file browse.c.

67{
68 const struct Folder *folder = data;
69
70 char tmp[128] = { 0 };
71
72 if (!folder->ff->nd->desc)
73 return;
74
75 char *desc = mutt_str_dup(folder->ff->nd->desc);
76 const char *const c_newsgroups_charset = cs_subset_string(NeoMutt->sub, "newsgroups_charset");
77 if (c_newsgroups_charset)
78 {
79 mutt_ch_convert_string(&desc, c_newsgroups_charset, cc_charset(), MUTT_ICONV_HOOK_FROM);
80 }
82 mutt_str_copy(tmp, desc, sizeof(tmp));
83 FREE(&desc);
84
85 buf_strcpy(buf, tmp);
86}
const char * cc_charset(void)
Get the cached value of $charset.
Definition: config_cache.c:116
int mutt_mb_filter_unprintable(char **s)
Replace unprintable characters.
Definition: mbyte.c:423
#define FREE(x)
Definition: memory.h:45
int mutt_ch_convert_string(char **ps, const char *from, const char *to, uint8_t flags)
Convert a string between encodings.
Definition: charset.c:831
#define MUTT_ICONV_HOOK_FROM
apply charset-hooks to fromcode
Definition: charset.h:74
char * mutt_str_dup(const char *str)
Copy a string, safely.
Definition: string.c:253
struct NntpMboxData * nd
Extra NNTP data.
Definition: lib.h:102
char * desc
Description of newsgroup.
Definition: mdata.h:36
+ Here is the call graph for this function:

◆ group_index_f()

void group_index_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

NNTP: Newsgroup name - Implements ExpandoRenderData::get_string() -.

Definition at line 91 of file browse.c.

93{
94 const struct Folder *folder = data;
95
96 const char *s = folder->ff->name;
97 buf_strcpy(buf, s);
98}
+ Here is the call graph for this function:

◆ group_index_M()

void group_index_M ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

NNTP: Moderated flag - Implements ExpandoRenderData::get_string() -.

Definition at line 103 of file browse.c.

105{
106 const struct Folder *folder = data;
107
108 const char *s = NULL;
109 // NOTE(g0mb4): use $flag_chars?
110 if (folder->ff->nd->deleted)
111 {
112 s = "D";
113 }
114 else
115 {
116 s = folder->ff->nd->allowed ? " " : "-";
117 }
118
119 buf_strcpy(buf, s);
120}
bool deleted
Definition: mdata.h:45
bool allowed
Definition: mdata.h:44
+ Here is the call graph for this function:

◆ group_index_N()

void group_index_N ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

NNTP: New flag - Implements ExpandoRenderData::get_string() -.

Definition at line 144 of file browse.c.

146{
147 const struct Folder *folder = data;
148
149 const char *s = NULL;
150 // NOTE(g0mb4): use $flag_chars?
151 if (folder->ff->nd->subscribed)
152 {
153 s = " ";
154 }
155 else
156 {
157 s = folder->ff->has_new_mail ? "N" : "u";
158 }
159
160 buf_strcpy(buf, s);
161}
bool subscribed
Definition: mdata.h:42
+ Here is the call graph for this function:

◆ nntp_a()

void nntp_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Newsrc: Account url - Implements ExpandoRenderData::get_string() -.

Definition at line 916 of file newsrc.c.

918{
919 struct NntpAccountData *adata = data;
920 struct ConnAccount *cac = &adata->conn->account;
921
922 char tmp[128] = { 0 };
923
924 struct Url url = { 0 };
925 mutt_account_tourl(cac, &url);
926 url_tostring(&url, tmp, sizeof(tmp), U_PATH);
927 char *p = strchr(tmp, '/');
928 if (p)
929 {
930 *p = '\0';
931 }
932
933 buf_strcpy(buf, tmp);
934}
void mutt_account_tourl(struct ConnAccount *cac, struct Url *url)
Fill URL with info from account.
Definition: mutt_account.c:80
void * adata
Private data (for Mailbox backends)
Definition: account.h:42
Login details for a remote server.
Definition: connaccount.h:53
struct ConnAccount account
Account details: username, password, etc.
Definition: connection.h:49
NNTP-specific Account data -.
Definition: adata.h:36
struct Connection * conn
Connection to NNTP Server.
Definition: adata.h:62
A parsed URL proto://user:password@host:port/path?a=1&b=2
Definition: url.h:69
int url_tostring(const struct Url *url, char *dest, size_t len, uint8_t flags)
Output the URL string for a given Url object.
Definition: url.c:423
#define U_PATH
Definition: url.h:50
+ Here is the call graph for this function:

◆ nntp_P()

void nntp_P ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Newsrc: Port if specified - Implements ExpandoRenderData::get_string() -.

Definition at line 964 of file newsrc.c.

966{
967 const struct NntpAccountData *adata = data;
968 const struct ConnAccount *cac = &adata->conn->account;
969
970 if (cac->flags & MUTT_ACCT_PORT)
971 {
972 buf_add_printf(buf, "%hd", cac->port);
973 }
974}
#define MUTT_ACCT_PORT
Port field has been set.
Definition: connaccount.h:43
MuttAccountFlags flags
Which fields are initialised, e.g. MUTT_ACCT_USER.
Definition: connaccount.h:60
unsigned short port
Port to connect to.
Definition: connaccount.h:58
+ Here is the call graph for this function:

◆ nntp_s()

void nntp_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Newsrc: News server name - Implements ExpandoRenderData::get_string() -.

Definition at line 979 of file newsrc.c.

981{
982 const struct NntpAccountData *adata = data;
983 const struct ConnAccount *cac = &adata->conn->account;
984
985 char tmp[128] = { 0 };
986
987 mutt_str_copy(tmp, cac->host, sizeof(tmp));
988 mutt_str_lower(tmp);
989
990 buf_strcpy(buf, tmp);
991}
char * mutt_str_lower(char *str)
Convert all characters in the string to lowercase.
Definition: string.c:313
char host[128]
Server to login to.
Definition: connaccount.h:54
+ Here is the call graph for this function:

◆ nntp_S()

void nntp_S ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Newsrc: Url schema - Implements ExpandoRenderData::get_string() -.

Definition at line 996 of file newsrc.c.

998{
999 struct NntpAccountData *adata = data;
1000 struct ConnAccount *cac = &adata->conn->account;
1001
1002 char tmp[128] = { 0 };
1003
1004 struct Url url = { 0 };
1005 mutt_account_tourl(cac, &url);
1006 url_tostring(&url, tmp, sizeof(tmp), U_PATH);
1007 char *p = strchr(tmp, ':');
1008 if (p)
1009 {
1010 *p = '\0';
1011 }
1012
1013 buf_strcpy(buf, tmp);
1014}
+ Here is the call graph for this function:

◆ nntp_u()

void nntp_u ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Newsrc: Username - Implements ExpandoRenderData::get_string() -.

Definition at line 1019 of file newsrc.c.

1021{
1022 const struct NntpAccountData *adata = data;
1023 const struct ConnAccount *cac = &adata->conn->account;
1024
1025 const char *s = cac->user;
1026 buf_strcpy(buf, s);
1027}
char user[128]
Username.
Definition: connaccount.h:56
+ Here is the call graph for this function:

◆ pattern_d()

void pattern_d ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Pattern: pattern description - Implements ExpandoRenderData::get_string() -.

Definition at line 100 of file dlg_pattern.c.

102{
103 const struct PatternEntry *entry = data;
104
105 const char *s = entry->desc;
106 buf_strcpy(buf, s);
107}
A line in the Pattern Completion menu.
Definition: private.h:37
const char * desc
Description of pattern.
Definition: private.h:41
+ Here is the call graph for this function:

◆ pattern_e()

void pattern_e ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Pattern: pattern expression - Implements ExpandoRenderData::get_string() -.

Definition at line 112 of file dlg_pattern.c.

114{
115 const struct PatternEntry *entry = data;
116
117 const char *s = entry->expr;
118 buf_strcpy(buf, s);
119}
const char * expr
Displayed in the menu.
Definition: private.h:40
+ Here is the call graph for this function:

◆ greeting_n()

void greeting_n ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Greeting: Real name - Implements ExpandoRenderData::get_string() -.

Definition at line 679 of file send.c.

681{
682 const struct Email *e = data;
683 const struct Address *to = TAILQ_FIRST(&e->env->to);
684
685 const char *s = mutt_get_name(to);
686 buf_strcpy(buf, s);
687}
+ Here is the call graph for this function:

◆ greeting_u()

void greeting_u ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Greeting: Login name - Implements ExpandoRenderData::get_string() -.

Definition at line 692 of file send.c.

694{
695 const struct Email *e = data;
696 const struct Address *to = TAILQ_FIRST(&e->env->to);
697
698 char tmp[128] = { 0 };
699 char *p = NULL;
700
701 if (to)
702 {
703 mutt_str_copy(tmp, mutt_addr_for_display(to), sizeof(tmp));
704 if ((p = strpbrk(tmp, "%@")))
705 {
706 *p = '\0';
707 }
708 }
709
710 buf_strcpy(buf, tmp);
711}
+ Here is the call graph for this function:

◆ greeting_v()

void greeting_v ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Greeting: First name - Implements ExpandoRenderData::get_string() -.

Definition at line 716 of file send.c.

718{
719 const struct Email *e = data;
720 const struct Address *to = TAILQ_FIRST(&e->env->to);
721 const struct Address *cc = TAILQ_FIRST(&e->env->cc);
722
723 char tmp[128] = { 0 };
724 char *p = NULL;
725
726 if (to)
727 {
728 const char *s = mutt_get_name(to);
729 mutt_str_copy(tmp, s, sizeof(tmp));
730 }
731 else if (cc)
732 {
733 const char *s = mutt_get_name(cc);
734 mutt_str_copy(tmp, s, sizeof(tmp));
735 }
736
737 if ((p = strpbrk(tmp, " %@")))
738 *p = '\0';
739
740 buf_strcpy(buf, tmp);
741}
+ Here is the call graph for this function:

◆ sidebar_bang()

void sidebar_bang ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Sidebar: Flagged flags - Implements ExpandoRenderData::get_string() -.

Definition at line 333 of file window.c.

335{
336 const struct SidebarData *sdata = data;
337 const struct SbEntry *sbe = sdata->entry;
338 const struct Mailbox *m = sbe->mailbox;
339
340 if (m->msg_flagged == 0)
341 {
342 buf_strcpy(buf, "");
343 }
344 else if (m->msg_flagged == 1)
345 {
346 buf_strcpy(buf, "!");
347 }
348 else if (m->msg_flagged == 2)
349 {
350 buf_strcpy(buf, "!!");
351 }
352 else
353 {
354 buf_printf(buf, "%d!", m->msg_flagged);
355 }
356}
int msg_flagged
Number of flagged messages.
Definition: mailbox.h:90
Info about folders in the sidebar.
Definition: private.h:41
struct Mailbox * mailbox
Mailbox this represents.
Definition: private.h:45
Data passed to sidebar_format_str()
Definition: window.c:89
struct SbEntry * entry
Info about a folder.
Definition: window.c:90
+ Here is the call graph for this function:

◆ sidebar_B()

void sidebar_B ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Sidebar: Name of the mailbox - Implements ExpandoRenderData::get_string() -.

Definition at line 373 of file window.c.

375{
376 const struct SidebarData *sdata = data;
377 const struct SbEntry *sbe = sdata->entry;
378
379 char tmp[256] = { 0 };
380
381 const size_t ilen = sizeof(tmp);
382 const size_t off = add_indent(tmp, ilen, sbe);
383 snprintf(tmp + off, ilen - off, "%s", sbe->box);
384
385 buf_strcpy(buf, tmp);
386}
static size_t add_indent(char *buf, size_t buflen, const struct SbEntry *sbe)
Generate the needed indentation.
Definition: window.c:232
char box[256]
Mailbox path (possibly abbreviated)
Definition: private.h:42
+ Here is the call graph for this function:

◆ sidebar_D()

void sidebar_D ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Sidebar: Descriptive name - Implements ExpandoRenderData::get_string() -.

Definition at line 407 of file window.c.

409{
410 const struct SidebarData *sdata = data;
411 const struct SbEntry *sbe = sdata->entry;
412
413 char tmp[256] = { 0 };
414
415 const size_t ilen = sizeof(tmp);
416 const size_t off = add_indent(tmp, ilen, sbe);
417
418 if (sbe->mailbox->name)
419 {
420 snprintf(tmp + off, ilen - off, "%s", sbe->mailbox->name);
421 }
422 else
423 {
424 snprintf(tmp + off, ilen - off, "%s", sbe->box);
425 }
426
427 buf_strcpy(buf, tmp);
428}
char * name
A short name for the Mailbox.
Definition: mailbox.h:82
+ Here is the call graph for this function:

◆ sidebar_n()

void sidebar_n ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Sidebar: New mail flag - Implements ExpandoRenderData::get_string() -.

Definition at line 473 of file window.c.

475{
476 const struct SidebarData *sdata = data;
477 const struct SbEntry *sbe = sdata->entry;
478 const struct Mailbox *m = sbe->mailbox;
479
480 // NOTE(g0mb4): use $flag_chars?
481 const char *s = m->has_new ? "N" : " ";
482 buf_strcpy(buf, s);
483}
bool has_new
Mailbox has new mail.
Definition: mailbox.h:85
+ Here is the call graph for this function:

◆ status_r()

void status_r ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Modified/read-only flag - Implements ExpandoRenderData::get_string() -.

Definition at line 85 of file status.c.

87{
88 const struct MbTable *c_status_chars = cs_subset_mbtable(NeoMutt->sub, "status_chars");
89 if (!c_status_chars || !c_status_chars->len)
90 return;
91
92 const struct MenuStatusLineData *msld = data;
93 const struct IndexSharedData *shared = msld->shared;
94 const struct Mailbox *m = shared->mailbox;
95
96 size_t i = 0;
97
98 if (m)
99 {
100 i = shared->attach_msg ? 3 :
101 ((m->readonly || m->dontwrite) ? 2 :
102 (m->changed ||
103 /* deleted doesn't necessarily mean changed in IMAP */
104 (m->type != MUTT_IMAP && m->msg_deleted)) ?
105 1 :
106 0);
107 }
108
109 if (i >= c_status_chars->len)
110 buf_addstr(buf, c_status_chars->chars[0]);
111 else
112 buf_addstr(buf, c_status_chars->chars[i]);
113}
@ MUTT_IMAP
'IMAP' Mailbox type
Definition: mailbox.h:50
Data shared between Index, Pager and Sidebar.
Definition: shared_data.h:37
struct Mailbox * mailbox
Current Mailbox.
Definition: shared_data.h:41
bool attach_msg
Are we in "attach message" mode?
Definition: shared_data.h:46
bool changed
Mailbox has been modified.
Definition: mailbox.h:110
int msg_deleted
Number of deleted messages.
Definition: mailbox.h:93
bool dontwrite
Don't write the mailbox on close.
Definition: mailbox.h:111
bool readonly
Don't allow changes to the mailbox.
Definition: mailbox.h:116
char ** chars
The array of multibyte character strings.
Definition: mbtable.h:39
Data for creating a Menu line.
Definition: status.c:77
struct IndexSharedData * shared
Data shared between Index, Pager and Sidebar.
Definition: status.c:78
+ Here is the call graph for this function:

◆ status_D()

void status_D ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Description of the mailbox - Implements ExpandoRenderData::get_string() -.

Definition at line 118 of file status.c.

120{
121 const struct MenuStatusLineData *msld = data;
122 const struct IndexSharedData *shared = msld->shared;
123 const struct Mailbox *m = shared->mailbox;
124
125 // If there's a descriptive name, use it. Otherwise, use %f
126 if (m && m->name)
127 {
128 const char *s = m->name;
129 buf_strcpy(buf, s);
130 return;
131 }
132
133 status_f(node, data, flags, buf);
134}
void status_f(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: pathname of the mailbox - Implements ExpandoRenderData::get_string() -.
Definition: status.c:139
+ Here is the call graph for this function:

◆ status_f()

void status_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: pathname of the mailbox - Implements ExpandoRenderData::get_string() -.

Definition at line 139 of file status.c.

141{
142 const struct MenuStatusLineData *msld = data;
143 const struct IndexSharedData *shared = msld->shared;
144 const struct Mailbox *m = shared->mailbox;
145
146 char tmp[128] = { 0 };
147
148 if (m && m->compress_info && (m->realpath[0] != '\0'))
149 {
150 mutt_str_copy(tmp, m->realpath, sizeof(tmp));
151 mutt_pretty_mailbox(tmp, sizeof(tmp));
152 }
153 else if (m && (m->type == MUTT_NOTMUCH) && m->name)
154 {
155 mutt_str_copy(tmp, m->name, sizeof(tmp));
156 }
157 else if (m && !buf_is_empty(&m->pathbuf))
158 {
159 mutt_str_copy(tmp, mailbox_path(m), sizeof(tmp));
160 mutt_pretty_mailbox(tmp, sizeof(tmp));
161 }
162 else
163 {
164 mutt_str_copy(tmp, _("(no mailbox)"), sizeof(tmp));
165 }
166
167 buf_strcpy(buf, tmp);
168}
void mutt_pretty_mailbox(char *buf, size_t buflen)
Shorten a mailbox path using '~' or '='.
Definition: muttlib.c:440
struct Buffer pathbuf
Path of the Mailbox.
Definition: mailbox.h:80
void * compress_info
Compressed mbox module private data.
Definition: mailbox.h:121
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ status_l()

void status_l ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Size of the current mailbox - Implements ExpandoRenderData::get_string() -.

Definition at line 295 of file status.c.

297{
298 const struct MenuStatusLineData *msld = data;
299 const struct IndexSharedData *shared = msld->shared;
300 const struct Mailbox *m = shared->mailbox;
301
302 char tmp[128] = { 0 };
303
304 const off_t num = m ? m->size : 0;
305 mutt_str_pretty_size(tmp, sizeof(tmp), num);
306 buf_strcpy(buf, tmp);
307}
off_t size
Size of the Mailbox.
Definition: mailbox.h:84
+ Here is the call graph for this function:

◆ status_T()

void status_T ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Current threading mode - Implements ExpandoRenderData::get_string() -.

Definition at line 312 of file status.c.

314{
315 const enum UseThreads c_use_threads = mutt_thread_style();
316 const char *s = get_use_threads_str(c_use_threads);
317 buf_strcpy(buf, s);
318}
const char * get_use_threads_str(enum UseThreads value)
Convert UseThreads enum to string.
Definition: mutt_thread.c:100
enum UseThreads mutt_thread_style(void)
Which threading style is active?
Definition: mutt_thread.c:82
UseThreads
Which threading style is active, $use_threads.
Definition: mutt_thread.h:97
+ Here is the call graph for this function:

◆ status_s()

void status_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Sorting mode - Implements ExpandoRenderData::get_string() -.

Definition at line 323 of file status.c.

325{
326 char tmp[128] = { 0 };
327
328 const enum SortType c_sort = cs_subset_sort(NeoMutt->sub, "sort");
329 const char *s = get_sort_str(tmp, sizeof(tmp), c_sort);
330 buf_strcpy(buf, s);
331}
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
Definition: helpers.c:266
SortType
Methods for sorting.
Definition: sort2.h:34
static char * get_sort_str(char *buf, size_t buflen, enum SortType method)
Get the sort method as a string.
Definition: status.c:65
+ Here is the call graph for this function:

◆ status_S()

void status_S ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Aux sorting method - Implements ExpandoRenderData::get_string() -.

Definition at line 336 of file status.c.

338{
339 char tmp[128] = { 0 };
340
341 const enum SortType c_sort_aux = cs_subset_sort(NeoMutt->sub, "sort_aux");
342 const char *s = get_sort_str(tmp, sizeof(tmp), c_sort_aux);
343 buf_strcpy(buf, s);
344}
+ Here is the call graph for this function:

◆ status_P()

void status_P ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Percentage through index - Implements ExpandoRenderData::get_string() -.

Definition at line 365 of file status.c.

367{
368 const struct MenuStatusLineData *msld = data;
369 const struct Menu *menu = msld->menu;
370 if (!menu)
371 return;
372
373 char tmp[128] = { 0 };
374
375 char *cp = NULL;
376 if (menu->top + menu->page_len >= menu->max)
377 {
378 cp = menu->top ?
379 /* L10N: Status bar message: the end of the list emails is visible in the index */
380 _("end") :
381 /* L10N: Status bar message: all the emails are visible in the index */
382 _("all");
383 }
384 else
385 {
386 int count = (100 * (menu->top + menu->page_len)) / menu->max;
387 /* L10N: Status bar, percentage of way through index.
388 `%d` is the number, `%%` is the percent symbol.
389 They may be reordered, or space inserted, if you wish. */
390 snprintf(tmp, sizeof(tmp), _("%d%%"), count);
391 cp = tmp;
392 }
393
394 buf_strcpy(buf, cp);
395}
struct Menu * menu
Current Menu.
Definition: status.c:79
Definition: lib.h:79
int top
Entry that is the top of the current page.
Definition: lib.h:90
int max
Number of entries in the menu.
Definition: lib.h:81
int page_len
Number of entries per screen.
Definition: lib.h:84
+ Here is the call graph for this function:

◆ status_h()

void status_h ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Local hostname - Implements ExpandoRenderData::get_string() -.

Definition at line 400 of file status.c.

402{
403 const char *s = ShortHostname;
404 buf_strcpy(buf, s);
405}
+ Here is the call graph for this function:

◆ status_L()

void status_L ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Size of the messages - Implements ExpandoRenderData::get_string() -.

Definition at line 424 of file status.c.

426{
427 const struct MenuStatusLineData *msld = data;
428 const struct IndexSharedData *shared = msld->shared;
429 const struct MailboxView *mailbox_view = shared->mailbox_view;
430
431 char tmp[128] = { 0 };
432
433 const off_t num = mailbox_view ? mailbox_view->vsize : 0;
434 mutt_str_pretty_size(tmp, sizeof(tmp), num);
435 buf_strcpy(buf, tmp);
436}
struct MailboxView * mailbox_view
Current Mailbox view.
Definition: shared_data.h:40
View of a Mailbox.
Definition: mview.h:40
off_t vsize
Size (in bytes) of the messages shown.
Definition: mview.h:41
+ Here is the call graph for this function:

◆ status_v()

void status_v ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Version string - Implements ExpandoRenderData::get_string() -.

Definition at line 465 of file status.c.

467{
468 const char *s = mutt_make_version();
469 buf_strcpy(buf, s);
470}
+ Here is the call graph for this function:

◆ status_V()

void status_V ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
struct Buffer buf 
)

Status: Active limit pattern - Implements ExpandoRenderData::get_string() -.

Definition at line 475 of file status.c.

477{
478 const struct MenuStatusLineData *msld = data;
479 const struct IndexSharedData *shared = msld->shared;
480 const struct MailboxView *mailbox_view = shared->mailbox_view;
481
482 const char *s = mview_has_limit(mailbox_view) ? mailbox_view->pattern : "";
483 buf_strcpy(buf, s);
484}
bool mview_has_limit(const struct MailboxView *mv)
Is a limit active?
Definition: mview.c:439
char * pattern
Limit pattern string.
Definition: mview.h:42
+ Here is the call graph for this function: