Include argcv.h and getline.h
(struct mh_whatnow_env): New datatype. (mh_spawnp, mh_whatnow): New functions.
Showing
1 changed file
with
13 additions
and
0 deletions
... | @@ -41,8 +41,10 @@ | ... | @@ -41,8 +41,10 @@ |
41 | #include <mailutils/error.h> | 41 | #include <mailutils/error.h> |
42 | #include <mailutils/errno.h> | 42 | #include <mailutils/errno.h> |
43 | #include <mailutils/nls.h> | 43 | #include <mailutils/nls.h> |
44 | #include <mailutils/argcv.h> | ||
44 | 45 | ||
45 | #include <mu_asprintf.h> | 46 | #include <mu_asprintf.h> |
47 | #include <getline.h> | ||
46 | 48 | ||
47 | #define MH_FMT_RALIGN 0x1000 | 49 | #define MH_FMT_RALIGN 0x1000 |
48 | #define MH_FMT_ZEROPAD 0x2000 | 50 | #define MH_FMT_ZEROPAD 0x2000 |
... | @@ -183,6 +185,15 @@ typedef void (*mh_iterator_fp) __P((mailbox_t mbox, message_t msg, | ... | @@ -183,6 +185,15 @@ typedef void (*mh_iterator_fp) __P((mailbox_t mbox, message_t msg, |
183 | #define RCPT_ME 0x0004 | 185 | #define RCPT_ME 0x0004 |
184 | #define RCPT_ALL (RCPT_TO|RCPT_CC|RCPT_ME) | 186 | #define RCPT_ALL (RCPT_TO|RCPT_CC|RCPT_ME) |
185 | 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 | |||
186 | extern char *current_folder; | 197 | extern char *current_folder; |
187 | extern size_t current_message; | 198 | extern size_t current_message; |
188 | extern char mh_list_format[]; | 199 | extern char mh_list_format[]; |
... | @@ -253,3 +264,5 @@ int mh_decode_rcpt_flag __P((const char *arg)); | ... | @@ -253,3 +264,5 @@ int mh_decode_rcpt_flag __P((const char *arg)); |
253 | void *xmalloc __P((size_t)); | 264 | void *xmalloc __P((size_t)); |
254 | void *xrealloc __P((void *, size_t)); | 265 | void *xrealloc __P((void *, size_t)); |
255 | 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)); | ... | ... |
-
Please register or sign in to post a comment