diff options
author | 1 <NotZed@Ximian.com> | 2001-11-01 07:55:45 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-11-01 07:55:45 +0800 |
commit | 7a1dfcef582242643fabd50688e0421ff398d645 (patch) | |
tree | 1bbc1b506677140cece96a969f91b27b19c4e703 /camel/camel-mime-part.c | |
parent | 49bad8cf37fc85a59fb6d2ea199770b33a92f458 (diff) | |
download | gsoc2013-evolution-7a1dfcef582242643fabd50688e0421ff398d645.tar gsoc2013-evolution-7a1dfcef582242643fabd50688e0421ff398d645.tar.gz gsoc2013-evolution-7a1dfcef582242643fabd50688e0421ff398d645.tar.bz2 gsoc2013-evolution-7a1dfcef582242643fabd50688e0421ff398d645.tar.lz gsoc2013-evolution-7a1dfcef582242643fabd50688e0421ff398d645.tar.xz gsoc2013-evolution-7a1dfcef582242643fabd50688e0421ff398d645.tar.zst gsoc2013-evolution-7a1dfcef582242643fabd50688e0421ff398d645.zip |
Same as below.
2001-10-31 <NotZed@Ximian.com>
* providers/local/camel-spool-folder.c (spool_get_message): Same
as below.
* providers/local/camel-maildir-folder.c (maildir_get_message):
Same as below.
* providers/local/camel-mbox-folder.c (mbox_get_message): Set
USER_CANCEL if failed due to EINTR.
* camel-filter-driver.c (camel_filter_driver_filter_mbox): If
construct from parser fails due to user cancel, set USER_CANCEL on
exception.
* camel-mime-part.c (construct_from_parser): Return error if the
parser had an io error.
* camel-mime-message.c (construct_from_parser): Check error on
parser/return error.
* camel-mime-parser.c (folder_scan_init): Init error number.
(camel_mime_parser_errno): New function, return errno of any io
failures.
(folder_read): Set errno if a failure occured.
(folder_seek): Same.
(folder_scan_init_with_fd): Setup errno depeding on ok/failure.
(folder_scan_init_with_stream): Same.
svn path=/trunk/; revision=14559
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 55eb4a7492..303fba6c7d 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -30,6 +30,8 @@ #include <stdio.h> #include <ctype.h> +#include <errno.h> + #include <gal/util/e-iconv.h> #include "hash-table-utils.h" @@ -663,6 +665,7 @@ construct_from_parser(CamelMimePart *dw, CamelMimeParser *mp) const char *content; char *buf; int len; + int err; d(printf("mime_part::construct_from_parser()\n")); @@ -696,6 +699,13 @@ construct_from_parser(CamelMimePart *dw, CamelMimeParser *mp) #ifndef NO_WARNINGS #warning "Need to work out how to detect a (fatally) bad parse in the parser" #endif + + err = camel_mime_parser_errno(mp); + if (err != 0) { + errno = err; + return -1; + } + return 0; } |