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

◆ attach_d()

void attach_d ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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, max_cols, 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, max_cols, 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:358
bool mutt_is_message_type(int type, const char *subtype)
Determine if a mime type matches a message or not.
Definition: parse.c:1493
void attach_F(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, 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:1797
#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:73
char * description
content-description
Definition: body.h:55
char * subtype
content-type subtype
Definition: body.h:60
char * filename
When sending a message, this is the file to which this structure refers.
Definition: body.h:58
Parsed Expando trees.
Definition: expando.h:41
Container for Accounts, Notifications.
Definition: neomutt.h:41
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:45
+ Here is the call graph for this function:

◆ attach_D()

void attach_D ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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:87
+ Here is the call graph for this function:

◆ attach_e()

void attach_e ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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,
int  max_cols,
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:600
void buf_pretty_mailbox(struct Buffer *buf)
Shorten a mailbox path using '~' or '='.
Definition: muttlib.c:554
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,
int  max_cols,
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, max_cols, buf);
271}
void attach_f(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, 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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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:86
+ Here is the call graph for this function:

◆ attach_s()

void attach_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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:1516
void mutt_str_pretty_size(char *buf, size_t buflen, size_t num)
Display an abbreviated size, like 3.4K.
Definition: muttlib.c:1101
#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,
int  max_cols,
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:89
+ Here is the call graph for this function:

◆ attach_T()

void attach_T ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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:107
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:122
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,
int  max_cols,
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:67
+ Here is the call graph for this function:

◆ autocrypt_a()

void autocrypt_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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:225
#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,
int  max_cols,
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 208 of file dlg_browser.c.

210{
211 const struct Folder *folder = data;
212
213 if (!folder->ff->local)
214 return;
215
216 char tmp[128] = { 0 };
217 char tmp2[128] = { 0 };
218 int len = node->end - node->start;
219 const char *start = node->start;
220
221 struct tm tm = mutt_date_localtime(folder->ff->mtime);
222 bool use_c_locale = false;
223 if (*start == '!')
224 {
225 use_c_locale = true;
226 start++;
227 len--;
228 }
229 assert(len < sizeof(tmp2));
230 mutt_strn_copy(tmp2, start, len, sizeof(tmp2));
231
232 if (use_c_locale)
233 {
234 strftime_l(tmp, sizeof(tmp), tmp2, &tm, NeoMutt->time_c_locale);
235 }
236 else
237 {
238 strftime(tmp, sizeof(tmp), tmp2, &tm);
239 }
240
241 buf_strcpy(buf, tmp);
242}
struct tm mutt_date_localtime(time_t t)
Converts calendar time to a broken-down time structure expressed in user timezone.
Definition: date.c:905
char * mutt_strn_copy(char *dest, const char *src, size_t len, size_t dsize)
Copy a sub-string into a buffer.
Definition: string.c:354
const char * end
End of string data.
Definition: node.h:78
const char * start
Start of string data.
Definition: node.h:77
time_t mtime
Modification time.
Definition: lib.h:81
A folder/dir in the browser.
Definition: lib.h:69
struct FolderFile * ff
File / Dir / Mailbox.
Definition: lib.h:70
locale_t time_c_locale
Current locale but LC_TIME=C.
Definition: neomutt.h:47
+ Here is the call graph for this function:

◆ folder_space()

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

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

Definition at line 247 of file dlg_browser.c.

249{
250 buf_addstr(buf, " ");
251}
+ Here is the call graph for this function:

◆ folder_d()

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

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

Definition at line 288 of file dlg_browser.c.

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

◆ folder_D()

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

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

Definition at line 322 of file dlg_browser.c.

324{
325 const struct Folder *folder = data;
326 if (!folder->ff->local)
327 return;
328
329 char tmp[128] = { 0 };
330 bool use_c_locale = false;
331 const char *const c_date_format = cs_subset_string(NeoMutt->sub, "date_format");
332 const char *t_fmt = NONULL(c_date_format);
333 if (*t_fmt == '!')
334 {
335 t_fmt++;
336 use_c_locale = true;
337 }
338
339 if (use_c_locale)
340 {
341 mutt_date_localtime_format_locale(tmp, sizeof(tmp), t_fmt,
342 folder->ff->mtime, NeoMutt->time_c_locale);
343 }
344 else
345 {
346 mutt_date_localtime_format(tmp, sizeof(tmp), t_fmt, folder->ff->mtime);
347 }
348
349 buf_strcpy(buf, tmp);
350}
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Definition: helpers.c:292
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:968
#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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 355 of file dlg_browser.c.

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

◆ folder_F()

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

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

Definition at line 375 of file dlg_browser.c.

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

◆ folder_g()

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

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

Definition at line 410 of file dlg_browser.c.

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

◆ folder_i()

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

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

Definition at line 431 of file dlg_browser.c.

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

◆ folder_l()

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

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

Definition at line 468 of file dlg_browser.c.

470{
471 const struct Folder *folder = data;
472 if (!folder->ff->local)
473 return;
474
475 buf_add_printf(buf, "%d", (int) folder->ff->nlink);
476}
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
Definition: buffer.c:203
nlink_t nlink
Number of hard links.
Definition: lib.h:84
+ Here is the call graph for this function:

◆ folder_m()

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

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

Definition at line 494 of file dlg_browser.c.

496{
497 const struct Folder *folder = data;
498 if (!folder->ff->has_mailbox)
499 return;
500
501 buf_add_printf(buf, "%d", folder->ff->msg_count);
502}
bool has_mailbox
This is a mailbox.
Definition: lib.h:98
int msg_count
total number of 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 520 of file dlg_browser.c.

522{
523 const struct Folder *folder = data;
524 if (!folder->ff->has_mailbox)
525 return;
526
527 buf_add_printf(buf, "%d", folder->ff->msg_unread);
528}
int msg_unread
number of unread messages
Definition: lib.h:91
+ Here is the call graph for this function:

◆ folder_N()

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

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

Definition at line 542 of file dlg_browser.c.

544{
545 const struct Folder *folder = data;
546
547 // NOTE(g0mb4): use $to_chars?
548 const char *s = folder->ff->has_new_mail ? "N" : " ";
549 buf_strcpy(buf, s);
550}
bool has_new_mail
true if mailbox has "new mail"
Definition: lib.h:89
+ Here is the call graph for this function:

◆ folder_s()

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

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

Definition at line 574 of file dlg_browser.c.

576{
577 const struct Folder *folder = data;
578
579 char tmp[128] = { 0 };
580
581 mutt_str_pretty_size(tmp, sizeof(tmp), folder->ff->size);
582 buf_strcpy(buf, tmp);
583}
off_t size
File size.
Definition: lib.h:80
+ Here is the call graph for this function:

◆ folder_t()

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

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

Definition at line 597 of file dlg_browser.c.

599{
600 const struct Folder *folder = data;
601
602 // NOTE(g0mb4): use $to_chars?
603 const char *s = folder->ff->tagged ? "*" : " ";
604 buf_strcpy(buf, s);
605}
bool tagged
Folder is tagged.
Definition: lib.h:102
+ Here is the call graph for this function:

◆ folder_u()

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

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

Definition at line 610 of file dlg_browser.c.

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

◆ compress_f()

void compress_f ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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:930
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,
int  max_cols,
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,
int  max_cols,
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:39
+ Here is the call graph for this function:

◆ compose_l()

void compose_l ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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,
int  max_cols,
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:893
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 321 of file hdrline.c.

323{
324 const struct HdrFormatInfo *hfi = data;
325 const struct Email *e = hfi->email;
326 if (!e)
327 return;
328
329 struct tm tm = mutt_date_localtime(e->received);
330
331 char tmp[128] = { 0 };
332 char tmp2[128] = { 0 };
333
334 int len = node->end - node->start;
335 const char *start = node->start;
336
337 bool use_c_locale = false;
338 if (*start == '!')
339 {
340 use_c_locale = true;
341 start++;
342 len--;
343 }
344 assert(len < sizeof(tmp2));
345 mutt_strn_copy(tmp2, start, len, sizeof(tmp2));
346
347 if (use_c_locale)
348 {
349 strftime_l(tmp, sizeof(tmp), tmp2, &tm, NeoMutt->time_c_locale);
350 }
351 else
352 {
353 strftime(tmp, sizeof(tmp), tmp2, &tm);
354 }
355
356 if (flags & MUTT_FORMAT_INDEX)
358 buf_strcpy(buf, tmp);
359}
@ MT_COLOR_INDEX_DATE
Index: date field.
Definition: color.h:86
#define MUTT_FORMAT_INDEX
This is a main index entry.
Definition: render.h:38
The envelope/body of an email.
Definition: email.h:39
time_t received
Time when the message was placed in the mailbox.
Definition: email.h:61
Data passed to index_format_str()
Definition: hdrline.c:72
struct Email * email
Current Email.
Definition: hdrline.c:75
+ Here is the call graph for this function:

◆ index_date_local()

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

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

Definition at line 377 of file hdrline.c.

379{
380 const struct HdrFormatInfo *hfi = data;
381 const struct Email *e = hfi->email;
382 if (!e)
383 return;
384
385 struct tm tm = mutt_date_localtime(e->date_sent);
386
387 char tmp[128] = { 0 };
388 char tmp2[128] = { 0 };
389
390 int len = node->end - node->start;
391 const char *start = node->start;
392
393 bool use_c_locale = false;
394 if (*start == '!')
395 {
396 use_c_locale = true;
397 start++;
398 len--;
399 }
400 assert(len < sizeof(tmp2));
401 mutt_strn_copy(tmp2, start, len, sizeof(tmp2));
402
403 if (use_c_locale)
404 {
405 strftime_l(tmp, sizeof(tmp), tmp2, &tm, NeoMutt->time_c_locale);
406 }
407 else
408 {
409 strftime(tmp, sizeof(tmp), tmp2, &tm);
410 }
411
412 if (flags & MUTT_FORMAT_INDEX)
414 buf_strcpy(buf, tmp);
415}
time_t date_sent
Time when the message was sent (UTC)
Definition: email.h:60
+ Here is the call graph for this function:

◆ index_date()

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

Index: Sender's date and time - Implements ExpandoRenderData::get_string() -.

Definition at line 433 of file hdrline.c.

435{
436 const struct HdrFormatInfo *hfi = data;
437 const struct Email *e = hfi->email;
438 if (!e)
439 return;
440
441 time_t now = e->date_sent;
442 if (e->zoccident)
443 now -= (e->zhours * 3600 + e->zminutes * 60);
444 else
445 now += (e->zhours * 3600 + e->zminutes * 60);
446
447 struct tm tm = mutt_date_gmtime(now);
448
449 char tmp[128] = { 0 };
450 char tmp2[128] = { 0 };
451
452 int len = node->end - node->start;
453 const char *start = node->start;
454
455 bool use_c_locale = false;
456 if (*start == '!')
457 {
458 use_c_locale = true;
459 start++;
460 len--;
461 }
462 assert(len < sizeof(tmp2));
463 mutt_strn_copy(tmp2, start, len, sizeof(tmp2));
464
465 if (use_c_locale)
466 {
467 strftime_l(tmp, sizeof(tmp), tmp2, &tm, NeoMutt->time_c_locale);
468 }
469 else
470 {
471 strftime(tmp, sizeof(tmp), tmp2, &tm);
472 }
473
474 if (flags & MUTT_FORMAT_INDEX)
476 buf_strcpy(buf, tmp);
477}
struct tm mutt_date_gmtime(time_t t)
Converts calendar time to a broken-down time structure expressed in UTC timezone.
Definition: date.c:926
unsigned int zminutes
Minutes away from UTC.
Definition: email.h:57
bool zoccident
True, if west of UTC, False if east.
Definition: email.h:58
unsigned int zhours
Hours away from UTC.
Definition: email.h:56
+ Here is the call graph for this function:

◆ index_format_hook()

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

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

Definition at line 482 of file hdrline.c.

484{
485 const struct HdrFormatInfo *hfi = data;
486 struct Email *e = hfi->email;
487 if (!e)
488 return;
489
490 struct Mailbox *m = hfi->mailbox;
491
492 char tmp[128] = { 0 };
493 const int len = node->end - node->start;
494
495 mutt_strn_copy(tmp, node->start, len, sizeof(tmp));
496
497 const struct Expando *exp = mutt_idxfmt_hook(tmp, m, e);
498 if (!exp)
499 return;
500
502}
int expando_render(const struct Expando *exp, const struct ExpandoRenderData *rdata, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Render an Expando + data into a string.
Definition: expando.c:109
const struct ExpandoRenderData IndexRenderData[]
Callbacks for Index Expandos.
Definition: hdrline.c:66
const struct Expando * mutt_idxfmt_hook(const char *name, struct Mailbox *m, struct Email *e)
Get index-format-hook format string.
Definition: hook.c:983
#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:73
+ Here is the call graph for this function:

◆ index_a()

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

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

Definition at line 507 of file hdrline.c.

509{
510 const struct HdrFormatInfo *hfi = data;
511 const struct Email *e = hfi->email;
512 if (!e || !e->env)
513 return;
514
515 const struct Address *from = TAILQ_FIRST(&e->env->from);
516
517 const char *s = NULL;
518 if (from && from->mailbox)
519 {
520 s = mutt_addr_for_display(from);
521 }
522
523 if (flags & MUTT_FORMAT_INDEX)
525 buf_strcpy(buf, s);
526}
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
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 531 of file hdrline.c.

533{
534 const struct HdrFormatInfo *hfi = data;
535 const struct Email *e = hfi->email;
536 if (!e || !e->env)
537 return;
538
539 const struct Address *reply_to = TAILQ_FIRST(&e->env->reply_to);
540
541 if (reply_to && reply_to->mailbox)
542 {
543 if (flags & MUTT_FORMAT_INDEX)
545 const char *s = mutt_addr_for_display(reply_to);
546 buf_strcpy(buf, s);
547 return;
548 }
549
550 index_a(node, data, flags, max_cols, buf);
551}
void index_a(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Index: Author Address - Implements ExpandoRenderData::get_string() -.
Definition: hdrline.c:507
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 556 of file hdrline.c.

558{
559 const struct HdrFormatInfo *hfi = data;
560 struct Mailbox *m = hfi->mailbox;
561 if (!m)
562 {
563 buf_addstr(buf, "(null)");
564 return;
565 }
566
567 char *p = NULL;
568
569#ifdef USE_NOTMUCH
570 struct Email *e = hfi->email;
571 if (m->type == MUTT_NOTMUCH)
572 {
574 }
575#endif
576 if (!p)
577 {
578 p = strrchr(mailbox_path(m), '/');
579 if (p)
580 {
581 p++;
582 }
583 }
584 buf_addstr(buf, p ? p : mailbox_path(m));
585}
@ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 590 of file hdrline.c.

592{
593 const struct HdrFormatInfo *hfi = data;
594 const struct Email *e = hfi->email;
595 if (!e || !e->env)
596 return;
597
598 char tmp[128] = { 0 };
599
600 if (first_mailing_list(tmp, sizeof(tmp), &e->env->to) ||
601 first_mailing_list(tmp, sizeof(tmp), &e->env->cc))
602 {
603 buf_strcpy(buf, tmp);
604 return;
605 }
606
607 index_b(node, data, flags, max_cols, buf);
608}
void index_b(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Index: Filename - Implements ExpandoRenderData::get_string() -.
Definition: hdrline.c:556
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 626 of file hdrline.c.

628{
629 const struct HdrFormatInfo *hfi = data;
630 const struct Email *e = hfi->email;
631 if (!e)
632 return;
633
634 char tmp[128] = { 0 };
635
636 if (flags & MUTT_FORMAT_INDEX)
638
639 mutt_str_pretty_size(tmp, sizeof(tmp), e->body->length);
640 buf_strcpy(buf, tmp);
641}
@ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 646 of file hdrline.c.

648{
649 const struct HdrFormatInfo *hfi = (const struct HdrFormatInfo *) data;
650 const struct Email *e = hfi->email;
651 if (!e)
652 return;
653
654 char tmp[128] = { 0 };
655
656 if (flags & MUTT_FORMAT_INDEX)
658
659 mutt_str_pretty_size(tmp, sizeof(tmp), email_size(e));
660 buf_strcpy(buf, tmp);
661}
size_t email_size(const struct Email *e)
Compute the size of an email.
Definition: email.c:127
+ Here is the call graph for this function:

◆ index_d()

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

Index: Senders Date and time - Implements ExpandoRenderData::get_string() -.

Definition at line 695 of file hdrline.c.

697{
698 const struct HdrFormatInfo *hfi = data;
699 const struct Email *e = hfi->email;
700 if (!e)
701 return;
702
703 const char *c_date_format = cs_subset_string(NeoMutt->sub, "date_format");
704 const char *cp = NONULL(c_date_format);
705 bool use_c_locale = false;
706 if (*cp == '!')
707 {
708 use_c_locale = true;
709 cp++;
710 }
711
712 /* restore sender's time zone */
713 time_t now = e->date_sent;
714 if (e->zoccident)
715 now -= (e->zhours * 3600 + e->zminutes * 60);
716 else
717 now += (e->zhours * 3600 + e->zminutes * 60);
718
719 struct tm tm = mutt_date_gmtime(now);
720 char tmp[128] = { 0 };
721
722 if (use_c_locale)
723 {
724 strftime_l(tmp, sizeof(tmp), cp, &tm, NeoMutt->time_c_locale);
725 }
726 else
727 {
728 strftime(tmp, sizeof(tmp), cp, &tm);
729 }
730
731 if (flags & MUTT_FORMAT_INDEX)
733
734 buf_strcpy(buf, tmp);
735}
+ Here is the call graph for this function:

◆ index_D()

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

Index: Local Date and time - Implements ExpandoRenderData::get_string() -.

Definition at line 753 of file hdrline.c.

755{
756 const struct HdrFormatInfo *hfi = data;
757 const struct Email *e = hfi->email;
758 if (!e)
759 return;
760
761 const char *c_date_format = cs_subset_string(NeoMutt->sub, "date_format");
762 const char *cp = NONULL(c_date_format);
763 bool use_c_locale = false;
764 if (*cp == '!')
765 {
766 use_c_locale = true;
767 cp++;
768 }
769
770 struct tm tm = mutt_date_localtime(e->date_sent);
771 char tmp[128] = { 0 };
772
773 if (use_c_locale)
774 {
775 strftime_l(tmp, sizeof(tmp), cp, &tm, NeoMutt->time_c_locale);
776 }
777 else
778 {
779 strftime(tmp, sizeof(tmp), cp, &tm);
780 }
781
782 if (flags & MUTT_FORMAT_INDEX)
784
785 buf_strcpy(buf, tmp);
786}
+ Here is the call graph for this function:

◆ index_f()

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

Index: Sender - 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 || !e->env)
821 return;
822
823 mutt_addrlist_write(&e->env->from, buf, true);
824}
+ Here is the call graph for this function:

◆ index_F()

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

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

Definition at line 829 of file hdrline.c.

831{
832 const struct HdrFormatInfo *hfi = data;
833 struct Email *e = hfi->email;
834 if (!e || !e->env)
835 return;
836
837 char tmp[128] = { 0 };
838
839 make_from(e->env, tmp, sizeof(tmp), false, MUTT_FORMAT_NO_FLAGS);
840
841 if (flags & MUTT_FORMAT_INDEX)
843
844 buf_strcpy(buf, tmp);
845}
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:138
+ Here is the call graph for this function:

◆ index_Fp()

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

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

Definition at line 850 of file hdrline.c.

852{
853 const struct HdrFormatInfo *hfi = (const struct HdrFormatInfo *) data;
854 struct Email *e = hfi->email;
855 if (!e || !e->env)
856 return;
857
858 char tmp[128] = { 0 };
859
860 if (flags & MUTT_FORMAT_INDEX)
862
863 make_from(e->env, tmp, sizeof(tmp), false, MUTT_FORMAT_PLAIN);
864
865 buf_strcpy(buf, tmp);
866}
#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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 871 of file hdrline.c.

873{
874 const struct HdrFormatInfo *hfi = data;
875 struct Email *e = hfi->email;
876 if (!e)
877 return;
878
879 if (flags & MUTT_FORMAT_INDEX)
882}
@ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 887 of file hdrline.c.

889{
890 const struct HdrFormatInfo *hfi = data;
891 struct Email *e = hfi->email;
892 if (!e)
893 return;
894
895 char tag_format[3] = { 0 };
896
897 tag_format[0] = 'G';
898 tag_format[1] = node->start[1];
899 tag_format[2] = '\0';
900
901 char *tag = mutt_hash_find(TagFormats, tag_format);
902 if (!tag)
903 return;
904
905 if (flags & MUTT_FORMAT_INDEX)
908}
@ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 913 of file hdrline.c.

915{
916 const struct HdrFormatInfo *hfi = data;
917 struct Email *e = hfi->email;
918 if (!e || !e->env)
919 return;
920
921 buf_copy(buf, &e->env->spam);
922}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 927 of file hdrline.c.

929{
930 const struct HdrFormatInfo *hfi = data;
931 struct Email *e = hfi->email;
932 if (!e || !e->env)
933 return;
934
935 const char *s = e->env->message_id ? e->env->message_id : "<no.id>";
936 buf_strcpy(buf, s);
937}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 942 of file hdrline.c.

944{
945 const struct HdrFormatInfo *hfi = data;
946 const struct Email *e = hfi->email;
947 if (!e || !e->env)
948 return;
949
950 const struct Address *from = TAILQ_FIRST(&e->env->from);
951
952 char tmp[128] = { 0 };
953
954 if (mutt_mb_get_initials(mutt_get_name(from), tmp, sizeof(tmp)))
955 {
956 if (flags & MUTT_FORMAT_INDEX)
958
959 buf_strcpy(buf, tmp);
960 return;
961 }
962
963 index_a(node, data, flags, max_cols, buf);
964}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 969 of file hdrline.c.

971{
972 const struct HdrFormatInfo *hfi = data;
973 struct Email *e = hfi->email;
974 if (!e)
975 return;
976
977 bool have_tags = true;
978 struct Buffer *tags = buf_pool_get();
980 if (!buf_is_empty(tags))
981 {
982 if (flags & MUTT_FORMAT_TREE)
983 {
984 struct Buffer *parent_tags = buf_pool_get();
985 if (e->thread->prev && e->thread->prev->message)
986 {
988 }
989 if (!parent_tags && e->thread->parent && e->thread->parent->message)
990 {
992 }
993 if (parent_tags && buf_istr_equal(tags, parent_tags))
994 have_tags = false;
995 buf_pool_release(&parent_tags);
996 }
997 }
998 else
999 {
1000 have_tags = false;
1001 }
1002
1003 if (flags & MUTT_FORMAT_INDEX)
1005
1006 const char *s = have_tags ? buf_string(tags) : "";
1007 buf_strcpy(buf, s);
1008
1009 buf_pool_release(&tags);
1010}
bool buf_istr_equal(const struct Buffer *a, const struct Buffer *b)
Return if two buffers are equal, case insensitive.
Definition: buffer.c:696
bool buf_is_empty(const struct Buffer *buf)
Is the Buffer empty?
Definition: buffer.c:290
#define MUTT_FORMAT_TREE
Draw the thread tree.
Definition: render.h:35
struct MuttThread * thread
Thread of Emails.
Definition: email.h:122
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1015 of file hdrline.c.

1017{
1018 const struct HdrFormatInfo *hfi = data;
1019 const struct Email *e = hfi->email;
1020 if (!e || !e->env)
1021 return;
1022
1023 char tmp[128] = { 0 };
1024
1025 if (first_mailing_list(tmp, sizeof(tmp), &e->env->to) ||
1026 first_mailing_list(tmp, sizeof(tmp), &e->env->cc))
1027 {
1028 buf_strcpy(buf, tmp);
1029 }
1030}
+ Here is the call graph for this function:

◆ index_L()

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

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

Definition at line 1051 of file hdrline.c.

1053{
1054 const struct HdrFormatInfo *hfi = data;
1055 const struct Email *e = hfi->email;
1056 if (!e)
1057 return;
1058
1059 char tmp[128] = { 0 };
1060
1061 make_from(e->env, tmp, sizeof(tmp), true, flags);
1062
1063 if (flags & MUTT_FORMAT_INDEX)
1065 buf_strcpy(buf, tmp);
1066}
+ Here is the call graph for this function:

◆ index_M()

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

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

Definition at line 1085 of file hdrline.c.

1087{
1088 const struct HdrFormatInfo *hfi = data;
1089 const struct Email *e = hfi->email;
1090 if (!e)
1091 return;
1092
1093 const bool threads = mutt_using_threads();
1094 const bool is_index = (flags & MUTT_FORMAT_INDEX) != 0;
1095
1096 if (threads && is_index && e->collapsed && (e->num_hidden > 1))
1097 {
1098 if (flags & MUTT_FORMAT_INDEX)
1100 const int num = e->num_hidden;
1101 buf_printf(buf, "%d", num);
1102 }
1103 else if (is_index && threads)
1104 {
1105 if (flags & MUTT_FORMAT_INDEX)
1107 const char *s = " ";
1108 buf_strcpy(buf, s);
1109 }
1110}
@ 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:123
size_t num_hidden
Number of hidden messages in this view (only valid when collapsed is set)
Definition: email.h:126
+ Here is the call graph for this function:

◆ index_n()

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

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

Definition at line 1138 of file hdrline.c.

1140{
1141 const struct HdrFormatInfo *hfi = data;
1142 const struct Email *e = hfi->email;
1143 if (!e || !e->env)
1144 return;
1145
1146 const struct Address *from = TAILQ_FIRST(&e->env->from);
1147
1148 if (flags & MUTT_FORMAT_INDEX)
1150
1151 const char *s = mutt_get_name(from);
1152 buf_strcpy(buf, s);
1153}
+ Here is the call graph for this function:

◆ index_O()

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

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

Definition at line 1171 of file hdrline.c.

1173{
1174 const struct HdrFormatInfo *hfi = data;
1175 const struct Email *e = hfi->email;
1176 if (!e || !e->env)
1177 return;
1178
1179 char tmp[128] = { 0 };
1180 char *p = NULL;
1181
1182 make_from_addr(e->env, tmp, sizeof(tmp), true);
1183 const bool c_save_address = cs_subset_bool(NeoMutt->sub, "save_address");
1184 if (!c_save_address && (p = strpbrk(tmp, "%@")))
1185 {
1186 *p = '\0';
1187 }
1188
1189 buf_strcpy(buf, tmp);
1190}
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Definition: helpers.c:48
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:194
+ Here is the call graph for this function:

◆ index_P()

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

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

Definition at line 1195 of file hdrline.c.

1197{
1198 const struct HdrFormatInfo *hfi = data;
1199
1200 const char *s = hfi->pager_progress;
1201 buf_strcpy(buf, s);
1202}
const char * pager_progress
String representing Pager position through Email.
Definition: hdrline.c:76
+ Here is the call graph for this function:

◆ index_q()

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

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

Definition at line 1207 of file hdrline.c.

1209{
1210 const struct HdrFormatInfo *hfi = data;
1211 const struct Email *e = hfi->email;
1212 if (!e || !e->env)
1213 return;
1214
1215 const char *s = e->env->newsgroups;
1216 buf_strcpy(buf, s);
1217}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1222 of file hdrline.c.

1224{
1225 const struct HdrFormatInfo *hfi = data;
1226 const struct Email *e = hfi->email;
1227 if (!e || !e->env)
1228 return;
1229
1230 mutt_addrlist_write(&e->env->to, buf, true);
1231}
+ Here is the call graph for this function:

◆ index_R()

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

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

Definition at line 1236 of file hdrline.c.

1238{
1239 const struct HdrFormatInfo *hfi = data;
1240 const struct Email *e = hfi->email;
1241 if (!e || !e->env)
1242 return;
1243
1244 mutt_addrlist_write(&e->env->cc, buf, true);
1245}
+ Here is the call graph for this function:

◆ index_s()

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

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

Definition at line 1250 of file hdrline.c.

1252{
1253 const struct HdrFormatInfo *hfi = data;
1254 const struct Email *e = hfi->email;
1255 if (!e || !e->env)
1256 return;
1257
1258 if ((flags & MUTT_FORMAT_TREE) && !e->collapsed && !(flags & MUTT_FORMAT_FORCESUBJ))
1259 return;
1260
1261 if (flags & MUTT_FORMAT_INDEX)
1263
1265
1266 if (e->env->disp_subj)
1267 buf_strcpy(buf, e->env->disp_subj);
1268 else
1269 buf_strcpy(buf, e->env->subject);
1270}
@ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1275 of file hdrline.c.

1277{
1278 const struct HdrFormatInfo *hfi = data;
1279 const struct Email *e = hfi->email;
1280 if (!e)
1281 return;
1282
1283 const struct MbTable *c_flag_chars = cs_subset_mbtable(NeoMutt->sub, "flag_chars");
1284 const int msg_in_pager = hfi->msg_in_pager;
1285
1286 const char *wch = NULL;
1287 if (e->deleted)
1288 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_DELETED);
1289 else if (e->attach_del)
1291 else if (e->tagged)
1292 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_TAGGED);
1293 else if (e->flagged)
1294 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_IMPORTANT);
1295 else if (e->replied)
1296 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_REPLIED);
1297 else if (e->read && (msg_in_pager != e->msgno))
1298 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_SEMPTY);
1299 else if (e->old)
1300 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD);
1301 else
1302 wch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW);
1303
1304 if (flags & MUTT_FORMAT_INDEX)
1306
1307 buf_strcpy(buf, wch);
1308}
@ 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:120
@ 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:102
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:114
bool deleted
Email is deleted.
Definition: email.h:78
bool tagged
Email is tagged.
Definition: email.h:110
int msg_in_pager
Index of Email displayed in the Pager.
Definition: hdrline.c:74
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1313 of file hdrline.c.

