Your message dated Mon, 05 Apr 2010 13:49:20 +0000
with message-id <[email protected]>
and subject line Bug#539956: fixed in icewm 1.3.6-2
has caused the Debian Bug report #539956,
regarding [icewm] support for unseen messages on IMAP
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
539956: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539956
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: icewm
Version: 1.2.37+1.3.4pre2-3
Severity: wishlist
Tags: patch

--- Please enter the report below this line. ---

I wrote patch for displaying 'unseen' messages status for a mail indicator in 
IMAP mode.

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.26-2-amd64

Debian Release: squeeze/sid
  990 testing         apt-proxy 
  500 unstable        apt-proxy 
  500 stable          apt-proxy 

--- Package information. ---
Depends                         (Version) | Installed
=========================================-+-=======================
icewm-common       (= 1.2.37+1.3.4pre2-3) | 1.2.37+1.3.4pre2-3
libc6                            (>= 2.3) | 2.9-12
libesd-alsa0                 (>= 0.2.35)  | 0.2.41-5
 OR libesd0                   (>= 0.2.35) | 
libfontconfig1                 (>= 2.4.0) | 2.6.0-4
libgcc1                      (>= 1:4.1.1) | 1:4.4.0-5
libglib2.0-0                  (>= 2.12.0) | 2.20.1-2
libgtk2.0-0                    (>= 2.8.0) | 2.16.1-2
libice6                      (>= 1:1.0.0) | 2:1.0.5-1
libsm6                                    | 2:1.1.0-2
libx11-6                                  | 2:1.2.2-1
libxext6                                  | 2:1.0.4-1
libxft2                        (>> 2.1.1) | 2.1.13-3
libxinerama1                              | 2:1.0.3-2
libxrandr2                   (>= 2:1.2.0) | 2:1.3.0-2


Package's Recommends field is empty.

Suggests                 (Version) | Installed
==================================-+-===========
ttf-bitstream-vera                 | 
icewm-gnome-support                | 







