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
d30e3f3e
...
d30e3f3e9bc58f307546fe2c3fc1e58d97bc63e8
authored
2002-11-05 13:47:24 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use MSG_.* macros in calls to util_get_message.
1 parent
77f4f2a6
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
13 additions
and
12 deletions
mail/copy.c
mail/delete.c
mail/followup.c
mail/hold.c
mail/mbox.c
mail/pipe.c
mail/print.c
mail/quit.c
mail/size.c
mail/top.c
mail/undelete.c
mail/write.c
mail/copy.c
View file @
d30e3f3
...
...
@@ -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
;
...
...
mail/delete.c
View file @
d30e3f3
...
...
@@ -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
);
...
...
mail/followup.c
View file @
d30e3f3
...
...
@@ -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
;
...
...
mail/hold.c
View file @
d30e3f3
...
...
@@ -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
);
...
...
mail/mbox.c
View file @
d30e3f3
...
...
@@ -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 */
...
...
mail/pipe.c
View file @
d30e3f3
...
...
@@ -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
;
...
...
mail/print.c
View file @
d30e3f3
...
...
@@ -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
);
...
...
mail/quit.c
View file @
d30e3f3
...
...
@@ -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
);
...
...
mail/size.c
View file @
d30e3f3
...
...
@@ -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
);
...
...
mail/top.c
View file @
d30e3f3
...
...
@@ -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
);
...
...
mail/undelete.c
View file @
d30e3f3
...
...
@@ -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
);
...
...
mail/write.c
View file @
d30e3f3
...
...
@@ -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
);
...
...
Please
register
or
sign in
to post a comment