41 |
#include <mailutils/error.h> |
#include <mailutils/error.h> |
42 |
#include <mailutils/errno.h> |
#include <mailutils/errno.h> |
43 |
#include <mailutils/nls.h> |
#include <mailutils/nls.h> |
44 |
|
#include <mailutils/argcv.h> |
45 |
|
|
46 |
#include <mu_asprintf.h> |
#include <mu_asprintf.h> |
47 |
|
#include <getline.h> |
48 |
|
|
49 |
#define MH_FMT_RALIGN 0x1000 |
#define MH_FMT_RALIGN 0x1000 |
50 |
#define MH_FMT_ZEROPAD 0x2000 |
#define MH_FMT_ZEROPAD 0x2000 |
185 |
#define RCPT_ME 0x0004 |
#define RCPT_ME 0x0004 |
186 |
#define RCPT_ALL (RCPT_TO|RCPT_CC|RCPT_ME) |
#define RCPT_ALL (RCPT_TO|RCPT_CC|RCPT_ME) |
187 |
|
|
188 |
|
struct mh_whatnow_env { /* An environment for whatnow shell */ |
189 |
|
char *file; /* The file being processed */ |
190 |
|
char *msg; /* The original message (if any) */ |
191 |
|
char *draftfolder; |
192 |
|
char *draftmessage; |
193 |
|
char *editor; |
194 |
|
char *prompt; |
195 |
|
}; |
196 |
|
|
197 |
extern char *current_folder; |
extern char *current_folder; |
198 |
extern size_t current_message; |
extern size_t current_message; |
199 |
extern char mh_list_format[]; |
extern char mh_list_format[]; |
264 |
void *xmalloc __P((size_t)); |
void *xmalloc __P((size_t)); |
265 |
void *xrealloc __P((void *, size_t)); |
void *xrealloc __P((void *, size_t)); |
266 |
|
|
267 |
|
int mh_spawnp __P((const char *prog, const char *file)); |
268 |
|
int mh_whatnow __P((struct mh_whatnow_env *wh, int initial_edit)); |