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
909e2f61
...
909e2f61d89e8f6d0a3e6d29b50b74c71bbed660
authored
2005-06-13 10:34:44 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(maildir_message_name): Return NULL for deleted messages.
1 parent
570a247f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
mailbox/maildir/mbox.c
mailbox/maildir/mbox.c
View file @
909e2f6
...
...
@@ -338,7 +338,12 @@ char *
maildir_message_name
(
struct
_amd_message
*
amsg
,
int
deleted
)
{
struct
_maildir_message
*
msg
=
(
struct
_maildir_message
*
)
amsg
;
return
maildir_mkfilename
(
amsg
->
amd
->
name
,
msg
->
newflag
?
NEWSUF
:
CURSUF
,
msg
->
file_name
);
if
(
deleted
)
return
NULL
;
/* Force amd.c to unlink the file.
FIXME: We could also add a 'T' info to it. Should
we have an option deciding which approach to take? */
return
maildir_mkfilename
(
amsg
->
amd
->
name
,
msg
->
newflag
?
NEWSUF
:
CURSUF
,
msg
->
file_name
);
}
static
void
...
...
Please
register
or
sign in
to post a comment