diff options
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r-- | mail/mail-mt.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 0a3243a894..cf552dbdb5 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -30,6 +30,7 @@ #include "mail-config.h" #include "camel/camel-url.h" +#include "mail-session.h" #include "mail-mt.h" #include "component-factory.h" @@ -231,13 +232,17 @@ void mail_msg_check_error(void *msg) char *what = NULL; char *text; GnomeDialog *gd; - + #ifdef MALLOC_CHECK checkmem(m); checkmem(m->cancel); checkmem(m->priv); #endif - + + /* don't report any errors if we are not in interactive mode */ + if (!mail_session_get_interactive ()) + return; + if (!camel_exception_is_set(&m->ex) || m->ex.id == CAMEL_EXCEPTION_USER_CANCEL) return; |