1315{
1316 const struct HdrFormatInfo *hfi = data;
1317 const struct Email *e = hfi->email;
1318 if (!e || !e->env)
1319 return;
1320
1321 const struct Address *to = TAILQ_FIRST(&e->env->to);
1322 const struct Address *cc = TAILQ_FIRST(&e->env->cc);
1323
1324 char tmp[128] = { 0 };
1325
1326 if (!check_for_mailing_list(&e->env->to, "To ", tmp, sizeof(tmp)) &&
1327 !check_for_mailing_list(&e->env->cc, "Cc ", tmp, sizeof(tmp)))
1328 {
1329 if (to)
1330 snprintf(tmp, sizeof(tmp), "To %s", mutt_get_name(to));
1331 else if (cc)
1332 snprintf(tmp, sizeof(tmp), "Cc %s", mutt_get_name(cc));
1333 else
1334 {
1335 tmp[0] = '\0';
1336 }
1337 }
1338
1339 buf_strcpy(buf, tmp);
1340}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1345 of file hdrline.c.

1347{
1348 const struct HdrFormatInfo *hfi = data;
1349 struct Email *e = hfi->email;
1350 if (!e)
1351 return;
1352
1353 const struct MbTable *c_to_chars = cs_subset_mbtable(NeoMutt->sub, "to_chars");
1354
1355 int i;
1356 const char *s = (c_to_chars && ((i = user_is_recipient(e))) < c_to_chars->len) ?
1357 c_to_chars->chars[i] :
1358 " ";
1359
1360 buf_strcpy(buf, s);
1361}
static enum ToChars user_is_recipient(struct Email *e)
Is the user a recipient of the message.
Definition: hdrline.c:238
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1366 of file hdrline.c.

