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
570a247f
...
570a247fe037dd6084a4f0623e5c7613051d8c91
authored
2005-06-13 10:34:28 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
amd_expunge): Unlink the message file if msg_file_name returns NULL.
1 parent
48a6db10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
mailbox/amd.c
mailbox/amd.c
View file @
570a247
...
...
@@ -820,13 +820,18 @@ amd_expunge (mailbox_t mailbox)
{
if
(
!
mhm
->
deleted
)
{
char
*
old_name
,
*
new_name
;
/* Rename original message */
old_name
=
amd
->
msg_file_name
(
mhm
,
0
);
new_name
=
amd
->
msg_file_name
(
mhm
,
1
);
rename
(
old_name
,
new_name
);
char
*
old_name
=
amd
->
msg_file_name
(
mhm
,
0
);
char
*
new_name
=
amd
->
msg_file_name
(
mhm
,
1
);
if
(
new_name
)
{
/* Rename original message */
rename
(
old_name
,
new_name
);
free
(
new_name
);
}
else
/* Unlink original file */
unlink
(
old_name
);
free
(
old_name
);
free
(
new_name
);
}
_amd_message_delete
(
amd
,
mhm
);
/* Do not increase i! */
...
...
Please
register
or
sign in
to post a comment