Commit 07752627 07752627cbe19484d27f0f99a7be81d55d88dc72 by Sergey Poznyakoff

Updated calls to msgset_parse

1 parent 83f3dea7
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -45,7 +45,7 @@ mail_copy0 (int argc, char **argv, int mark)
else
filename = strdup ("mbox");
if (msgset_parse (argc, argv, &msglist))
if (msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &msglist))
{
if (filename)
free (filename);
......@@ -74,7 +74,7 @@ mail_copy0 (int argc, char **argv, int mark)
{
int status;
status = util_get_message (mbox, mp->msg_part[0], &msg, MSG_NODELETED);
status = util_get_message (mbox, mp->msg_part[0], &msg);
if (status)
break;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -40,7 +40,7 @@ mail_decode (int argc, char **argv)
msgset_t *msgset;
struct decode_closure decode_closure;
if (msgset_parse (argc, argv, &msgset))
if (msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &msgset))
return 1;
decode_closure.select_hdr = islower (argv[0][0]);
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -41,7 +41,7 @@ int
mail_delete (int argc, char **argv)
{
int reset_cursor = 0;
int rc = util_foreach_msg (argc, argv, MSG_NODELETED,
int rc = util_foreach_msg (argc, argv, MSG_NODELETED|MSG_SILENT,
mail_delete_msg, &reset_cursor);
/* Readjust the cursor not to point to the deleted messages. */
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -33,7 +33,7 @@ mail_eq (int argc, char **argv)
break;
case 2:
if (msgset_parse (argc, argv, &list) == 0)
if (msgset_parse (argc, argv, MSG_NODELETED, &list) == 0)
{
if (list->msg_part[0] <= total)
{
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -33,10 +33,10 @@ mail_followup (int argc, char **argv)
int status;
compose_init (&env);
if (msgset_parse (argc, argv, &msglist))
if (msgset_parse (argc, argv, MSG_NODELETED, &msglist))
return 1;
if (util_get_message (mbox, cursor, &msg, MSG_NODELETED))
if (util_get_message (mbox, cursor, &msg))
{
msgset_free (msglist);
return 1;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -111,6 +111,6 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data)
int
mail_from (int argc, char **argv)
{
return util_foreach_msg (argc, argv, MSG_NODELETED, mail_from0, NULL);
return util_foreach_msg (argc, argv, MSG_NODELETED|MSG_SILENT, mail_from0, NULL);
}
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -34,7 +34,7 @@ mail_headers (int argc, char **argv)
int lines = util_screen_lines ();
int num;
if (msgset_parse (argc, argv, &list))
if (msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &list))
return 1;
num = 0;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -33,7 +33,7 @@ mail_next (int argc, char **argv)
int rc = 1;
for (n = cursor + 1; n <= total; n++)
{
rc = util_get_message (mbox, n, &msg, MSG_NODELETED|MSG_SILENT);
rc = util_get_message (mbox, n, &msg);
if (rc == 0)
break;
}
......@@ -47,10 +47,10 @@ mail_next (int argc, char **argv)
else
{
msgset_t *list = NULL;
msgset_parse (argc, argv, &list);
msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &list);
n = list->msg_part[0];
msgset_free (list);
if (util_get_message (mbox, n, &msg, MSG_NODELETED|MSG_SILENT))
if (util_get_message (mbox, n, &msg))
return 1;
}
cursor = n;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -39,14 +39,14 @@ mail_pipe (int argc, char **argv)
else if (util_getenv (&cmd, "cmd", Mail_env_boolean, 1))
return 1;
if (msgset_parse (argc, argv, &list))
if (msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &list))
return 1;
tube = popen (cmd, "w");
for (mp = list; mp; mp = mp->next)
{
if (util_get_message (mbox, mp->msg_part[0], &msg, MSG_NODELETED) == 0)
if (util_get_message (mbox, mp->msg_part[0], &msg) == 0)
{
message_get_stream (msg, &stream);
off = 0;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -33,7 +33,7 @@ mail_previous (int argc, char **argv)
int rc = 1;
for (n = cursor - 1; n > 0; n--)
{
rc = util_get_message (mbox, n, &msg, MSG_NODELETED|MSG_SILENT);
rc = util_get_message (mbox, n, &msg);
if (rc == 0)
break;
}
......@@ -47,10 +47,10 @@ mail_previous (int argc, char **argv)
else
{
msgset_t *list = NULL;
msgset_parse (argc, argv, &list);
msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &list);
n = list->msg_part[0];
msgset_free (list);
if (util_get_message (mbox, n, &msg, MSG_NODELETED|MSG_SILENT))
if (util_get_message (mbox, n, &msg))
return 1;
}
cursor = n;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -89,7 +89,7 @@ mail_mbox_commit ()
for (i = 1; i <= total; i++)
{
if (util_get_message (mbox, i, &msg, MSG_ALL))
if (util_get_message (mbox, i, &msg))
return 1;
message_get_attribute (msg, &attr);
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -41,7 +41,7 @@ mail_tag (int argc, char **argv)
msgset_t *msgset;
int action = argv[0][0] != 'u';
if (msgset_parse (argc, argv, &msgset))
if (msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &msgset))
return 1;
util_msgset_iterate (msgset, tag_message, (void *)&action);
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -47,7 +47,7 @@ mail_write (int argc, char **argv)
free (p);
}
if (msgset_parse (argc, argv, &msglist))
if (msgset_parse (argc, argv, MSG_NODELETED|MSG_SILENT, &msglist))
{
if (filename)
free (filename);
......@@ -81,7 +81,7 @@ mail_write (int argc, char **argv)
off_t off = 0;
size_t n = 0;
if (util_get_message (mbox, mp->msg_part[0], &msg, MSG_NODELETED))
if (util_get_message (mbox, mp->msg_part[0], &msg))
continue;
message_get_body (msg, &bod);
......