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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
mailbox/amd.c
mailbox/amd.c
View file @
570a247
...
...
@@ -820,14 +820,19 @@ amd_expunge (mailbox_t mailbox)
{
if
(
!
mhm
->
deleted
)
{
char
*
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 */
old_name
=
amd
->
msg_file_name
(
mhm
,
0
);
new_name
=
amd
->
msg_file_name
(
mhm
,
1
);
rename
(
old_name
,
new_name
);
free
(
old_name
);
free
(
new_name
);
}
else
/* Unlink original file */
unlink
(
old_name
);
free
(
old_name
);
}
_amd_message_delete
(
amd
,
mhm
);
/* Do not increase i! */
}
...
...
Please
register
or
sign in
to post a comment