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
f4f8282e
...
f4f8282e8ec54dd72c83d5b55734be1f9440ddc0
authored
2004-01-14 12:40:02 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(deliver): Truncate the stream back to its original size if an error occured.
1 parent
bf95b15a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
mail.local/main.c
mail.local/main.c
View file @
f4f8282
...
...
@@ -797,6 +797,13 @@ deliver (mailbox_t imbx, char *name)
if
(
status
)
{
/* Undo the delivery by truncating the mailbox back to its
original size */
int
rc
=
stream_truncate
(
ostream
,
size
);
if
(
rc
)
mailer_err
(
_
(
"error writing to mailbox: %s. Mailbox NOT truncated: %s"
),
mu_strerror
(
status
),
mu_strerror
(
rc
));
mailer_err
(
_
(
"error writing to mailbox: %s"
),
mu_strerror
(
status
));
}
...
...
Please
register
or
sign in
to post a comment