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
977ac58a
...
977ac58a4362bacbf666c2e68825c21960cbcd9b
authored
2005-03-03 10:55:02 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mbox_scan): Store the number of messages into *pcount if we don't need to rescan the mailbox.
1 parent
d60d3bec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
mailbox/mbox/mbox.c
mailbox/mbox/mbox.c
View file @
977ac58
...
...
@@ -337,7 +337,7 @@ mbox_scan (mailbox_t mailbox, size_t msgno, size_t *pcount)
return
mbox_scan0
(
mailbox
,
msgno
,
pcount
,
1
);
/* Since the mailbox is already updated fake the scan. */
if
(
msgno
>
0
)
msgno
--
;
/* The fist message is number "1", decrement
e
for the C array. */
msgno
--
;
/* The fist message is number "1", decrement for the C array. */
for
(
i
=
msgno
;
i
<
mud
->
messages_count
;
i
++
)
{
if
(
observable_notify
(
mailbox
->
observable
,
MU_EVT_MESSAGE_ADD
)
!=
0
)
...
...
@@ -347,6 +347,7 @@ mbox_scan (mailbox_t mailbox, size_t msgno, size_t *pcount)
observable_notify
(
mailbox
->
observable
,
MU_EVT_MAILBOX_PROGRESS
);
}
}
*
pcount
=
mud
->
messages_count
;
return
0
;
}
...
...
Please
register
or
sign in
to post a comment