NeoMutt  2020-11-20
Teaching an old dog new tricks
Go to the documentation of this file.
24 #ifndef MUTT_HDRLINE_H
25 #define MUTT_HDRLINE_H
27 #include <stdbool.h>
28 #include <stdio.h>
29 #include "format_flags.h"
31 struct Address;
32 struct Email;
33 struct Mailbox;
35 /* These Config Variables are only used in hdrline.c */
36 extern struct MbTable *C_CryptChars;
37 extern struct MbTable *C_FlagChars;
38 extern struct MbTable *C_FromChars;
39 extern struct MbTable *C_ToChars;
45 {
46  struct Mailbox *mailbox;
48  struct Email *email;
49  const char *pager_progress;
50 };
52 void mutt_make_string_flags(char *buf, size_t buflen, int cols, const char *s,
53  struct Mailbox *m, int inpgr,
54  struct Email *e, MuttFormatFlags flags);
55 void mutt_make_string_info(char *buf, size_t buflen, int cols, const char *s,
56  struct HdrFormatInfo *hfi, MuttFormatFlags flags);
58 #define mutt_make_string(BUF, BUFLEN, COLS, S, M, INPGR, E) \
59  mutt_make_string_flags(BUF, BUFLEN, COLS, S, M, INPGR, E, MUTT_FORMAT_NO_FLAGS)
61 #endif /* MUTT_HDRLINE_H */
uint8_t MuttFormatFlags
Flags for mutt_expando_format(), e.g. MUTT_FORMAT_FORCESUBJ.
Definition: format_flags.h:29
The envelope/body of an email.
Definition: email.h:37
An email address.
Definition: address.h:34
multibyte character table
Definition: mbtable.h:35
Flags to control mutt_expando_format()
struct MbTable * C_CryptChars
Config: User-configurable crypto flags: signed, encrypted etc.
Definition: hdrline.c:64
Data passed to index_format_str()
Definition: hdrline.h:44
struct Mailbox * mailbox
Definition: hdrline.h:46
struct MbTable * C_FlagChars
Config: User-configurable index flags: tagged, new, etc.
Definition: hdrline.c:65
A mailbox.
Definition: mailbox.h:81
int msg_in_pager
Definition: hdrline.h:47
void mutt_make_string_flags(char *buf, size_t buflen, int cols, const char *s, struct Mailbox *m, int inpgr, struct Email *e, MuttFormatFlags flags)
Create formatted strings using mailbox expandos.
Definition: hdrline.c:1415
void mutt_make_string_info(char *buf, size_t buflen, int cols, const char *s, struct HdrFormatInfo *hfi, MuttFormatFlags flags)
Create pager status bar string.
Definition: hdrline.c:1438
struct MbTable * C_FromChars
Config: User-configurable index flags: to address, cc address, etc.
Definition: hdrline.c:66
const char * pager_progress
Definition: hdrline.h:49
struct Email * email
Definition: hdrline.h:48
struct MbTable * C_ToChars
Config: Indicator characters for the &#39;To&#39; field in the index.
Definition: hdrline.c:67