summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-03-03 23:31:54 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-03-03 23:31:54 +0000
commit32bd21793007851d5a5c514ca972e2fe2af1d3f1 (patch)
treef9b64b0836fb7bec63993949061eb7448d50619d
parent44499877662ec8934cde8998edeabb5631b53692 (diff)
downloadmailutils-32bd21793007851d5a5c514ca972e2fe2af1d3f1.tar.gz
mailutils-32bd21793007851d5a5c514ca972e2fe2af1d3f1.tar.bz2
(mail_print_msg): Set MAIL_ATTRIBUTE_SHOWN after displaying the message
-rw-r--r--mail/print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/print.c b/mail/print.c
index feee3f403..4b9dfac65 100644
--- a/mail/print.c
+++ b/mail/print.c
@@ -1,5 +1,5 @@
/* 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, 2005 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
@@ -36,7 +36,7 @@ mail_print_msg (msgset_t *mspec, message_t mesg, void *data)
FILE *out = ofile;
attribute_t attr;
int pagelines = util_get_crt ();
-
+
message_lines (mesg, &lines);
/* If it is POP or IMAP the lines number is not known, so try
@@ -105,6 +105,7 @@ mail_print_msg (msgset_t *mspec, message_t mesg, void *data)
message_get_attribute (mesg, &attr);
attribute_set_read (attr);
+ attribute_set_userflag (attr, MAIL_ATTRIBUTE_SHOWN);
cursor = mspec->msg_part[0];

Return to:

Send suggestions and report system problems to the System administrator.