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

Diff of /mailutils/mail/next.c

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

revision 1.12 by gray, Sun Dec 29 13:37:43 2002 UTC revision 1.13 by gray, Tue Jan 14 14:48:59 2003 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, 2002 Free Software Foundation, Inc.     Copyright (C) 1999, 2001, 2002, 2003 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 33  mail_next (int argc, char **argv) Line 33  mail_next (int argc, char **argv)
33        int rc = 1;        int rc = 1;
34        for (n = cursor + 1; n <= total; n++)        for (n = cursor + 1; n <= total; n++)
35          {          {
36            rc = util_get_message (mbox, n, &msg, MSG_NODELETED|MSG_SILENT);            rc = util_get_message (mbox, n, &msg);
37            if (rc == 0)            if (rc == 0)
38              break;              break;
39          }          }
# Line 47  mail_next (int argc, char **argv) Line 47  mail_next (int argc, char **argv)
47    else    else
48      {      {
49        msgset_t *list = NULL;        msgset_t *list = NULL;
50        msgset_parse (argc, argv, &list);        msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &list);
51        n = list->msg_part[0];        n = list->msg_part[0];
52        msgset_free (list);        msgset_free (list);
53        if (util_get_message (mbox, n, &msg, MSG_NODELETED|MSG_SILENT))        if (util_get_message (mbox, n, &msg))
54          return 1;          return 1;
55      }      }
56    cursor = n;    cursor = n;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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