24#ifndef MUTT_MUTT_STATE_H
25#define MUTT_MUTT_STATE_H
62#define state_set_prefix(state) ((state)->flags |= STATE_PENDINGPREFIX)
63#define state_reset_prefix(state) ((state)->flags &= ~STATE_PENDINGPREFIX)
64#define state_puts(STATE, STR) fputs(STR, (STATE)->fp_out)
65#define state_putc(STATE, STR) fputc(STR, (STATE)->fp_out)
73 __attribute__((__format__(__printf__, 2, 3)));
const char * state_attachment_marker(void)
Get a unique (per-run) ANSI string to mark PGP messages in an email.
int state_putws(struct State *state, const wchar_t *ws)
Write a wide string to the state.
const char * state_protected_header_marker(void)
Get a unique (per-run) ANSI string to mark protected headers in an email.
void state_attach_puts(struct State *state, const char *t)
Write a string to the state.
int state_printf(struct State *state, const char *fmt,...) __attribute__((__format__(__printf__
void state_mark_attach(struct State *state)
Write a unique marker around content.
void state_prefix_put(struct State *state, const char *buf, size_t buflen)
Write a prefixed fixed-string to the State.
void state_mark_protected_header(struct State *state)
Write a unique marker around protected headers.
StateFlag
Flags for State->flags.
@ STATE_CHARCONV
Do character set conversions.
@ STATE_PENDINGPREFIX
Prefix to write, but character must follow.
@ STATE_FIRSTDONE
The first attachment has been done.
@ STATE_PRINTING
Are we printing? - STATE_DISPLAY "light".
@ STATE_REPLYING
Are we replying?
@ STATE_PAGER
Output will be displayed in the Pager.
@ STATE_NONE
No flags are set.
@ STATE_VERIFY
Perform signature verification.
@ STATE_WEED
Weed headers even when not in display mode.
@ STATE_DISPLAY_ATTACH
We are displaying an attachment.
@ STATE_DISPLAY
Output is displayed to the user.
void state_prefix_putc(struct State *state, char c)
Write a prefixed character to the state.
Keep track when processing files.
int wraplen
Width to wrap lines to (when flags & STATE_DISPLAY)
StateFlags flags
Flags, e.g. STATE_DISPLAY.
FILE * fp_out
File to write to.
FILE * fp_in
File to read from.
const char * prefix
String to add to the beginning of each output line.