Author Topic: Some subfolders reported as empty even when there is emails in them  (Read 4155 times)

Offline damon

  • Newbie
  • *
  • Posts: 3
Hallo,
Yesterday I was browsing my emails and I discovered that some folders are reported as empty, without messages in it, when in the reality there are messages (using an email client program the contents are displayed correctly).

I'm using an imap server, and RoundCube v0.5.2 but this issue was also in v.0.5.1 .

Any help / question to catch the problem are welcome :)!

damon

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Some subfolders reported as empty even when there is emails in them
« Reply #1 on: May 30, 2011, 06:02:35 AM »
could you please enable imap_debug and post the log?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline damon

  • Newbie
  • *
  • Posts: 3
Some subfolders reported as empty even when there is emails in them
« Reply #2 on: May 30, 2011, 08:31:29 AM »
Can I send to you by email?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Some subfolders reported as empty even when there is emails in them
« Reply #3 on: May 30, 2011, 12:07:38 PM »
I could just tell you what to look for if you want. In the log you'll see Roundcube asking the IMAP server how many unread messages are in each folder, one request for each folder. You should see something like this:
Code: [Select]
C: A0003 STATUS INBOX (MESSAGES UNSEEN)And then a response which looks something like this:
Code: [Select]
S: * STATUS "INBOX" (MESSAGES 3 UNSEEN 1)Meaning there are 3 messages in my Inbox and 1 of them is marked as unread.

If the response from the server has message count you are expecting then try disabling caching in Roundcube (if you have it enabled) and also disabling any plugins you have installed and see if the problem goes away.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline damon

  • Newbie
  • *
  • Posts: 3
Some subfolders reported as empty even when there is emails in them
« Reply #4 on: May 30, 2011, 12:17:34 PM »
Ah ok now I get what you're looking for (-: . Here an example of one folder where I expect to see 6 emails but is empty:

[30-May-2011 14:20:53 +0200]: C: A0156 STATUS "Ricevute licenze ecc.ReifenDirekt AG" (MESSAGES UNSEEN)
[30-May-2011 14:20:53 +0200]: S: * STATUS "Ricevute licenze ecc.ReifenDirekt AG" (MESSAGES 6 UNSEEN 0)
[30-May-2011 14:20:53 +0200]: S: A0156 OK Status completed.

Then I clicked on the folder called "ReifenDirekt AG" and in the log I had this:

[30-May-2011 14:20:58 +0200]: C: A0004 STATUS "Ricevute licenze ecc.ReifenDirekt AG" (MESSAGES UNSEEN)
[30-May-2011 14:20:58 +0200]: S: * STATUS "Ricevute licenze ecc.ReifenDirekt AG" (MESSAGES 6 UNSEEN 0)
[30-May-2011 14:20:58 +0200]: S: A0004 OK Status completed.
[30-May-2011 14:20:58 +0200]: C: A0005 SELECT "Ricevute licenze ecc.ReifenDirekt AG"
[30-May-2011 14:20:58 +0200]: S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $NotJunk NotJunk $Junk $Forwarded)
[30-May-2011 14:20:58 +0200]: S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $NotJunk NotJunk $Junk $Forwarded \*)] Flags permitted.
[30-May-2011 14:20:58 +0200]: S: * 6 EXISTS
[30-May-2011 14:20:58 +0200]: S: * 0 RECENT
[30-May-2011 14:20:58 +0200]: S: * OK [UIDVALIDITY 1250191741] UIDs valid
[30-May-2011 14:20:58 +0200]: S: * OK [UIDNEXT 7] Predicted next UID
[30-May-2011 14:20:58 +0200]: S: A0005 OK [READ-WRITE] Select completed.
[30-May-2011 14:20:58 +0200]: C: A0006 FETCH 6 (UID)
[30-May-2011 14:20:58 +0200]: S: * 6 FETCH (UID 6)
[30-May-2011 14:20:58 +0200]: S: A0006 OK Fetch completed.
[30-May-2011 14:20:58 +0200]: C: A0007 FETCH 1:6 (UID RFC822.SIZE FLAGS INTERNALDATE BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE LIST-POST DISPOSITION-NOTIFICATION-TO REPLY-TO IN-REPLY-TO CC BCC MESSAGE-ID CONTENT-TRANSFER-ENCODING REFERENCES X-PRIORITY X-DRAFT-INFO MAIL-FOLLOWUP-TO MAIL-REPLY-TO RETURN-PATH)])
[30-May-2011 14:20:58 +0200]: S: * 1 FETCH (UID 1 RFC822.SIZE 2627 FLAGS (\Seen $NotJunk NotJunk) INTERNALDATE "16-Mar-2009 23:00:15 +0100" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE LIST-POST DISPOSITION-NOTIFICATION-TO REPLY-TO IN-REPLY-TO CC BCC MESSAGE-ID CONTENT-TRANSFER-ENCODING REFERENCES X-PRIORITY X-DRAFT-INFO MAIL-FOLLOWUP-TO MAIL-REPLY-TO RETURN-PATH)] {364}
[30-May-2011 14:20:58 +0200]: S: Return-Path:
To: damon.bonesi@bluewin.ch
Reply-To: montagestation@delti.com
From: montagestation@delti.com
Content-type: text/plain; charset=iso-8859-1
Subject: =?ISO-8859-1?Q?=C9valuation_de_partenaires_de_montage_Delticom?=
Message-Id: <20090316220015.53E1340ABF4@web1.delti.com>
Date: Mon, 16 Mar 2009 23:00:15 +0100 (CET)


