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 |
33 |
int rc = 1; |
int rc = 1; |
34 |
for (n = cursor - 1; n > 0; n--) |
for (n = cursor - 1; n > 0; 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 |
} |
} |
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; |