/[mailutils]/mailutils/mail.remote/mail.remote.c
ViewVC logotype

Diff of /mailutils/mail.remote/mail.remote.c

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

revision 1.8 by gray, Sat Jan 18 15:01:01 2003 UTC revision 1.9 by gray, Wed Jan 22 21:44:15 2003 UTC
# Line 149  main (int argc, char **argv) Line 149  main (int argc, char **argv)
149        if ((status = address_create (&from, optfrom)))        if ((status = address_create (&from, optfrom)))
150          {          {
151            fprintf (stderr, _("Parsing from addresses failed: %s\n"),            fprintf (stderr, _("Parsing from addresses failed: %s\n"),
152                     mu_errstring (status));                     mu_strerror (status));
153            goto end;            goto end;
154          }          }
155      }      }
# Line 161  main (int argc, char **argv) Line 161  main (int argc, char **argv)
161        if ((status = address_createv (&to, (const char **) av, -1)))        if ((status = address_createv (&to, (const char **) av, -1)))
162          {          {
163            fprintf (stderr, _("Parsing to addresses failed: %s\n"),            fprintf (stderr, _("Parsing to addresses failed: %s\n"),
164                     mu_errstring (status));                     mu_strerror (status));
165            goto end;            goto end;
166          }          }
167      }      }
168    
169    if ((status = stdio_stream_create (&in, stdin, MU_STREAM_SEEKABLE)))    if ((status = stdio_stream_create (&in, stdin, MU_STREAM_SEEKABLE)))
170      {      {
171        fprintf (stderr, _("Failed: %s\n"), mu_errstring (status));        fprintf (stderr, _("Failed: %s\n"), mu_strerror (status));
172        goto end;        goto end;
173      }      }
174    
175    if ((status = stream_open (in)))    if ((status = stream_open (in)))
176      {      {
177        fprintf (stderr, _("Opening stdin failed: %s\n"), mu_errstring (status));        fprintf (stderr, _("Opening stdin failed: %s\n"), mu_strerror (status));
178        goto end;        goto end;
179      }      }
180    
181    if ((status = message_create (&msg, NULL)))    if ((status = message_create (&msg, NULL)))
182      {      {
183        fprintf (stderr, _("Failed: %s\n"), mu_errstring (status));        fprintf (stderr, _("Failed: %s\n"), mu_strerror (status));
184        goto end;        goto end;
185      }      }
186    
187    if ((status = message_set_stream (msg, in, NULL)))    if ((status = message_set_stream (msg, in, NULL)))
188      {      {
189        fprintf (stderr, _("Failed: %s\n"),        fprintf (stderr, _("Failed: %s\n"),
190                 mu_errstring (status));                 mu_strerror (status));
191        goto end;        goto end;
192      }      }
193    
# Line 196  main (int argc, char **argv) Line 196  main (int argc, char **argv)
196        const char *url = NULL;        const char *url = NULL;
197        mailer_get_url_default (&url);        mailer_get_url_default (&url);
198        fprintf (stderr, _("Creating mailer '%s' failed: %s\n"),        fprintf (stderr, _("Creating mailer '%s' failed: %s\n"),
199            url, mu_errstring (status));            url, mu_strerror (status));
200        goto end;        goto end;
201      }      }
202    
# Line 215  main (int argc, char **argv) Line 215  main (int argc, char **argv)
215        const char *url = NULL;        const char *url = NULL;
216        mailer_get_url_default (&url);        mailer_get_url_default (&url);
217        fprintf (stderr, _("Opening mailer '%s' failed: %s\n"),        fprintf (stderr, _("Opening mailer '%s' failed: %s\n"),
218            url, mu_errstring (status));            url, mu_strerror (status));
219        goto end;        goto end;
220      }      }
221    
222    if ((status = mailer_send_message (mailer, msg, from, to)))    if ((status = mailer_send_message (mailer, msg, from, to)))
223      {      {
224        fprintf (stderr, _("Sending message failed: %s\n"), mu_errstring (status));        fprintf (stderr, _("Sending message failed: %s\n"), mu_strerror (status));
225        goto end;        goto end;
226      }      }
227    
228    if ((status = mailer_close (mailer)))    if ((status = mailer_close (mailer)))
229      {      {
230        fprintf (stderr, _("Closing mailer failed: %s\n"), mu_errstring (status));        fprintf (stderr, _("Closing mailer failed: %s\n"), mu_strerror (status));
231        goto end;        goto end;
232      }      }
233    

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