/[mailutils]/mailutils/mh/send.c
ViewVC logotype

Diff of /mailutils/mh/send.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by gray, Sat Feb 22 22:27:48 2003 UTC revision 1.9 by gray, Tue Mar 11 14:13:05 2003 UTC
# Line 43  static struct argp_option options[] = { Line 43  static struct argp_option options[] = {
43    {"nodraftfolder", ARG_NODRAFTFOLDER, NULL, 0,    {"nodraftfolder", ARG_NODRAFTFOLDER, NULL, 0,
44     N_("Undo the effect of the last --draftfolder option") },     N_("Undo the effect of the last --draftfolder option") },
45    {"filter",        ARG_FILTER,        N_("FILE"), 0,    {"filter",        ARG_FILTER,        N_("FILE"), 0,
46    N_("* Set the filter program to preprocess the body of the message") },    N_("* Use filter FILE to preprocess the body of the message") },
47    {"nofilter",      ARG_NOFILTER,      NULL, 0,    {"nofilter",      ARG_NOFILTER,      NULL, 0,
48     N_("* Undo the effect of the last --filter option") },     N_("* Undo the effect of the last --filter option") },
49    {"format",        ARG_FORMAT,        N_("BOOL"), OPTION_ARG_OPTIONAL,    {"format",        ARG_FORMAT,        N_("BOOL"), OPTION_ARG_OPTIONAL,
# Line 241  watch_printf (const char *fmt, ...) Line 241  watch_printf (const char *fmt, ...)
241    va_end (ap);    va_end (ap);
242  }  }
243    
 static char *  
 draft_name()  
 {  
   char *draftfolder = mh_global_profile_get ("Draft-Folder",  
                                              mu_path_folder_dir);  
   return mh_expand_name (draftfolder, "draft", 0);  
 }  
   
244  static list_t mesg_list;  static list_t mesg_list;
245  static mh_context_t *mts_profile;  static mh_context_t *mts_profile;
246    
# Line 465  main (int argc, char **argv) Line 457  main (int argc, char **argv)
457      {      {
458        struct stat st;        struct stat st;
459        static char *xargv[2];        static char *xargv[2];
460        xargv[0] = draft_name();        xargv[0] = mh_draft_name ();
461    
462        if (stat (xargv[0], &st))        if (stat (xargv[0], &st))
463          {          {

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26