[30-May-2011 14:20:58 +0200]: S: )
[30-May-2011 14:20:58 +0200]: S: * 2 FETCH (UID 2 RFC822.SIZE 4322 FLAGS (\Seen $NotJunk NotJunk) INTERNALDATE "09-Mar-2009 08:58:47 +0100" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE LIST-POST DISPOSITION-NOTIFICATION-TO REPLY-TO IN-REPLY-TO CC BCC MESSAGE-ID CONTENT-TRANSFER-ENCODING REFERENCES X-PRIORITY X-DRAFT-INFO MAIL-FOLLOWUP-TO MAIL-REPLY-TO RETURN-PATH)] {393}
[30-May-2011 14:20:58 +0200]: S: Return-Path:
To: damon.bonesi@bluewin.ch
Reply-To: auftrag.ReifenDirekt.ch@delti.com
From: auftrag.ReifenDirekt.ch@delti.com
Content-type: text/plain; charset=iso-8859-1
Subject: =?ISO-8859-1?Q?Confirmation_de_commande_et_num=E9ro_de_facture_RD_6069751?=
Message-Id: <20090309075846.49B5340AC44@web1.delti.com>
Date: Mon,  9 Mar 2009 08:58:46 +0100 (CET)


[30-May-2011 14:20:58 +0200]: S: )
[30-May-2011 14:20:58 +0200]: S: * 3 FETCH (UID 3 RFC822.SIZE 3603 FLAGS (\Seen $NotJunk NotJunk) INTERNALDATE "07-Mar-2009 23:20:18 +0100" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE LIST-POST DISPOSITION-NOTIFICATION-TO REPLY-TO IN-REPLY-TO CC BCC MESSAGE-ID CONTENT-TRANSFER-ENCODING REFERENCES X-PRIORITY X-DRAFT-INFO MAIL-FOLLOWUP-TO MAIL-REPLY-TO RETURN-PATH)] {413}
[30-May-2011 14:20:58 +0200]: S: Return-Path:
To: damon.bonesi@bluewin.ch
Reply-To: reifendirekt.ch@delti.com
From: reifendirekt.ch@delti.com
Content-type: text/plain; charset=iso-8859-1
Subject: =?ISO-8859-1?Q?Nous_vous_confirmons_la_bonne_r=E9ception_de_votre_commande_-__ReifenDirekt.ch_Nr._RD_6069751?=
Message-Id: <20090307222018.39343E02831@web15.delti.com>
Date: Sat,  7 Mar 2009 23:20:18 +0100 (CET)


