Package: xfce4-mailwatch-plugin
Version: 1.1.0-1local1
Severity: normal
Tags: patch

Hi,

The current version does not work with pop3 servers that do not support CAPA command and what is worst it is quiet about it (no log messages).

I have created small patch that solves this problem for me.

Best Regards,

Andrzej



--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.26-2-686

Debian Release: squeeze/sid
  990 testing         security.debian.org
  990 testing         ftp.task.gda.pl

--- Package information. ---
Depends                (Version) | Installed
================================-+-==============
libatk1.0-0          (>= 1.20.0) | 1.24.0-2
libc6              (>= 2.3.6-6~) | 2.9-4
libcairo2             (>= 1.2.4) | 1.8.6-2+b1
libfontconfig1        (>= 2.4.0) | 2.6.0-3
libfreetype6          (>= 2.2.1) | 2.3.9-4
libgcrypt11           (>= 1.4.2) | 1.4.4-2
libglib2.0-0         (>= 2.18.0) | 2.20.0-2
libgnutls26         (>= 2.5.9-0) | 2.6.4-2
libgpg-error0         (>= 1.6-1) | 1.6-1
libgtk2.0-0          (>= 2.14.0) | 2.14.7-5
libpango1.0-0        (>= 1.22.0) | 1.22.4-2
libtasn1-3            (>= 1.6-0) | 1.8-1
libxfce4util4         (>= 4.6.0) | 4.6.0-2
libxfcegui4-4         (>= 4.6.0) | 4.6.0-2
xfce4-panel           (>= 4.4.2) | 4.4.2-6
zlib1g              (>= 1:1.1.4) | 1:1.2.3.3.dfsg-13



--
Andrzej Zięba
Pruszcz Gdański
Poland
Index: libmailwatch-core/mailwatch-mailbox-pop3.c
===================================================================
--- libmailwatch-core/mailwatch-mailbox-pop3.c	(revision 7237)
+++ libmailwatch-core/mailwatch-mailbox-pop3.c	(working copy)
@@ -194,10 +194,9 @@
         return FALSE;
 
     bin = pop3_recv_command(pmailbox, buf, BUFSIZE, TRUE);
-    if(bin < 0)
-        return FALSE;
 
-    if((p = strstr(buf, "SASL ")) && (q = strstr(p, "\n"))
+    //(bin < 0) means that server does not support CAPA command
+    if((bin >= 0) && (p = strstr(buf, "SASL ")) && (q = strstr(p, "\n"))
        && (p = strstr(p, "CRAM-MD5")) && p < q)
     {
         /* server supports CRAM-MD5 */
_______________________________________________
Pkg-xfce-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-xfce-devel

Reply via email to