1368{
1369 const struct HdrFormatInfo *hfi = data;
1370 const struct Email *e = hfi->email;
1371 if (!e || !e->env)
1372 return;
1373
1374 if (!(flags & MUTT_FORMAT_TREE) || e->collapsed)
1375 return;
1376
1378 node_expando_set_has_tree(node, true);
1379 buf_strcpy(buf, e->tree);
1380}
char * tree
Character string to print thread tree.
Definition: email.h:128
+ Here is the call graph for this function:

◆ index_u()

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

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

Definition at line 1385 of file hdrline.c.

1387{
1388 const struct HdrFormatInfo *hfi = data;
1389 const struct Email *e = hfi->email;
1390 if (!e || !e->env)
1391 return;
1392
1393 const struct Address *from = TAILQ_FIRST(&e->env->from);
1394 if (!from || !from->mailbox)
1395 return;
1396
1397 char tmp[128] = { 0 };
1398 char *p = NULL;
1399
1400 mutt_str_copy(tmp, mutt_addr_for_display(from), sizeof(tmp));
1401 p = strpbrk(tmp, "%@");
1402 if (p)
1403 {
1404 *p = '\0';
1405 }
1406
1407 buf_strcpy(buf, tmp);
1408}
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:575
+ Here is the call graph for this function:

