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
ac26e0ea
...
ac26e0ea68371b4e7b13e3a50e135f94cdd6fd11
authored
2005-03-15 14:43:25 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mailbox_flush): Do not re-save all messages if the mailbox was opened in append mode.
1 parent
d4907075
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
mailbox/mailbox.c
mailbox/mailbox.c
View file @
ac26e0e
...
...
@@ -209,7 +209,11 @@ mailbox_flush (mailbox_t mbox, int expunge)
if
(
!
(
mbox
->
flags
&
(
MU_STREAM_RDWR
|
MU_STREAM_WRITE
|
MU_STREAM_APPEND
)))
return
EACCES
;
mailbox_messages_count
(
mbox
,
&
total
);
for
(
i
=
1
;
i
<=
total
;
i
++
)
if
(
mbox
->
flags
&
MU_STREAM_APPEND
)
i
=
total
;
else
i
=
1
;
for
(
;
i
<=
total
;
i
++
)
{
message_t
msg
=
NULL
;
attribute_t
attr
=
NULL
;
...
...
Please
register
or
sign in
to post a comment