-- 
Alexander Galanin
http://galanin.nnov.ru
diff -ru icewm-1.3.4pre2-old/src/amailbox.cc icewm-1.3.4pre2/src/amailbox.cc
--- icewm-1.3.4pre2-old/src/amailbox.cc	2009-04-27 21:57:44.000000000 +0400
+++ icewm-1.3.4pre2/src/amailbox.cc	2009-08-04 22:22:13.000000000 +0400
@@ -278,13 +278,26 @@
             state = WAIT_STAT;
             delete[] status;
         } else if (state == WAIT_STAT) {
-            MSG(("imap: logout"));
-            char logout[] = "0002 LOGOUT\r\n", folder[128];
+            MSG(("imap: unseen"));
+            char * unseen(cstrJoin("0002 STATUS ",
+                                   (fURL->path() == null || fURL->path().equals("/")) ? "INBOX" : cstring(fURL->path()).c_str() + 1,
+                                   " (UNSEEN)\r\n", NULL));
+            char folder[128];
             if (sscanf(bf, "* STATUS %127s (MESSAGES %lu)",
                        folder, &fCurCount) != 2) {
                 fCurCount = 0;
             }
             fCurUnseen = 0;
+            sk.write(unseen, strlen(unseen));
+            state = WAIT_UNSEEN;
+            delete [] unseen;
+        } else if (state == WAIT_UNSEEN) {
+            MSG(("imap: logout"));
+            char logout[] = "0003 LOGOUT\r\n", folder[128];
+            if (sscanf(bf, "* STATUS %127s (UNSEEN %lu)",
+                       folder, &fCurUnseen) != 2) {
+                fCurUnseen = 0;
+            }
             sk.write(logout, strlen(logout));
             state = WAIT_QUIT;
         } else if (state == WAIT_QUIT) {
@@ -294,10 +307,11 @@
             state = SUCCESS;
             if (fCurCount == 0)
                 fMbx->mailChecked(MailBoxStatus::mbxNoMail, fCurCount);
-            else if (fCurCount > fLastCount && fLastCount != -1)
-                fMbx->mailChecked(MailBoxStatus::mbxHasNewMail, fCurCount);
+            // A.Galanin: I think that 'has unseen' flag has priority higner that 'has new' flag
             else if (fCurUnseen != 0)
                 fMbx->mailChecked(MailBoxStatus::mbxHasUnreadMail, fCurCount);
+            else if (fCurCount > fLastCount && fLastCount != -1)
+                fMbx->mailChecked(MailBoxStatus::mbxHasNewMail, fCurCount);
             else
                 fMbx->mailChecked(MailBoxStatus::mbxHasMail, fCurCount);
             fLastUnseen = fCurUnseen;
diff -ru icewm-1.3.4pre2-old/src/amailbox.h icewm-1.3.4pre2/src/amailbox.h
--- icewm-1.3.4pre2-old/src/amailbox.h	2009-04-27 21:57:44.000000000 +0400
+++ icewm-1.3.4pre2/src/amailbox.h	2009-08-04 21:49:36.000000000 +0400
@@ -25,6 +25,7 @@
         WAIT_USER,
         WAIT_PASS,
         WAIT_STAT,
+        WAIT_UNSEEN,
         WAIT_QUIT,
         ERROR,
         SUCCESS

Attachment: pgpaz325BvKS0.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: icewm
Source-Version: 1.3.6-2

We believe that the bug you reported is fixed in the latest version of
icewm, which is due to be installed in the Debian FTP archive:

icewm-common_1.3.6-2_amd64.deb
  to main/i/icewm/icewm-common_1.3.6-2_amd64.deb
icewm-experimental_1.3.6-2_amd64.deb
  to main/i/icewm/icewm-experimental_1.3.6-2_amd64.deb
icewm-gnome-support_1.3.6-2_amd64.deb
  to main/i/icewm/icewm-gnome-support_1.3.6-2_amd64.deb
icewm-lite_1.3.6-2_amd64.deb
  to main/i/icewm/icewm-lite_1.3.6-2_amd64.deb
icewm_1.3.6-2.diff.gz
  to main/i/icewm/icewm_1.3.6-2.diff.gz
icewm_1.3.6-2.dsc
  to main/i/icewm/icewm_1.3.6-2.dsc
icewm_1.3.6-2_amd64.deb
  to main/i/icewm/icewm_1.3.6-2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Eduard Bloch <[email protected]> (supplier of updated icewm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 05 Apr 2010 13:29:36 +0200
Source: icewm
Binary: icewm-common icewm icewm-gnome-support icewm-lite icewm-experimental
Architecture: source amd64
Version: 1.3.6-2
Distribution: unstable
Urgency: low
Maintainer: Eduard Bloch <[email protected]>
Changed-By: Eduard Bloch <[email protected]>
Description: 
 icewm      - wonderful Win95-OS/2-Motif-like window manager
 icewm-common - wonderful Win95-OS/2-Motif-like window manager
 icewm-experimental - wonderful Win95-OS/2-Motif-like window manager
 icewm-gnome-support - GNOME support files for IceWM
 icewm-lite - wonderful Win95-OS/2-Motif-like window manager
Closes: 539956 563731
Changes: 
 icewm (1.3.6-2) unstable; urgency=low
 .
   * adaptations to use Iceweasel without Firefox compatibility wrappers
   * imap_unseen.dpatch: better display of unseen messages in IMAP folders,
     patch by Alexander Galanin with minor changes (closes: #539956)
   * ifstate_exact_check.dpatch: explicite check of certain interface's state
     instead of mere looking for its presense (closes: #563731)
Checksums-Sha1: 
 e7ccde9485578a9eadb42015b79b252981607a4f 1382 icewm_1.3.6-2.dsc
 15f629fccb54a60dc5c28ed817a8d8180058a69f 335794 icewm_1.3.6-2.diff.gz
 45082ca55a485301eaf9f8ec9fe3f8e52d0aba87 403160 icewm-common_1.3.6-2_amd64.deb
 50ba7f00476ddec44ee476cd6dbfd95ecfb25088 853998 icewm_1.3.6-2_amd64.deb
 5d23b9480d452696991b0a2eeed0059e617112cc 30812 
icewm-gnome-support_1.3.6-2_amd64.deb
 23a5cd7e53820f817b30637416066a6b53c77e38 545400 icewm-lite_1.3.6-2_amd64.deb
 2a3fbbc3b4d5049627c4d235bb75a3a26a413fd2 2398 
icewm-experimental_1.3.6-2_amd64.deb
Checksums-Sha256: 
 7e87f7ce83fb004dde7aadd5dc3027dffa702e4ca9d4475b1a94be44265fc93d 1382 
icewm_1.3.6-2.dsc
 5e9ffe2813b0739d3e89b3a40412ad7bb694d15b5f831627346aceae27249f0b 335794 
icewm_1.3.6-2.diff.gz
 8a7adaa56c0ef768f13c904635aef6ace22e03ea2813ecd2069bf5a50ffa4f54 403160 
icewm-common_1.3.6-2_amd64.deb
 bd5eae7c5d7c194e321f88fee0e407cebc4dd55112e1e4e31b4b1d5343234287 853998 
icewm_1.3.6-2_amd64.deb
 a6f3567b2e182221043e1ffc6cbe305a465064c64413b43a51cccd1ed6ac9bfd 30812 
icewm-gnome-support_1.3.6-2_amd64.deb
 ded56319b3c8e6502a5dc8dcb69ae0650260c3d787d6034c6fcc73d25a7282a9 545400 
icewm-lite_1.3.6-2_amd64.deb
 4c7577002102cc2281cead79437cb8381e216a1cca98c659c89e48eb37222cca 2398 
icewm-experimental_1.3.6-2_amd64.deb
Files: 
 a6b6a952b9ac014c99e3aa2e8b4f6253 1382 x11 optional icewm_1.3.6-2.dsc
 c5bfe287dee7b80f5cc132be5a455b95 335794 x11 optional icewm_1.3.6-2.diff.gz
 b7f005f5f133aee3dad989be178817ed 403160 x11 optional 
icewm-common_1.3.6-2_amd64.deb
 d4bc3ec54db0282a7ecc049a42a90b56 853998 x11 optional icewm_1.3.6-2_amd64.deb
 e61e5d2545b2aae700ad70fef1156a28 30812 gnome optional 
icewm-gnome-support_1.3.6-2_amd64.deb
 0213e62307374bf83afb144c140af4fd 545400 x11 optional 
icewm-lite_1.3.6-2_amd64.deb
 ae17b076644c1b7406d4804eb32aab72 2398 x11 optional 
icewm-experimental_1.3.6-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFLued14QZIHu3wCMURAj4lAJ4raSbCgno2RkX3R8m6WfTsZxADpwCeKaeV
s2GLMizyVV0Nr2W6aAQ+tAQ=
=x4mw
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to