* 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 fa38ef6c23cf38b11daf0df96af04c561353b666..a909db12eedf92731f0c8ff21f2f1fa3461ab54a 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
index 050479203429973d1af80bbc551ee045a144b3c4..2ec0efba87fcad857f1dae1ec327bc8df47352d8 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 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
index 746349234af12fc137f1d065654894871bb30196..2d5cde25f489b6e8160399d36ee4faaad65bb424 100644 (file)
@@ -1072,23 +1072,24 @@ gint procmsg_send_message_queue(const gchar *file)
                                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);
 
-               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 */