◆ index_v()

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

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

Definition at line 1413 of file hdrline.c.

1415{
1416 const struct HdrFormatInfo *hfi = data;
1417 const struct Email *e = hfi->email;
1418 if (!e || !e->env)
1419 return;
1420
1421 const struct Address *from = TAILQ_FIRST(&e->env->from);
1422 const struct Address *to = TAILQ_FIRST(&e->env->to);
1423 const struct Address *cc = TAILQ_FIRST(&e->env->cc);
1424
1425 char tmp[128] = { 0 };
1426 char *p = NULL;
1427
1428 if (mutt_addr_is_user(from))
1429 {
1430 if (to)
1431 {
1432 const char *s = mutt_get_name(to);
1433 mutt_str_copy(tmp, NONULL(s), sizeof(tmp));
1434 }
1435 else if (cc)
1436 {
1437 const char *s = mutt_get_name(cc);
1438 mutt_str_copy(tmp, NONULL(s), sizeof(tmp));
1439 }
1440 }
1441 else
1442 {
1443 const char *s = mutt_get_name(from);
1444 mutt_str_copy(tmp, NONULL(s), sizeof(tmp));
1445 }
1446 p = strpbrk(tmp, " %@");
1447 if (p)
1448 {
1449 *p = '\0';
1450 }
1451
1452 buf_strcpy(buf, tmp);
1453}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1458 of file hdrline.c.

