fix Get doing pop-before-smtp
authorColin Leroy <colin@colino.net>
Sun, 22 Sep 2002 22:46:18 +0000 (22:46 +0000)
committerColin Leroy <colin@colino.net>
Sun, 22 Sep 2002 22:46:18 +0000 (22:46 +0000)
ChangeLog.claws
configure.in
src/inc.c
src/prefs_account.h

index 7d568acf4fba3398419eefc167a33264172f94d7..420dd10fd36717c896efea89e69062204904576f 100644 (file)
@@ -1,3 +1,12 @@
+2002-09-22 [colin]     0.8.3claws12
+
+       * src/inc.c
+               Initialize session type to normal before getting 
+               mail (fixes strange Get behaviour)
+       * src/prefs_account.h
+               Move STYPE_POP_BEFORE_SMTP to last position to 
+               avoid other side-effects
+
 2002-09-22 [colin]     0.8.3claws11
 
        * src/prefs_account.c
index 8e978c9c54965aa519c5ce9116eb146bba298b9f..94b6eed4f4c7f3694f1e51e53b1526aed987a509 100644 (file)
@@ -10,7 +10,7 @@ MINOR_VERSION=8
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws11
+EXTRA_VERSION=claws12
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 9a81a70485c4bc70e193a8918d67449dd56e2ac3..7f5ce9c1bd670e83f092146fd2dcca35beace2c6 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -192,7 +192,7 @@ void inc_mail(MainWindow *mainwin, gboolean notify)
                        if (new_msgs < 0)
                                new_msgs = 0;
                }
-
+               cur_account->session = STYPE_NORMAL;
                new_msgs += inc_account_mail(cur_account, mainwin);
        }
 
index 308a94a6d05d65485a1bcf27b24258911828ca8e..b027b9b8c2309a94ef1dc6bea6e4af1e429839bb 100644 (file)
@@ -45,8 +45,6 @@ typedef enum {
 } RecvProtocol;
 
 typedef enum {
-       /* just login (pop before smtp) */
-       STYPE_POP_BEFORE_SMTP,
        /* login and retrieve messages, as before */
        STYPE_NORMAL,
        /* send TOP to server and retrieve all available Headers */
@@ -57,6 +55,8 @@ typedef enum {
        STYPE_DELETE, 
        /* download + remove Mail from Server */
        STYPE_DOWNLOAD,
+       /* just login (pop before smtp) */
+       STYPE_POP_BEFORE_SMTP,
 } Pop3SessionType;
 
 #if USE_GPGME