From 7a1dfcef582242643fabd50688e0421ff398d645 Mon Sep 17 00:00:00 2001 From: 1 Date: Wed, 31 Oct 2001 23:55:45 +0000 Subject: Same as below. 2001-10-31 * 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 --- camel/camel-mime-parser.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'camel/camel-mime-parser.h') diff --git a/camel/camel-mime-parser.h b/camel/camel-mime-parser.h index e0e3d036c0..c1ef1b58b4 100644 --- a/camel/camel-mime-parser.h +++ b/camel/camel-mime-parser.h @@ -76,6 +76,9 @@ struct _CamelMimeParserClass { guint camel_mime_parser_get_type (void); CamelMimeParser *camel_mime_parser_new (void); +/* quick-fix for parser not erroring, we can find out if it had an error afterwards */ +int camel_mime_parser_errno (CamelMimeParser *); + /* using an fd will be a little faster, but not much (over a simple stream) */ int camel_mime_parser_init_with_fd(CamelMimeParser *, int fd); int camel_mime_parser_init_with_stream(CamelMimeParser *m, CamelStream *stream); -- cgit v1.2.3