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
11bb126a
...
11bb126aa6a6d0a3ffd448f5b930e0e04f238d19
authored
2002-09-21 19:10:34 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_append_message): Scan the mailbox if it has not been scanned yet.
1 parent
70760383
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
mailbox/mbx_mh.c
mailbox/mbx_mh.c
View file @
11bb126
...
...
@@ -604,6 +604,14 @@ mh_append_message (mailbox_t mailbox, message_t msg)
if
(
!
mhm
)
return
ENOMEM
;
/* If we did not start a scanning yet do it now. */
if
(
mhd
->
msg_count
==
0
)
{
status
=
mh_scan0
(
mailbox
,
1
,
NULL
);
if
(
status
!=
0
)
return
status
;
}
mhm
->
mhd
=
mhd
;
mhm
->
seq_number
=
_mh_next_seq
(
mhd
);
mhm
->
message
=
msg
;
...
...
@@ -1016,7 +1024,7 @@ mh_scan0 (mailbox_t mailbox, size_t msgno, size_t *pcount)
if
(
mhd
->
uidvalidity
==
0
)
{
mhd
->
uidvalidity
=
(
unsigned
long
)
time
(
NULL
);
/
/FIXME mhd->uidnext = mhd->msg_count + 1;
/
* FIXME mhd->uidnext = mhd->msg_count + 1;*/
/* Tell that we have been modified for expunging. */
if
(
mhd
->
msg_head
)
mhd
->
msg_head
->
attr_flags
|=
MU_ATTRIBUTE_MODIFIED
;
...
...
Please
register
or
sign in
to post a comment