1460{
1461 const struct HdrFormatInfo *hfi = data;
1462 const struct Email *e = hfi->email;
1463 if (!e || !e->env)
1464 return;
1465
1466 const char *s = e->env->organization;
1467 buf_strcpy(buf, s);
1468}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1473 of file hdrline.c.

1475{
1476 const struct HdrFormatInfo *hfi = data;
1477 const struct Email *e = hfi->email;
1478 if (!e || !e->env)
1479 return;
1480
1481 const char *s = e->env->x_comment_to;
1482 buf_strcpy(buf, s);
1483}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1509 of file hdrline.c.

1511{
1512 const struct HdrFormatInfo *hfi = data;
1513 const struct Email *e = hfi->email;
1514 if (!e || !e->env)
1515 return;
1516
1517 if (flags & MUTT_FORMAT_INDEX)
1519
1520 const char *s = e->env->x_label;
1521 buf_strcpy(buf, s);
1522}
@ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1527 of file hdrline.c.

1529{
1530 const struct HdrFormatInfo *hfi = data;
1531 const struct Email *e = hfi->email;
1532 if (!e || !e->env)
1533 return;
1534
1535 bool label = true;
1536 if (e->env->x_label)
1537 {
1538 struct Email *e_tmp = NULL;
1539 if (flags & MUTT_FORMAT_TREE && (e->thread->prev && e->thread->prev->message &&
1540 e->thread->prev->message->env->x_label))
1541 {
1542 e_tmp = e->thread->prev->message;
1543 }
1544 else if (flags & MUTT_FORMAT_TREE && (e->thread->parent && e->thread->parent->message &&
1546 {
1547 e_tmp = e->thread->parent->message;
1548 }
1549
1550 if (e_tmp && mutt_istr_equal(e->env->x_label, e_tmp->env->x_label))
1551 {
1552 label = false;
1553 }
1554 }
1555 else
1556 {
1557 label = false;
1558 }
1559
1560 if (flags & MUTT_FORMAT_INDEX)
1562
1563 if (label)
1564 {
1565 const char *s = e->env->x_label;
1566 buf_strcpy(buf, s);
1567 }
1568}
bool mutt_istr_equal(const char *a, const char *b)
Compare two strings, ignoring case.
Definition: string.c:666
+ Here is the call graph for this function:

◆ index_zc()

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

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

Definition at line 1573 of file hdrline.c.

1575{
1576 const struct HdrFormatInfo *hfi = data;
1577 const struct Email *e = hfi->email;
1578 if (!e)
1579 return;
1580
1581 const struct MbTable *c_crypt_chars = cs_subset_mbtable(NeoMutt->sub, "crypt_chars");
1582
1583 const char *ch = NULL;
1584 if ((WithCrypto != 0) && (e->security & SEC_GOODSIGN))
1585 {
1587 }
1588 else if ((WithCrypto != 0) && (e->security & SEC_ENCRYPT))
1589 {
1591 }
1592 else if ((WithCrypto != 0) && (e->security & SEC_SIGN))
1593 {
1594 ch = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_SIGNED);
1595 }
1596 else if (((WithCrypto & APPLICATION_PGP) != 0) && ((e->security & PGP_KEY) == PGP_KEY))
1597 {
1599 }
1600 else
1601 {
1603 }
1604
1605 if (flags & MUTT_FORMAT_INDEX)
1607 buf_strcpy(buf, ch);
1608}
@ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1613 of file hdrline.c.

1615{
1616 const struct HdrFormatInfo *hfi = data;
1617 struct Email *e = hfi->email;
1618 if (!e)
1619 return;
1620
1621 const bool threads = mutt_using_threads();
1622 const struct MbTable *c_flag_chars = cs_subset_mbtable(NeoMutt->sub, "flag_chars");
1623 const int msg_in_pager = hfi->msg_in_pager;
1624
1625 const char *ch = NULL;
1626 if (e->deleted)
1627 {
1628 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_DELETED);
1629 }
1630 else if (e->attach_del)
1631 {
1633 }
1634 else if (threads && thread_is_new(e))
1635 {
1636 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW_THREAD);
1637 }
1638 else if (threads && thread_is_old(e))
1639 {
1640 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD_THREAD);
1641 }
1642 else if (e->read && (msg_in_pager != e->msgno))
1643 {
1644 if (e->replied)
1645 {
1646 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_REPLIED);
1647 }
1648 else
1649 {
1650 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_ZEMPTY);
1651 }
1652 }
1653 else
1654 {
1655 if (e->old)
1656 {
1657 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD);
1658 }
1659 else
1660 {
1661 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW);
1662 }
1663 }
1664
1665 if (flags & MUTT_FORMAT_INDEX)
1667 buf_strcpy(buf, ch);
1668}
static bool thread_is_old(struct Email *e)
Does the email thread contain any unread emails?
Definition: hdrline.c:300
static bool thread_is_new(struct Email *e)
Does the email thread contain any new emails?
Definition: hdrline.c:290
@ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 1673 of file hdrline.c.

1675{
1676 const struct HdrFormatInfo *hfi = data;
1677 struct Email *e = hfi->email;
1678 if (!e)
1679 return;
1680
1681 const struct MbTable *c_flag_chars = cs_subset_mbtable(NeoMutt->sub, "flag_chars");
1682 const struct MbTable *c_to_chars = cs_subset_mbtable(NeoMutt->sub, "to_chars");
1683
1684 const char *ch = NULL;
1685 if (e->tagged)
1686 {
1687 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_TAGGED);
1688 }
1689 else if (e->flagged)
1690 {
1691 ch = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_IMPORTANT);
1692 }
1693 else
1694 {
1695 ch = mbtable_get_nth_wchar(c_to_chars, user_is_recipient(e));
1696 }
1697
1698 if (flags & MUTT_FORMAT_INDEX)
1700 buf_strcpy(buf, ch);
1701}
+ Here is the call graph for this function:

◆ index_Z()

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

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

Definition at line 1706 of file hdrline.c.

