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, 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 |
39 |
else if (util_getenv (&cmd, "cmd", Mail_env_boolean, 1)) |
else if (util_getenv (&cmd, "cmd", Mail_env_boolean, 1)) |
40 |
return 1; |
return 1; |
41 |
|
|
42 |
if (msgset_parse (argc, argv, &list)) |
if (msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &list)) |
43 |
return 1; |
return 1; |
44 |
|
|
45 |
tube = popen (cmd, "w"); |
tube = popen (cmd, "w"); |
46 |
|
|
47 |
for (mp = list; mp; mp = mp->next) |
for (mp = list; mp; mp = mp->next) |
48 |
{ |
{ |
49 |
if (util_get_message (mbox, mp->msg_part[0], &msg, MSG_NODELETED) == 0) |
if (util_get_message (mbox, mp->msg_part[0], &msg) == 0) |
50 |
{ |
{ |
51 |
message_get_stream (msg, &stream); |
message_get_stream (msg, &stream); |
52 |
off = 0; |
off = 0; |