summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-05 13:47:24 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2002-11-05 13:47:24 (GMT)
commitd30e3f3e9bc58f307546fe2c3fc1e58d97bc63e8 (patch) (side-by-side diff)
treeecd8961e4682bb489c3182555ffdb6e06d012041
parent77f4f2a634a25f47432e5d0bf65a19f6ce67b55e (diff)
downloadmailutils-d30e3f3e9bc58f307546fe2c3fc1e58d97bc63e8.tar.gz
mailutils-d30e3f3e9bc58f307546fe2c3fc1e58d97bc63e8.tar.bz2
Use MSG_.* macros in calls to util_get_message.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--mail/copy.c2
-rw-r--r--mail/delete.c2
-rw-r--r--mail/followup.c2
-rw-r--r--mail/hold.c2
-rw-r--r--mail/mbox.c2
-rw-r--r--mail/pipe.c2
-rw-r--r--mail/print.c2
-rw-r--r--mail/quit.c2
-rw-r--r--mail/size.c3
-rw-r--r--mail/top.c2
-rw-r--r--mail/undelete.c2
-rw-r--r--mail/write.c2
12 files changed, 13 insertions, 12 deletions
diff --git a/mail/copy.c b/mail/copy.c
index 6c6e519..b21457e 100644
--- a/mail/copy.c
+++ b/mail/copy.c
@@ -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;
diff --git a/mail/delete.c b/mail/delete.c
index a64cbd4..d7a84de 100644
--- a/mail/delete.c
+++ b/mail/delete.c
@@ -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);
diff --git a/mail/followup.c b/mail/followup.c
index df88a22..a071ef9 100644
--- a/mail/followup.c
+++ b/mail/followup.c
@@ -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;
diff --git a/mail/hold.c b/mail/hold.c
index 34a7eae..60a761f 100644
--- a/mail/hold.c
+++ b/mail/hold.c
@@ -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);
diff --git a/mail/mbox.c b/mail/mbox.c
index 1963f4b..79980c9 100644
--- a/mail/mbox.c
+++ b/mail/mbox.c
@@ -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 */
diff --git a/mail/pipe.c b/mail/pipe.c
index c1a112f..824e790 100644
--- a/mail/pipe.c
+++ b/mail/pipe.c
@@ -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;
diff --git a/mail/print.c b/mail/print.c
index 086e3d8..d193bfc 100644
--- a/mail/print.c
+++ b/mail/print.c
@@ -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);
diff --git a/mail/quit.c b/mail/quit.c
index b74c1ab..62a4f01 100644
--- a/mail/quit.c
+++ b/mail/quit.c
@@ -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);
diff --git a/mail/size.c b/mail/size.c
index ab1dc77..4014986 100644
--- a/mail/size.c
+++ b/mail/size.c
@@ -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);
diff --git a/mail/top.c b/mail/top.c
index 727895f..7fb2563 100644
--- a/mail/top.c
+++ b/mail/top.c
@@ -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);
diff --git a/mail/undelete.c b/mail/undelete.c
index 2f00f5b..85d70fd 100644
--- a/mail/undelete.c
+++ b/mail/undelete.c
@@ -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);
diff --git a/mail/write.c b/mail/write.c
index e78b640..ff2a569 100644
--- a/mail/write.c
+++ b/mail/write.c
@@ -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);

Return to:

Send suggestions and report system problems to the System administrator.