118 char line[8192] = { 0 };
126 int fd_null = open(
"/dev/null", O_RDWR);
152 while (fgets(line,
sizeof(line), fp))
156 t = strtok(line,
" \t\n");
162 t = strtok(NULL,
" \t\n");
168 t = strtok(NULL,
" \t\n");
172 t = strtok(NULL,
" \t\n");
178 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, char **envlist)
Run a command on a pipe (optionally connect stdin/stdout)
char ** EnvList
Private copy of the environment variables.
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.