Commit c444358a c444358aef3da3117908920546f69f3dbf1ae1c2 by Sergey Poznyakoff

(mh_quote,mh_expand_aliases): New functions

(struct mh_whatnow_env): New fields to support annotation.
1 parent 03f373a8
Showing 1 changed file with 9 additions and 2 deletions
...@@ -205,14 +205,17 @@ typedef void (*mh_iterator_fp) (mu_mailbox_t mbox, mu_message_t msg, ...@@ -205,14 +205,17 @@ typedef void (*mh_iterator_fp) (mu_mailbox_t mbox, mu_message_t msg,
205 205
206 #define RCPT_DEFAULT RCPT_NONE 206 #define RCPT_DEFAULT RCPT_NONE
207 207
208 struct mh_whatnow_env { /* An environment for whatnow shell */ 208 struct mh_whatnow_env /* whatnow shell environment */
209 {
209 char *file; /* The file being processed */ 210 char *file; /* The file being processed */
210 char *msg; /* The original message (if any) */ 211 char *msg; /* File name of the original message (if any) */
211 char *draftfile; /* File to preserve the draft into */ 212 char *draftfile; /* File to preserve the draft into */
212 char *draftfolder; 213 char *draftfolder;
213 char *draftmessage; 214 char *draftmessage;
214 char *editor; 215 char *editor;
215 char *prompt; 216 char *prompt;
217 char *anno_field; /* Annotate field to be used */
218 mu_list_t anno_list; /* List of messages (mu_message_t) to annotate */
216 }; 219 };
217 220
218 #define DISP_QUIT 0 221 #define DISP_QUIT 0
...@@ -294,6 +297,10 @@ void mh_msgset_uids (mu_mailbox_t mbox, mh_msgset_t *msgset); ...@@ -294,6 +297,10 @@ void mh_msgset_uids (mu_mailbox_t mbox, mh_msgset_t *msgset);
294 297
295 char *mh_get_dir (void); 298 char *mh_get_dir (void);
296 char *mh_expand_name (const char *base, const char *name, int is_folder); 299 char *mh_expand_name (const char *base, const char *name, int is_folder);
300 void mh_quote (const char *in, char **out);
301 void mh_expand_aliases (mu_message_t msg, mu_address_t *addr_to,
302 mu_address_t *addr_cc,
303 mu_address_t *addr_bcc);
297 304
298 int mh_is_my_name (char *name); 305 int mh_is_my_name (char *name);
299 char * mh_my_email (void); 306 char * mh_my_email (void);
......