0.8.11claws33
authorChristoph Hohmann <reboot@gmx.ch>
Thu, 20 Mar 2003 14:44:47 +0000 (14:44 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Thu, 20 Mar 2003 14:44:47 +0000 (14:44 +0000)
* src/folder.c
        remove NEW and UNREAD flag in special folders when scanning

* src/common/smtp.c
        fix ESMTP AUTH CRAM-MD5

ChangeLog.claws
configure.ac
src/common/smtp.c
src/folder.c

index 0b0c008..9e6da3a 100644 (file)
@@ -1,3 +1,11 @@
+2003-03-20 [christoph] 0.8.11claws33
+
+       * src/folder.c
+               remove NEW and UNREAD flag in special folders when scanning
+               
+       * src/common/smtp.c
+               fix ESMTP AUTH CRAM-MD5
+
 2003-03-20 [paul]      0.8.11claws32
 
        * src/prefs_account.c
index 7248402..5683e8c 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=11
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws32
+EXTRA_VERSION=claws33
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index af730c3..ad82a2c 100644 (file)
@@ -177,7 +177,7 @@ static gint smtp_auth_recv(SMTPSession *session, const gchar *msg)
        case SMTPAUTH_CRAM_MD5:
                session->state = SMTP_AUTH_CRAM_MD5;
 
-               if (!strncmp(buf, "334 ", 4)) {
+               if (!strncmp(msg, "334 ", 4)) {
                        gchar *response;
                        gchar *response64;
                        gchar *challenge;
@@ -185,7 +185,7 @@ static gint smtp_auth_recv(SMTPSession *session, const gchar *msg)
                        guchar hexdigest[33];
 
                        challenge = g_malloc(strlen(buf + 4) + 1);
-                       challengelen = base64_decode(challenge, buf + 4, -1);
+                       challengelen = base64_decode(challenge, msg + 4, -1);
                        challenge[challengelen] = '\0';
                        log_print("ESMTP< [Decoded: %s]\n", challenge);
 
index 68c744c..db9ec95 100644 (file)
@@ -1229,6 +1229,12 @@ gint folder_item_scan(FolderItem *item)
                        procmsg_msginfo_unset_flags(msginfo, MSG_NEW | MSG_UNREAD, 0);
                        procmsg_msginfo_set_flags(msginfo, MSG_IGNORE_THREAD, 0);
                }
+               if ((item->stype == F_OUTBOX ||
+                    item->stype == F_QUEUE  ||
+                    item->stype == F_DRAFT  ||
+                    item->stype == F_TRASH) &&
+                   (MSG_IS_NEW(msginfo->flags) || MSG_IS_UNREAD(msginfo->flags)))
+                       procmsg_msginfo_unset_flags(msginfo, MSG_NEW | MSG_UNREAD, 0);
                if (MSG_IS_NEW(msginfo->flags))
                        newcnt++;
                if (MSG_IS_UNREAD(msginfo->flags))