/[mailutils]/mailutils/frm/frm.c
ViewVC logotype

Diff of /mailutils/frm/frm.c

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

revision 1.19 by gray, Thu Aug 22 11:18:05 2002 UTC revision 1.20 by gray, Mon Aug 26 17:06:16 2002 UTC
# Line 38  Line 38 
38  #include <mailutils/observer.h>  #include <mailutils/observer.h>
39  #include <mailutils/registrar.h>  #include <mailutils/registrar.h>
40  #include <mailutils/stream.h>  #include <mailutils/stream.h>
41    #include <mailutils/url.h>
42    
43  static char* show_field;  static char* show_field;
44  static int show_to;  static int show_to;
# Line 348  main(int argc, char **argv) Line 349  main(int argc, char **argv)
349    
350      if (status != 0)      if (status != 0)
351        {        {
352          fprintf (stderr, "could not open mailbox <%s>: %s\n",          url_t url = NULL;
353              mailbox_name ? mailbox_name : "default",  
354              mu_errstring(status));          mailbox_get_url (mbox, &url);
355            if (status == ENOENT)
356              status = 2;
357            else
358              fprintf (stderr, "could not open mailbox %s: %s\n",
359                       url_to_string (url),
360                       mu_errstring(status));
361            
362          goto cleanup;          goto cleanup;
363        }        }
364    
# Line 366  main(int argc, char **argv) Line 374  main(int argc, char **argv)
374    
375      if (status != 0)      if (status != 0)
376        {        {
377            url_t url = NULL;
378    
379            mailbox_get_url (mbox, &url);
380          fprintf (stderr, "could not scan mailbox <%s>: %s\n",          fprintf (stderr, "could not scan mailbox <%s>: %s\n",
381              mailbox_name ? mailbox_name : "default",                   url_to_string (url),
382              mu_errstring(status));                   mu_errstring(status));
383          goto cleanup;          goto cleanup;
384        }        }
385    

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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