Commit d30e3f3e d30e3f3e9bc58f307546fe2c3fc1e58d97bc63e8 by Sergey Poznyakoff

Use MSG_.* macros in calls to util_get_message.

1 parent 77f4f2a6
......@@ -74,7 +74,7 @@ mail_copy0 (int argc, char **argv, int mark)
{
int status;
status = util_get_message (mbox, mp->msg_part[0], &msg, 1);
status = util_get_message (mbox, mp->msg_part[0], &msg, MSG_NODELETED);
if (status)
break;
......
......@@ -27,7 +27,7 @@ mail_delete0 (void)
message_t msg;
attribute_t attr;
if (util_get_message (mbox, cursor, &msg, 0))
if (util_get_message (mbox, cursor, &msg, MSG_ALL))
return 1;
message_get_attribute (msg, &attr);
attribute_set_deleted (attr);
......
......@@ -36,7 +36,7 @@ mail_followup (int argc, char **argv)
if (msgset_parse (argc, argv, &msglist))
return 1;
if (util_get_message (mbox, cursor, &msg, 1))
if (util_get_message (mbox, cursor, &msg, MSG_NODELETED))
{
msgset_free (msglist);
return 1;
......
......@@ -32,7 +32,7 @@ mail_hold (int argc, char **argv)
return util_msglist_command (mail_hold, argc, argv, 1);
else
{
if (util_get_message (mbox, cursor, &msg, 0))
if (util_get_message (mbox, cursor, &msg, MSG_ALL))
return 1;
message_get_attribute (msg, &attr);
......
......@@ -31,7 +31,7 @@ mail_mbox (int argc, char **argv)
return util_msglist_command (mail_mbox, argc, argv, 1);
else
{
if (util_get_message (mbox, cursor, &msg, 1))
if (util_get_message (mbox, cursor, &msg, MSG_NODELETED))
return 1;
/* Mark the message */
......
......@@ -46,7 +46,7 @@ mail_pipe (int argc, char **argv)
for (mp = list; mp; mp = mp->next)
{
if (util_get_message (mbox, mp->msg_part[0], &msg, 1) == 0)
if (util_get_message (mbox, mp->msg_part[0], &msg, MSG_NODELETED) == 0)
{
message_get_stream (msg, &stream);
off = 0;
......
......@@ -42,7 +42,7 @@ mail_print (int argc, char **argv)
attribute_t attr;
int pagelines = util_get_crt ();
if (util_get_message (mbox, cursor, &mesg, 1))
if (util_get_message (mbox, cursor, &mesg, MSG_NODELETED))
return 1;
message_lines (mesg, &lines);
......
......@@ -86,7 +86,7 @@ mail_mbox_commit ()
for (i = 1; i <= total; i++)
{
if (util_get_message (mbox, i, &msg, 0))
if (util_get_message (mbox, i, &msg, MSG_ALL))
return 1;
message_get_attribute (msg, &attr);
......
......@@ -30,7 +30,8 @@ mail_size (int argc, char **argv)
{
size_t size = 0, lines = 0;
message_t msg;
if (util_get_message (mbox, cursor, &msg, 0))
if (util_get_message (mbox, cursor, &msg, MSG_ALL))
return 1;
message_size (msg, &size);
......
......@@ -39,7 +39,7 @@ mail_top (int argc, char **argv)
|| lines < 0)
return 1;
if (util_get_message (mbox, cursor, &msg, 1))
if (util_get_message (mbox, cursor, &msg, MSG_NODELETED))
return 1;
message_get_stream (msg, &stream);
......
......@@ -30,7 +30,7 @@ mail_undelete (int argc, char **argv)
{
message_t msg;
attribute_t attr;
if (util_get_message (mbox, cursor, &msg, 0))
if (util_get_message (mbox, cursor, &msg, MSG_ALL))
return 1;
message_get_attribute (msg, &attr);
......
......@@ -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, 1))
if (util_get_message (mbox, mp->msg_part[0], &msg, MSG_NODELETED))
continue;
message_get_body (msg, &bod);
......