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
58cf1c6b
...
58cf1c6bdbdbfd26816211b594a1954a117fc460
authored
2002-08-04 08:20:25 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use mailbox_flush before closing the mailbox
1 parent
74f306ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
imap4d/bye.c
imap4d/close.c
mail/quit.c
pop3d/quit.c
imap4d/bye.c
View file @
58cf1c6
...
...
@@ -34,7 +34,7 @@ imap4d_bye0 (int reason, struct imap4d_command *command)
if
(
mbox
)
{
mailbox_
save_attributes
(
mbox
);
mailbox_
flush
(
mbox
,
0
);
mailbox_close
(
mbox
);
mailbox_destroy
(
&
mbox
);
}
...
...
@@ -48,7 +48,7 @@ imap4d_bye0 (int reason, struct imap4d_command *command)
case
ERR_SIGNAL
:
if
(
ofile
)
util_out
(
RESP_BYE
,
"Quitting on signal"
);
util_out
(
RESP_BYE
,
"Quitting on signal"
);
syslog
(
LOG_ERR
,
"Quitting on signal"
);
break
;
...
...
imap4d/close.c
View file @
58cf1c6
...
...
@@ -30,7 +30,7 @@ imap4d_close (struct imap4d_command *command, char *arg)
/* The CLOSE command permanently removes from the currently selected
mailbox all messages that have the \\Deleted flag set, and returns
to authenticated state from selected state. */
mailbox_
expunge
(
mbox
);
mailbox_
flush
(
mbox
,
1
);
/* No messages are removed, and no error is give, if the mailbox is
selected by an EXAMINE command or is otherwise selected read-only. */
mailbox_close
(
mbox
);
...
...
mail/quit.c
View file @
58cf1c6
...
...
@@ -42,8 +42,7 @@ mail_mbox_close ()
if
(
mail_mbox_commit
())
return
1
;
mailbox_save_attributes
(
mbox
);
mailbox_expunge
(
mbox
);
mailbox_flush
(
mbox
,
1
);
}
mailbox_get_url
(
mbox
,
&
url
);
...
...
@@ -69,7 +68,7 @@ mail_mbox_commit ()
int
is_user_mbox
;
mailbox_get_url
(
mbox
,
&
url
);
is_user_mbox
=
strcmp
(
url_to_string
(
url
),
getenv
(
"MBOX"
))
==
0
;
is_user_mbox
=
strcmp
(
url_to_string
(
url
),
getenv
(
"MBOX"
))
==
0
;
{
mailbox_t
mb
;
...
...
pop3d/quit.c
View file @
58cf1c6
...
...
@@ -33,7 +33,7 @@ pop3d_quit (const char *arg)
if
(
state
==
TRANSACTION
)
{
pop3d_unlock
();
if
(
mailbox_
expunge
(
mbox
)
!=
0
)
if
(
mailbox_
flush
(
mbox
,
1
)
!=
0
)
err
=
ERR_FILE
;
if
(
mailbox_close
(
mbox
)
!=
0
)
err
=
ERR_FILE
;
...
...
Please
register
or
sign in
to post a comment