NeoMutt  2018-07-16 +2481-68dcde
Teaching an old dog new tricks
DOXYGEN
hdrline.h
Go to the documentation of this file.
1 
24 #ifndef MUTT_HDRLINE_H
25 #define MUTT_HDRLINE_H
26 
27 #include <stdbool.h>
28 #include <stdio.h>
29 #include "format_flags.h"
30 
31 struct Address;
32 struct Context;
33 struct Email;
34 struct Mailbox;
35 
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;
41 
46 {
47  struct Context *ctx;
48  struct Mailbox *mailbox;
49  struct Email *email;
50  const char *pager_progress;
51 };
52 
53 bool mutt_is_mail_list(const struct Address *addr);
54 bool mutt_is_subscribed_list(const struct Address *addr);
55 void mutt_make_string_flags(char *buf, size_t buflen, const char *s,
56  struct Context *ctx, struct Mailbox *m,
57  struct Email *e, MuttFormatFlags flags);
58 void mutt_make_string_info(char *buf, size_t buflen, int cols, const char *s,
59  struct HdrFormatInfo *hfi, MuttFormatFlags flags);
60 
61 #define mutt_make_string(BUF, BUFLEN, S, CTX, M, E) \
62  mutt_make_string_flags(BUF, BUFLEN, S, CTX, M, E, 0)
63 
64 #endif /* MUTT_HDRLINE_H */
void mutt_make_string_flags(char *buf, size_t buflen, const char *s, struct Context *ctx, struct Mailbox *m, struct Email *e, MuttFormatFlags flags)
Create formatted strings using mailbox expandos.
Definition: hdrline.c:1497
struct Context * ctx
Definition: hdrline.h:47
The "current" mailbox.
Definition: context.h:36
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:39
bool mutt_is_subscribed_list(const struct Address *addr)
Is this the email address of a user-subscribed mailing list?
Definition: hdrline.c:113
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:92
bool mutt_is_mail_list(const struct Address *addr)
Is this the email address of a mailing list?
Definition: hdrline.c:101
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:1520
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