Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
164285a5
...
164285a54b04667c6b422e508be4288c746fb74f
authored
2005-03-03 23:32:14 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(top0): set read attribute and MAIL_ATTRIBUTE_SHOWN after displaying the message
1 parent
32bd2179
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
mail/top.c
mail/top.c
View file @
164285a
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001
, 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
...
...
@@ -29,6 +29,7 @@ top0 (msgset_t *mspec, message_t msg, void *data)
size_t
n
;
off_t
off
;
int
lines
;
attribute_t
attr
=
NULL
;
if
(
util_getenv
(
&
lines
,
"toplines"
,
Mail_env_number
,
1
)
||
lines
<
0
)
...
...
@@ -43,6 +44,10 @@ top0 (msgset_t *mspec, message_t msg, void *data)
fprintf
(
ofile
,
"%s"
,
buf
);
}
cursor
=
mspec
->
msg_part
[
0
];
message_get_attribute
(
msg
,
&
attr
);
attribute_set_read
(
attr
);
attribute_set_userflag
(
attr
,
MAIL_ATTRIBUTE_SHOWN
);
return
0
;
}
...
...
Please
register
or
sign in
to post a comment