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-message.c | |
parent | 49bad8cf37fc85a59fb6d2ea199770b33a92f458 (diff) | |
download | gsoc2013-evolution-7a1dfcef582242643fabd50688e0421ff398d645.tar.gz 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-message.c')
-rw-r--r-- | camel/camel-mime-message.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 02ed187929..62d57bea70 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -33,6 +33,8 @@ #include <gal/util/e-iconv.h> +#include <errno.h> + #include "camel-mime-message.h" #include "camel-multipart.h" #include "camel-stream-mem.h" @@ -453,6 +455,7 @@ construct_from_parser (CamelMimePart *dw, CamelMimeParser *mp) int len; int state; int ret; + int err; d(printf("constructing mime-message\n")); @@ -481,7 +484,13 @@ construct_from_parser (CamelMimePart *dw, CamelMimeParser *mp) #ifndef NO_WARNINGS #warning "return a real error code" #endif - return 0; + err = camel_mime_parser_errno(mp); + if (err != 0) { + errno = err; + ret = -1; + } + + return ret; } static int |