[30-May-2011 14:20:58 +0200]: S: )
[30-May-2011 14:20:58 +0200]: S: * 4 FETCH (UID 4 RFC822.SIZE 72111 FLAGS (\Seen $NotJunk NotJunk $Forwarded) INTERNALDATE "25-May-2011 09:00:09 +0200" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE LIST-POST DISPOSITION-NOTIFICATION-TO REPLY-TO IN-REPLY-TO CC BCC MESSAGE-ID CONTENT-TRANSFER-ENCODING REFERENCES X-PRIORITY X-DRAFT-INFO MAIL-FOLLOWUP-TO MAIL-REPLY-TO RETURN-PATH)] {392}
[30-May-2011 14:20:58 +0200]: S: Return-Path:
Content-Type: multipart/mixed; boundary="----------=_1306306807-17452-30"
Content-Transfer-Encoding: binary
From: order.ReifenDirekt.ch@delti.com
To: damon@bonesi.ch
Subject: Confirmation de commande et num?ro de facture RD 11326484
Message-Id: <20110525070007.CB8C71CE35E0@news.delti.com>
Date: Wed, 25 May 2011 09:00:07 +0200 (CEST)


[30-May-2011 14:20:58 +0200]: S: )
[30-May-2011 14:20:58 +0200]: S: * 5 FETCH (UID 5 RFC822.SIZE 3294 FLAGS (\Seen $NotJunk NotJunk $Forwarded) INTERNALDATE "24-May-2011 10:10:35 +0200" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE LIST-POST DISPOSITION-NOTIFICATION-TO REPLY-TO IN-REPLY-TO CC BCC MESSAGE-ID CONTENT-TRANSFER-ENCODING REFERENCES X-PRIORITY X-DRAFT-INFO MAIL-FOLLOWUP-TO MAIL-REPLY-TO RETURN-PATH)] {419}
[30-May-2011 14:20:58 +0200]: S: Return-Path:
To: damon@bonesi.ch
Reply-To: reifendirekt.ch@delti.com
From: reifendirekt.ch@delti.com
Content-type: text/plain; charset=iso-8859-1
Subject: =?ISO-8859-1?Q?Nous_vous_confirmons_la_bonne_r=E9ception_de_votre_commande_-__ReifenDirekt.ch_Nr._RD_11326483=2C_11326484?=
Message-Id: <20110524081033.7EF18CB2F00@web15.delti.com>
Date: Tue, 24 May 2011 10:10:33 +0200 (CEST)


[30-May-2011 14:20:58 +0200]: S: )
[30-May-2011 14:20:58 +0200]: S: * 6 FETCH (UID 6 RFC822.SIZE 72433 FLAGS (\Seen $NotJunk NotJunk) INTERNALDATE "25-May-2011 13:01:24 +0200" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE LIST-POST DISPOSITION-NOTIFICATION-TO REPLY-TO IN-REPLY-TO CC BCC MESSAGE-ID CONTENT-TRANSFER-ENCODING REFERENCES X-PRIORITY X-DRAFT-INFO MAIL-FOLLOWUP-TO MAIL-REPLY-TO RETURN-PATH)] {393}
[30-May-2011 14:20:58 +0200]: S: Return-Path:
Content-Type: multipart/mixed; boundary="----------=_1306321271-16653-148"
Content-Transfer-Encoding: binary
From: order.ReifenDirekt.ch@delti.com
To: damon@bonesi.ch
Subject: Confirmation de commande et num?ro de facture RD 11326483
Message-Id: <20110525110111.E11601DA8838@news.delti.com>
Date: Wed, 25 May 2011 13:01:11 +0200 (CEST)


[30-May-2011 14:20:58 +0200]: S: )
[30-May-2011 14:20:58 +0200]: S: A0007 OK Fetch completed.

...but the folder on the website is empty (I have a screenshot of it, if you need). Actually, a yellow box appear on the top with the message "Messages not found on this folder" or something like this.

thanks
damon

Offline colb123

  • Newbie
  • *
  • Posts: 2
Some subfolders reported as empty even when there is emails in them
« Reply #5 on: June 07, 2011, 05:49:12 AM »
Can I just add my observations?
I too am experiencing the same problem as described. For info, the IMAP backend used is dbMAIL and front end RC 0.5.2.
Any help would be greatly appreciated.
Thanks
Colin