1708{
1709 const struct HdrFormatInfo *hfi = data;
1710 struct Email *e = hfi->email;
1711 if (!e)
1712 return;
1713
1714 const int msg_in_pager = hfi->msg_in_pager;
1715
1716 const struct MbTable *c_crypt_chars = cs_subset_mbtable(NeoMutt->sub, "crypt_chars");
1717 const struct MbTable *c_flag_chars = cs_subset_mbtable(NeoMutt->sub, "flag_chars");
1718 const struct MbTable *c_to_chars = cs_subset_mbtable(NeoMutt->sub, "to_chars");
1719 const bool threads = mutt_using_threads();
1720
1721 const char *first = NULL;
1722 if (threads && thread_is_new(e))
1723 {
1724 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW_THREAD);
1725 }
1726 else if (threads && thread_is_old(e))
1727 {
1728 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD_THREAD);
1729 }
1730 else if (e->read && (msg_in_pager != e->msgno))
1731 {
1732 if (e->replied)
1733 {
1734 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_REPLIED);
1735 }
1736 else
1737 {
1738 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_ZEMPTY);
1739 }
1740 }
1741 else
1742 {
1743 if (e->old)
1744 {
1745 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_OLD);
1746 }
1747 else
1748 {
1749 first = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_NEW);
1750 }
1751 }
1752
1753 /* Marked for deletion; deleted attachments; crypto */
1754 const char *second = NULL;
1755 if (e->deleted)
1756 second = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_DELETED);
1757 else if (e->attach_del)
1758 second = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_DELETED_ATTACH);
1759 else if ((WithCrypto != 0) && (e->security & SEC_GOODSIGN))
1760 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_GOOD_SIGN);
1761 else if ((WithCrypto != 0) && (e->security & SEC_ENCRYPT))
1762 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_ENCRYPTED);
1763 else if ((WithCrypto != 0) && (e->security & SEC_SIGN))
1764 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_SIGNED);
1765 else if (((WithCrypto & APPLICATION_PGP) != 0) && (e->security & PGP_KEY))
1766 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_CONTAINS_KEY);
1767 else
1768 second = mbtable_get_nth_wchar(c_crypt_chars, FLAG_CHAR_CRYPT_NO_CRYPTO);
1769
1770 /* Tagged, flagged and recipient flag */
1771 const char *third = NULL;
1772 if (e->tagged)
1773 third = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_TAGGED);
1774 else if (e->flagged)
1775 third = mbtable_get_nth_wchar(c_flag_chars, FLAG_CHAR_IMPORTANT);
1776 else
1777 third = mbtable_get_nth_wchar(c_to_chars, user_is_recipient(e));
1778
1779 if (flags & MUTT_FORMAT_INDEX)
1781
1782 buf_printf(buf, "%s%s%s", first, second, third);
1783}
+ Here is the call graph for this function:

◆ history_s()

void history_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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:

◆ mix_a()

void mix_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
struct Buffer buf 
)

Mixmaster: Email address - Implements ExpandoRenderData::get_string() -.

Definition at line 113 of file win_hosts.c.

115{
116 const struct Remailer *remailer = data;
117
118 const char *s = remailer->addr;
119 buf_strcpy(buf, s);
120}
A Mixmaster remailer.
Definition: remailer.h:40
char * addr
Address of host.
Definition: remailer.h:43
+ Here is the call graph for this function:

◆ mix_c()

void mix_c ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
struct Buffer buf 
)

Mixmaster: Capabilities - Implements ExpandoRenderData::get_string() -.

Definition at line 125 of file win_hosts.c.

127{
128 const struct Remailer *remailer = data;
129
130 const char *s = mix_format_caps(remailer);
131 buf_strcpy(buf, s);
132}
static const char * mix_format_caps(const struct Remailer *r)
Turn flags into a MixMaster capability string.
Definition: win_hosts.c:67
+ Here is the call graph for this function:

◆ mix_s()

void mix_s ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
struct Buffer buf 
)

Mixmaster: Short name - Implements ExpandoRenderData::get_string() -.

Definition at line 147 of file win_hosts.c.

149{
150 const struct Remailer *remailer = data;
151
152 const char *s = remailer->shortname;
153 buf_strcpy(buf, s);
154}
char * shortname
Short name of remailer host.
Definition: remailer.h:42
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 303 of file dlg_gpgme.c.

305{
306#ifdef HAVE_PKG_GPGME
307 const struct CryptEntry *entry = data;
308 const struct CryptKeyInfo *key = entry->key;
309
310 char tmp[128] = { 0 };
311 char datestr[128] = { 0 };
312
313 int len = node->end - node->start;
314 const char *start = node->start;
315 bool use_c_locale = false;
316 if (*start == '!')
317 {
318 use_c_locale = true;
319 start++;
320 len--;
321 }
322
323 assert(len < sizeof(datestr));
324 mutt_strn_copy(datestr, start, len, sizeof(datestr));
325
326 struct tm tm = { 0 };
327 if (key->kobj->subkeys && (key->kobj->subkeys->timestamp > 0))
328 {
329 tm = mutt_date_localtime(key->kobj->subkeys->timestamp);
330 }
331 else
332 {
333 tm = mutt_date_localtime(0); // Default to 1970-01-01
334 }
335
336 if (use_c_locale)
337 {
338 strftime_l(tmp, sizeof(tmp), datestr, &tm, NeoMutt->time_c_locale);
339 }
340 else
341 {
342 strftime(tmp, sizeof(tmp), datestr, &tm);
343 }
344
345 buf_strcpy(buf, tmp);
346#endif
347}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 365 of file dlg_gpgme.c.

367{
368#ifdef HAVE_PKG_GPGME
369 const struct CryptEntry *entry = data;
370 const struct CryptKeyInfo *key = entry->key;
371
372 const char *s = gpgme_get_protocol_name(key->kobj->protocol);
373 buf_strcpy(buf, s);
374#endif
375}
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 380 of file dlg_gpgme.c.

382{
383#ifdef HAVE_PKG_GPGME
384 const struct CryptEntry *entry = data;
385 const struct CryptKeyInfo *key = entry->key;
386
387 const char *s = "";
388 if ((key->flags & KEYFLAG_ISX509))
389 {
390 s = "x";
391 }
392 else
393 {
394 switch (key->validity)
395 {
396 case GPGME_VALIDITY_FULL:
397 s = "f";
398 break;
399 case GPGME_VALIDITY_MARGINAL:
400 s = "m";
401 break;
402 case GPGME_VALIDITY_NEVER:
403 s = "n";
404 break;
405 case GPGME_VALIDITY_ULTIMATE:
406 s = "u";
407 break;
408 case GPGME_VALIDITY_UNDEFINED:
409 s = "q";
410 break;
411 case GPGME_VALIDITY_UNKNOWN:
412 default:
413 s = "?";
414 break;
415 }
416 }
417
418 buf_strcpy(buf, s);
419#endif
420}
#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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 425 of file dlg_gpgme.c.

427{
428#ifdef HAVE_PKG_GPGME
429 const struct CryptEntry *entry = data;
430 const struct CryptKeyInfo *key = entry->key;
431
432 const char *s = key->uid;
433 buf_strcpy(buf, s);
434#endif
435}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 440 of file dlg_gpgme.c.

442{
443#ifdef HAVE_PKG_GPGME
444 const struct CryptEntry *entry = data;
445 const struct CryptKeyInfo *key = entry->key;
446
447 const char *s = NULL;
448 if (key->kobj->subkeys)
449 s = gpgme_pubkey_algo_name(key->kobj->subkeys->pubkey_algo);
450 else
451 s = "?";
452
453 buf_strcpy(buf, s);
454#endif
455}
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 460 of file dlg_gpgme.c.

462{
463#ifdef HAVE_PKG_GPGME
464 const struct CryptEntry *entry = data;
465 const struct CryptKeyInfo *key = entry->key;
466
467 const char *s = crypt_key_abilities(key->flags);
468 buf_strcpy(buf, s);
469#endif
470}
static char * crypt_key_abilities(KeyFlags flags)
Parse key flags into a string.
Definition: dlg_gpgme.c:243
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 475 of file dlg_gpgme.c.

477{
478#ifdef HAVE_PKG_GPGME
479 const struct CryptEntry *entry = data;
480 const struct CryptKeyInfo *key = entry->key;
481
482 const char *s = crypt_flags(key->flags);
483 buf_strcpy(buf, s);
484#endif
485}
static char * crypt_flags(KeyFlags flags)
Parse the key flags into a single character.
Definition: dlg_gpgme.c:273
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 490 of file dlg_gpgme.c.

