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
1335f254
...
1335f25452628676e515baf4aa9b325b3e6a5de4
authored
2003-02-10 11:59:19 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_expunge, mh_save_attributes): Bugfix
1 parent
06eb576f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
mailbox/mbx_mh.c
mailbox/mbx_mh.c
View file @
1335f25
...
...
@@ -769,7 +769,8 @@ mh_expunge (mailbox_t mailbox)
}
_mh_message_delete
(
mhd
,
mhm
);
}
else
if
(
mhm
->
attr_flags
&
MU_ATTRIBUTE_MODIFIED
)
else
if
((
mhm
->
attr_flags
&
MU_ATTRIBUTE_MODIFIED
)
||
(
mhm
->
message
&&
message_is_modified
(
mhm
->
message
)))
{
_mh_attach_message
(
mailbox
,
mhm
,
NULL
);
mhm
->
deleted
=
mhm
->
attr_flags
&
MU_ATTRIBUTE_DELETED
;
...
...
@@ -796,9 +797,8 @@ mh_save_attributes (mailbox_t mailbox)
/* Find the first dirty(modified) message. */
for
(
mhm
=
mhd
->
msg_head
;
mhm
;
mhm
=
mhm
->
next
)
{
if
((
mhm
->
attr_flags
&
MU_ATTRIBUTE_MODIFIED
)
||
(
mhm
->
attr_flags
&
MU_ATTRIBUTE_DELETED
)
||
(
mhm
->
message
&&
message_is_modified
(
mhm
->
message
)))
if
((
mhm
->
attr_flags
&
MU_ATTRIBUTE_MODIFIED
)
||
(
mhm
->
message
&&
message_is_modified
(
mhm
->
message
)))
break
;
}
...
...
@@ -809,7 +809,8 @@ mh_save_attributes (mailbox_t mailbox)
{
struct
_mh_message
*
next
=
mhm
->
next
;
if
(
mhm
->
attr_flags
&
MU_ATTRIBUTE_MODIFIED
)
if
((
mhm
->
attr_flags
&
MU_ATTRIBUTE_MODIFIED
)
||
(
mhm
->
message
&&
message_is_modified
(
mhm
->
message
)))
{
_mh_attach_message
(
mailbox
,
mhm
,
NULL
);
mhm
->
deleted
=
mhm
->
attr_flags
&
MU_ATTRIBUTE_DELETED
;
...
...
Please
register
or
sign in
to post a comment