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

Diff of /mailutils/mail/quit.c

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

revision 1.17 by polak, Mon Dec 23 22:01:34 2002 UTC revision 1.18 by polak, Fri Dec 27 09:20:34 2002 UTC
# Line 1  Line 1 
1  /* GNU Mailutils -- a suite of utilities for electronic mail  /* GNU Mailutils -- a suite of utilities for electronic mail
2     Copyright (C) 1999, 2001 Free Software Foundation, Inc.     Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3    
4     GNU Mailutils is free software; you can redistribute it and/or modify     GNU Mailutils is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 47  mail_mbox_close () Line 47  mail_mbox_close ()
47        
48    mailbox_get_url (mbox, &url);    mailbox_get_url (mbox, &url);
49    mailbox_messages_count (mbox, &held_count);    mailbox_messages_count (mbox, &held_count);
50    fprintf (ofile, _("Held %d messages in %s\n"), held_count, url_to_string (url));    fprintf (ofile, held_count == 1 ? _("Held %d message in %s\n")
51                                      : _("Held %d messages in %s\n"),
52               held_count, url_to_string (url));
53    mailbox_close (mbox);    mailbox_close (mbox);
54    mailbox_destroy (&mbox);    mailbox_destroy (&mbox);
55    return 0;    return 0;
# Line 124  mail_mbox_commit () Line 125  mail_mbox_commit ()
125        url_t u = NULL;        url_t u = NULL;
126    
127        mailbox_get_url (dest_mbox, &u);        mailbox_get_url (dest_mbox, &u);
128        fprintf(ofile, _("Saved %d messages in %s\n"), saved_count,        fprintf(ofile, saved_count == 1 ? _("Saved %d message in %s\n")
129                url_to_string (u));                                        : _("Saved %d messages in %s\n"),
130                  saved_count, url_to_string (u));
131        mailbox_close (dest_mbox);        mailbox_close (dest_mbox);
132        mailbox_destroy (&dest_mbox);        mailbox_destroy (&dest_mbox);
133      }      }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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