492{
493#ifdef HAVE_PKG_GPGME
494 const struct CryptEntry *entry = data;
495 struct CryptKeyInfo *key = entry->key;
496
497 /* fixme: we need a way to distinguish between main and subkeys.
498 * Store the idx in entry? */
499 const char *s = crypt_fpr_or_lkeyid(key);
500 buf_strcpy(buf, s);
501#endif
502}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 507 of file dlg_gpgme.c.

509{
510#ifdef HAVE_PKG_GPGME
511 const struct CryptEntry *entry = data;
512 struct CryptKeyInfo *key = entry->key;
513
514 /* fixme: we need a way to distinguish between main and subkeys.
515 * Store the idx in entry? */
516 const char *s = crypt_keyid(key);
517 buf_strcpy(buf, s);
518#endif
519}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 271 of file dlg_pgp.c.

273{
274#ifdef HAVE_PGP
275 const struct PgpEntry *entry = data;
276 const struct PgpUid *uid = entry->uid;
277 const struct PgpKeyInfo *key = uid->parent;
278
279 char tmp[128] = { 0 };
280 char datestr[128] = { 0 };
281
282 int len = node->end - node->start;
283 const char *start = node->start;
284 bool use_c_locale = false;
285 if (*start == '!')
286 {
287 use_c_locale = true;
288 start++;
289 len--;
290 }
291
292 assert(len < sizeof(datestr));
293 mutt_strn_copy(datestr, start, len, sizeof(datestr));
294
295 if (use_c_locale)
296 {
297 mutt_date_localtime_format_locale(tmp, sizeof(tmp), datestr, key->gen_time,
299 }
300 else
301 {
302 mutt_date_localtime_format(tmp, sizeof(tmp), datestr, key->gen_time);
303 }
304
305 buf_strcpy(buf, tmp);
306#endif
307}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 325 of file dlg_pgp.c.

327{
328#ifdef HAVE_PGP
329 const struct PgpEntry *entry = data;
330 const struct PgpUid *uid = entry->uid;
331
332 buf_printf(buf, "%c", TrustFlags[uid->trust & 0x03]);
333#endif
334}
static const char TrustFlags[]
Characters used to show the trust level for PGP keys.
Definition: dlg_pgp.c:106
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 339 of file dlg_pgp.c.

341{
342#ifdef HAVE_PGP
343 const struct PgpEntry *entry = data;
344 const struct PgpUid *uid = entry->uid;
345
346 const char *s = uid->addr;
347 buf_strcpy(buf, s);
348#endif
349}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 354 of file dlg_pgp.c.

356{
357#ifdef HAVE_PGP
358 const struct PgpEntry *entry = data;
359 const struct PgpUid *uid = entry->uid;
360 const struct PgpKeyInfo *key = uid->parent;
361
362 const char *s = key->algorithm;
363 buf_strcpy(buf, s);
364#endif
365}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 370 of file dlg_pgp.c.

372{
373#ifdef HAVE_PGP
374 const struct PgpEntry *entry = data;
375 const struct PgpUid *uid = entry->uid;
376 struct PgpKeyInfo *key = uid->parent;
377 struct PgpKeyInfo *pkey = pgp_principal_key(key);
378
379 const char *s = pkey->algorithm;
380 buf_strcpy(buf, s);
381#endif
382}
struct PgpKeyInfo * pgp_principal_key(struct PgpKeyInfo *key)
Get the main (parent) PGP key.
Definition: pgpkey.c:91
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 387 of file dlg_pgp.c.

389{
390#ifdef HAVE_PGP
391 const struct PgpEntry *entry = data;
392 const struct PgpUid *uid = entry->uid;
393 const struct PgpKeyInfo *key = uid->parent;
394
395 const KeyFlags kflags = key->flags | uid->flags;
396
397 const char *s = pgp_key_abilities(kflags);
398 buf_strcpy(buf, s);
399#endif
400}
static char * pgp_key_abilities(KeyFlags flags)
Turn PGP key abilities into a string.
Definition: dlg_pgp.c:211
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 405 of file dlg_pgp.c.

407{
408#ifdef HAVE_PGP
409 const struct PgpEntry *entry = data;
410 const struct PgpUid *uid = entry->uid;
411 struct PgpKeyInfo *key = uid->parent;
412 struct PgpKeyInfo *pkey = pgp_principal_key(key);
413
414 const KeyFlags kflags = (pkey->flags & KEYFLAG_RESTRICTIONS) | uid->flags;
415
416 const char *s = pgp_key_abilities(kflags);
417 buf_strcpy(buf, s);
418#endif
419}
#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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 424 of file dlg_pgp.c.

426{
427#ifdef HAVE_PGP
428 const struct PgpEntry *entry = data;
429 const struct PgpUid *uid = entry->uid;
430 const struct PgpKeyInfo *key = uid->parent;
431
432 const KeyFlags kflags = key->flags | uid->flags;
433
434 buf_printf(buf, "%c", pgp_flags(kflags));
435#endif
436}
static char pgp_flags(KeyFlags flags)
Turn PGP key flags into a string.
Definition: dlg_pgp.c:239
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 441 of file dlg_pgp.c.

443{
444#ifdef HAVE_PGP
445 const struct PgpEntry *entry = data;
446 const struct PgpUid *uid = entry->uid;
447 struct PgpKeyInfo *key = uid->parent;
448 struct PgpKeyInfo *pkey = pgp_principal_key(key);
449
450 const KeyFlags kflags = (pkey->flags & KEYFLAG_RESTRICTIONS) | uid->flags;
451
452 buf_printf(buf, "%c", pgp_flags(kflags));
453#endif
454}
+ 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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 459 of file dlg_pgp.c.

461{
462#ifdef HAVE_PGP
463 const struct PgpEntry *entry = data;
464 const struct PgpUid *uid = entry->uid;
465 struct PgpKeyInfo *key = uid->parent;
466
467 const char *s = pgp_this_keyid(key);
468 buf_strcpy(buf, s);
469#endif
470}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 475 of file dlg_pgp.c.

477{
478#ifdef HAVE_PGP
479 const struct PgpEntry *entry = data;
480 const struct PgpUid *uid = entry->uid;
481 struct PgpKeyInfo *key = uid->parent;
482 struct PgpKeyInfo *pkey = pgp_principal_key(key);
483
484 const char *s = pgp_this_keyid(pkey);
485 buf_strcpy(buf, s);
486#endif
487}
+ Here is the call graph for this function:

◆ pgp_entry_ignore()

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

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

Definition at line 525 of file dlg_pgp.c.

527{
528}

◆ pgp_command_a()

void pgp_command_a ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 202 of file smime.c.

204{
205#ifdef HAVE_SMIME
206 const struct SmimeCommandContext *cctx = data;
207
208 const char *s = cctx->cryptalg;
209 buf_strcpy(buf, s);
210#endif
211}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 216 of file smime.c.

218{
219#ifdef HAVE_SMIME
220 const struct SmimeCommandContext *cctx = data;
221
222 const char *s = cctx->certificates;
223 buf_strcpy(buf, s);
224#endif
225}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 230 of file smime.c.

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

◆ smime_command_d()

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

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

Definition at line 265 of file smime.c.

267{
268#ifdef HAVE_SMIME
269 const struct SmimeCommandContext *cctx = data;
270
271 const char *s = cctx->digestalg;
272 buf_strcpy(buf, s);
273#endif
274}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 279 of file smime.c.

281{
282#ifdef HAVE_SMIME
283 const struct SmimeCommandContext *cctx = data;
284
285 const char *s = cctx->fname;
286 buf_strcpy(buf, s);
287#endif
288}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 293 of file smime.c.

295{
296#ifdef HAVE_SMIME
297 const struct SmimeCommandContext *cctx = data;
298
299 const char *s = cctx->intermediates;
300 buf_strcpy(buf, s);
301#endif
302}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 307 of file smime.c.

309{
310#ifdef HAVE_SMIME
311 const struct SmimeCommandContext *cctx = data;
312
313 const char *s = cctx->key;
314 buf_strcpy(buf, s);
315#endif
316}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 321 of file smime.c.

323{
324#ifdef HAVE_SMIME
325 const struct SmimeCommandContext *cctx = data;
326
327 const char *s = cctx->sig_fname;
328 buf_strcpy(buf, s);
329#endif
330}
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,
int  max_cols,
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:73
char * mutt_str_dup(const char *str)
Copy a string, safely.
Definition: string.c:253
struct NntpMboxData * nd
Extra NNTP data.
Definition: lib.h:103
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 917 of file newsrc.c.

919{
920 struct NntpAccountData *adata = data;
921 struct ConnAccount *cac = &adata->conn->account;
922
923 char tmp[128] = { 0 };
924
925 struct Url url = { 0 };
926 mutt_account_tourl(cac, &url);
927 url_tostring(&url, tmp, sizeof(tmp), U_PATH);
928 char *p = strchr(tmp, '/');
929 if (p)
930 {
931 *p = '\0';
932 }
933
934 buf_strcpy(buf, tmp);
935}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 965 of file newsrc.c.

967{
968 const struct NntpAccountData *adata = data;
969 const struct ConnAccount *cac = &adata->conn->account;
970
971 if (cac->flags & MUTT_ACCT_PORT)
972 {
973 buf_add_printf(buf, "%hd", cac->port);
974 }
975}
#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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 980 of file newsrc.c.

982{
983 const struct NntpAccountData *adata = data;
984 const struct ConnAccount *cac = &adata->conn->account;
985
986 char tmp[128] = { 0 };
987
988 mutt_str_copy(tmp, cac->host, sizeof(tmp));
989 mutt_str_lower(tmp);
990
991 buf_strcpy(buf, tmp);
992}
char * mutt_str_lower(char *str)
Convert all characters in the string to lowercase.
Definition: string.c:307
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 997 of file newsrc.c.

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

◆ nntp_u()

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

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

Definition at line 1020 of file newsrc.c.

1022{
1023 const struct NntpAccountData *adata = data;
1024 const struct ConnAccount *cac = &adata->conn->account;
1025
1026 const char *s = cac->user;
1027 buf_strcpy(buf, s);
1028}
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 681 of file send.c.

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

◆ greeting_u()

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

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

Definition at line 694 of file send.c.

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

◆ greeting_v()

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

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

Definition at line 718 of file send.c.

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

◆ sidebar_bang()

void sidebar_bang ( const struct ExpandoNode node,
void *  data,
MuttFormatFlags  flags,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 84 of file status.c.

86{
87 const struct MbTable *c_status_chars = cs_subset_mbtable(NeoMutt->sub, "status_chars");
88 if (!c_status_chars || !c_status_chars->len)
89 return;
90
91 const struct MenuStatusLineData *msld = data;
92 const struct IndexSharedData *shared = msld->shared;
93 const struct Mailbox *m = shared->mailbox;
94
95 size_t i = 0;
96
97 if (m)
98 {
99 i = shared->attach_msg ? 3 :
100 ((m->readonly || m->dontwrite) ? 2 :
101 (m->changed ||
102 /* deleted doesn't necessarily mean changed in IMAP */
103 (m->type != MUTT_IMAP && m->msg_deleted)) ?
104 1 :
105 0);
106 }
107
108 if (i >= c_status_chars->len)
109 buf_addstr(buf, c_status_chars->chars[0]);
110 else
111 buf_addstr(buf, c_status_chars->chars[i]);
112}
@ 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:76
struct IndexSharedData * shared
Data shared between Index, Pager and Sidebar.
Definition: status.c:77
+ Here is the call graph for this function:

◆ status_D()

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

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

Definition at line 117 of file status.c.

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

◆ status_f()

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

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

Definition at line 138 of file status.c.

140{
141 const struct MenuStatusLineData *msld = data;
142 const struct IndexSharedData *shared = msld->shared;
143 const struct Mailbox *m = shared->mailbox;
144
145 char tmp[128] = { 0 };
146
147 if (m && m->compress_info && (m->realpath[0] != '\0'))
148 {
149 mutt_str_copy(tmp, m->realpath, sizeof(tmp));
150 mutt_pretty_mailbox(tmp, sizeof(tmp));
151 }
152 else if (m && (m->type == MUTT_NOTMUCH) && m->name)
153 {
154 mutt_str_copy(tmp, m->name, sizeof(tmp));
155 }
156 else if (m && !buf_is_empty(&m->pathbuf))
157 {
158 mutt_str_copy(tmp, mailbox_path(m), sizeof(tmp));
159 mutt_pretty_mailbox(tmp, sizeof(tmp));
160 }
161 else
162 {
163 mutt_str_copy(tmp, _("(no mailbox)"), sizeof(tmp));
164 }
165
166 buf_strcpy(buf, tmp);
167}
void mutt_pretty_mailbox(char *buf, size_t buflen)
Shorten a mailbox path using '~' or '='.
Definition: muttlib.c:475
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 294 of file status.c.

296{
297 const struct MenuStatusLineData *msld = data;
298 const struct IndexSharedData *shared = msld->shared;
299 const struct Mailbox *m = shared->mailbox;
300
301 char tmp[128] = { 0 };
302
303 const off_t num = m ? m->size : 0;
304 mutt_str_pretty_size(tmp, sizeof(tmp), num);
305 buf_strcpy(buf, tmp);
306}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 311 of file status.c.

313{
314 const enum UseThreads c_use_threads = mutt_thread_style();
315 const char *s = get_use_threads_str(c_use_threads);
316 buf_strcpy(buf, s);
317}
const char * get_use_threads_str(enum UseThreads value)
Convert UseThreads enum to string.
Definition: mutt_thread.c:101
enum UseThreads mutt_thread_style(void)
Which threading style is active?
Definition: mutt_thread.c:83
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 322 of file status.c.

324{
325 char tmp[128] = { 0 };
326
327 const enum SortType c_sort = cs_subset_sort(NeoMutt->sub, "sort");
328 const char *s = get_sort_str(tmp, sizeof(tmp), c_sort);
329 buf_strcpy(buf, s);
330}
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
Definition: helpers.c:267
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:64
+ Here is the call graph for this function:

◆ status_S()

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

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

Definition at line 335 of file status.c.

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

◆ status_P()

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

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

Definition at line 364 of file status.c.

366{
367 const struct MenuStatusLineData *msld = data;
368 const struct Menu *menu = msld->menu;
369 if (!menu)
370 return;
371
372 char tmp[128] = { 0 };
373
374 char *cp = NULL;
375 if (menu->top + menu->page_len >= menu->max)
376 {
377 cp = menu->top ?
378 /* L10N: Status bar message: the end of the list emails is visible in the index */
379 _("end") :
380 /* L10N: Status bar message: all the emails are visible in the index */
381 _("all");
382 }
383 else
384 {
385 int count = (100 * (menu->top + menu->page_len)) / menu->max;
386 /* L10N: Status bar, percentage of way through index.
387 `%d` is the number, `%%` is the percent symbol.
388 They may be reordered, or space inserted, if you wish. */
389 snprintf(tmp, sizeof(tmp), _("%d%%"), count);
390 cp = tmp;
391 }
392
393 buf_strcpy(buf, cp);
394}
struct Menu * menu
Current Menu.
Definition: status.c:78
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 399 of file status.c.

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

◆ status_L()

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

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

Definition at line 423 of file status.c.

425{
426 const struct MenuStatusLineData *msld = data;
427 const struct IndexSharedData *shared = msld->shared;
428 const struct MailboxView *mailbox_view = shared->mailbox_view;
429
430 char tmp[128] = { 0 };
431
432 const off_t num = mailbox_view ? mailbox_view->vsize : 0;
433 mutt_str_pretty_size(tmp, sizeof(tmp), num);
434 buf_strcpy(buf, tmp);
435}
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,
int  max_cols,
struct Buffer buf 
)

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

Definition at line 464 of file status.c.

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

◆ status_V()

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

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

Definition at line 474 of file status.c.

476{
477 const struct MenuStatusLineData *msld = data;
478 const struct IndexSharedData *shared = msld->shared;
479 const struct MailboxView *mailbox_view = shared->mailbox_view;
480
481 const char *s = mview_has_limit(mailbox_view) ? mailbox_view->pattern : "";
482 buf_strcpy(buf, s);
483}
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: