/[mailutils]/mailutils/mail.local/script.c
ViewVC logotype

Diff of /mailutils/mail.local/script.c

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

revision 1.8 by gray, Wed Nov 20 12:33:30 2002 UTC revision 1.9 by gray, Fri Dec 13 15:50:14 2002 UTC
# Line 39  prog_mda (struct mda_data *data) Line 39  prog_mda (struct mda_data *data)
39    x_argv[0] = "mail.local";    x_argv[0] = "mail.local";
40    x_argv[1] = NULL;    x_argv[1] = NULL;
41    
   message_get_stream (data->msg, &stream);  
   stream_flush (stream);  
   if (mailbox_create (&mbox, data->tempfile)  
       || mailbox_open (mbox, MU_STREAM_RDWR) != 0)  
     {  
       mailer_err ("can't open temporary storage");  
       return EX_UNAVAILABLE;  
     }  
   
   unlink (data->tempfile);  
     
42    param.debug_guile = debug_guile;    param.debug_guile = debug_guile;
43    param.mbox = mbox;    param.mbox = data->mbox;
44    param.user_name = NULL;    param.user_name = NULL;
45    param.init = mda_init;    param.init = mda_init;
46    param.catch_body = mda_catch_body;    param.catch_body = mda_catch_body;
# Line 117  mda_catch_body (void *data, mailbox_t mb Line 106  mda_catch_body (void *data, mailbox_t mb
106      return SCM_BOOL_F;      return SCM_BOOL_F;
107    
108    mda_switch_to_user (NULL);    mda_switch_to_user (NULL);
109    mda (md->msg, md->argv[0]);    mda (md->mbox, md->argv[0]);
110    return SCM_BOOL_F;    return SCM_BOOL_F;
111  }  }
112    

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