NeoMutt  2020-06-26-250-g349c94
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 Context;
33 struct Email;
34 struct Mailbox;
36 /* These Config Variables are only used in hdrline.c */
37 extern struct MbTable *C_CryptChars;
38 extern struct MbTable *C_FlagChars;
39 extern struct MbTable *C_FromChars;
40 extern struct MbTable *C_ToChars;
46 {
47  struct Context *ctx;
48  struct Mailbox *mailbox;
49  struct Email *email;
50  const char *pager_progress;
51 };
53 void mutt_make_string_flags(char *buf, size_t buflen, int cols, const char *s,
54  struct Context *ctx, struct Mailbox *m,
55  struct Email *e, MuttFormatFlags flags);
56 void mutt_make_string_info(char *buf, size_t buflen, int cols, const char *s,
57  struct HdrFormatInfo *hfi, MuttFormatFlags flags);
59 #define mutt_make_string(BUF, BUFLEN, COLS, S, CTX, M, E) \
60  mutt_make_string_flags(BUF, BUFLEN, COLS, S, CTX, M, E, MUTT_FORMAT_NO_FLAGS)
62 #endif /* MUTT_HDRLINE_H */
struct Context * ctx
Definition: hdrline.h:47
The "current" mailbox.
Definition: context.h:37
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:61
Data passed to index_format_str()
Definition: hdrline.h:45
struct Mailbox * mailbox
Definition: hdrline.h:48
struct MbTable * C_FlagChars
Config: User-configurable index flags: tagged, new, etc.
Definition: hdrline.c:62
A mailbox.
Definition: mailbox.h:81
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:1430
struct MbTable * C_FromChars
Config: User-configurable index flags: to address, cc address, etc.
Definition: hdrline.c:63
const char * pager_progress
Definition: hdrline.h:50
struct Email * email
Definition: hdrline.h:49
struct MbTable * C_ToChars
Config: Indicator characters for the &#39;To&#39; field in the index.
Definition: hdrline.c:64
void mutt_make_string_flags(char *buf, size_t buflen, int cols, const char *s, struct Context *ctx, struct Mailbox *m, struct Email *e, MuttFormatFlags flags)
Create formatted strings using mailbox expandos.
Definition: hdrline.c:1407