* src/procmsg.c
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 15 Jan 2002 20:38:39 +0000 (20:38 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 15 Jan 2002 20:38:39 +0000 (20:38 +0000)
        added alertpanel if mail sending failed

ChangeLog.claws
configure.in
src/procmsg.c

index fa38ef6..a909db1 100644 (file)
@@ -1,4 +1,9 @@
-2002-04-15 [alfons]    0.7.0claws2
+2002-01-15 [christoph] 0.7.0claws3
+
+       * src/procmsg.c
+               added alertpanel if mail sending failed
+
+2002-01-15 [alfons]    0.7.0claws2
        
        * src/prefs_filtering.c
                don't stop timer when prefs filtering dialog is opened
        
        * src/prefs_filtering.c
                don't stop timer when prefs filtering dialog is opened
index 0504792..2ec0efb 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws2
+EXTRA_VERSION=claws3
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 7463492..2d5cde2 100644 (file)
@@ -1072,23 +1072,24 @@ gint procmsg_send_message_queue(const gchar *file)
                                mailval = send_message_smtp(&tmp_ac, to_list, fp);
                        }
                }
                                mailval = send_message_smtp(&tmp_ac, to_list, fp);
                        }
                }
+               if (mailval < 0) {
+                       alertpanel_error(_("Error occurred while sending the message to %s ."),
+                                 mailac ? mailac->smtp_server : smtpserver);
+               }
        }
 
        }
 
-       if(newsgroup_list) {
+       if(newsgroup_list && (newsval == 0)) {
                Folder *folder;
 
                debug_print(_("Sending message by news\n"));
 
                folder = FOLDER(newsac->folder);
 
                Folder *folder;
 
                debug_print(_("Sending message by news\n"));
 
                folder = FOLDER(newsac->folder);
 
-               if(newsval == 0) {
-                       newsval = news_post(folder, tmp);
-                       if (newsval < 0) {
-                               alertpanel_error(_("Error occurred while posting the message to %s ."),
-                                         newsac->nntp_server);
-                       }
-               }
-
+               newsval = news_post(folder, tmp);
+               if (newsval < 0) {
+                       alertpanel_error(_("Error occurred while posting the message to %s ."),
+                                 newsac->nntp_server);
+               }
        }
 
        /* save message to outbox */
        }
 
        /* save message to outbox */