117 char line[8192] = { 0 };
125 int fd_null = open(
"/dev/null", O_RDWR);
150 while (fgets(line,
sizeof(line), fp))
154 t = strtok(line,
" \t\n");
160 t = strtok(NULL,
" \t\n");
166 t = strtok(NULL,
" \t\n");
170 t = strtok(NULL,
" \t\n");
176 t = strtok(NULL,
" \t\n");
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_FREE(head)
Release all memory.
#define ARRAY_HEAD_INITIALIZER
Static initializer for arrays.
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
int filter_wait(pid_t pid)
Wait for the exit of a process and return its status.
pid_t filter_create_fd(const char *cmd, FILE **fp_in, FILE **fp_out, FILE **fp_err, int fdin, int fdout, int fderr)
Run a command on a pipe (optionally connect stdin/stdout)
Convenience wrapper for the gui headers.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Convenience wrapper for the library headers.
char * mutt_str_dup(const char *str)
Copy a string, safely.
void window_invalidate_all(void)
Mark all windows as in need of repaint.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
static MixCapFlags mix_get_caps(const char *capstr)
Get Mixmaster Capabilities.
struct RemailerArray remailer_get_hosts(void)
Parse the type2.list as given by mixmaster -T.
void remailer_clear_hosts(struct RemailerArray *ra)
Clear a Remailer List.
struct Remailer * remailer_new(void)
Create a new Remailer.
void remailer_free(struct Remailer **ptr)
Free a Remailer.
#define MIX_CAP_MIDDLEMAN
Must be a middle-man (not at the end of a chain)
#define MIX_CAP_NEWSMAIL
Supports posting to Usenet through a mail-to-news gateway.
#define MIX_CAP_NO_FLAGS
No flags are set.
#define MIX_CAP_COMPRESS
Accepts compressed messages.
uint8_t MixCapFlags
Flags, e.g. MIX_CAP_NO_FLAGS.
#define MIX_CAP_NEWSPOST
Supports direct posting to Usenet.
String manipulation buffer.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
char * addr
Address of host.
char * shortname
Short name of remailer host.
MixCapFlags caps
Capabilities of host.
char * ver
Version of host.