Ticket #1121 (assigned defect)

Opened 14 years ago

Last modified 13 years ago

mail sorting problem

Reported by: mihamina Owned by: tziade
Priority: P2 Milestone: CPS 3.5.7
Component: CPSMailAccess Version: TRUNK
Severity: normal Keywords: attribute find sort mail date
Cc: mihamina.rakotomandimby@…

Description

When updating CPS, I use to run cpsupdate.

For the webmail, I use to delete the portal_webmail under the cps root, then resintall CPSMailAccess.
Updating this way make user's setting to be lost, so that users have to reconfigure their webmail.
Just after reconfiguring the webmail, trying to sync the WebMail? gives this:

Traceback (innermost last):
    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.CPSMailAccess.mailbox, line 1463, in background_synchronisation
    * Module Products.CPSMailAccess.mailbox, line 355, in synchronize
    * Module Products.CPSMailAccess.mailbox, line 517, in _syncdirs
    * Module Products.CPSMailAccess.mailfolder, line 718, in _synchronizeFolder
    * Module Products.CPSMailAccess.imapconnection, line 422, in fetch
    * Module Products.CPSMailAccess.imapconnection, line 269, in _extractResult
AttributeError: 'NoneType' object has no attribute 'find'

Then I clicking in the INBOX link, it shows that the sync was succefull but  this screenshot shows that the sort was wrong.
I can reproduce the Traceback if I reconfigure the user's webmail (without the need to remove portal_webmail & reinstall CPSMailAccess)
When blindly clicking on one of these messages, they are readable, but the date is just wrong.

I made it critical but i think t should have been more because the webmail is partially unusable (the receiving).

Change History

comment:1 Changed 14 years ago by tziade

  • Status changed from new to assigned

Thanks for the feedback.

I have just commited a fix here [29438] that avoids reading empty flags. Can you try out and tell me if it's ok now ?

If not, we need to get deeper, and catch IMAP answers to understand why it sends a bad flag, to be able to fix .

comment:2 Changed 14 years ago by fguillaume

  • Milestone changed from CPS 3.3.8 to CPS 3.4.0

Also please don't use/abuse [[br]], and don't target a milestone that's already released. If you don't know how to fill a milestone, set it "unspecified".

comment:3 Changed 14 years ago by mihamina

I tried, and then there is no more eror message. The WebMail? Navigation portlet is now just emtpy. No way to access INBOX unless, may be, knowing the direct URL (which I dont know).

comment:4 Changed 14 years ago by tziade

do you happen to have a weird folder name in your box ?

weird name examples:

-"_### subfolder"

-"$$$$$$$gogogogo"

-"%ù=======ok"

comment:5 Changed 14 years ago by mihamina

I dont have such weird dirnames:

mihamina-mfc>>>>pwd
/home/mihamina/Maildir

mihamina-mfc>>>>ls -al | grep drwx
drwx------  53 mihamina users    4096 Oct  8 01:56 .
drwxr-xr-x  23 mihamina users    4096 Nov 23 00:16 ..
drwx------   6 mihamina users    4096 Jan 25  2005 .asa
drwx------   5 mihamina users    4096 Feb  4  2005 .asa.aspo
drwx------   6 mihamina users    4096 Feb  7  2005 .asa.cnt1
drwx------   5 mihamina users    4096 Jan 30  2005 .asa.identifiants
drwx------   6 mihamina users    4096 Feb 13  2005 .asa.jplavie
drwx------   6 mihamina users    4096 Feb 14  2005 .asa.mfc
drwx------   5 mihamina users    4096 Jan 29  2005 .bsd
drwx------   5 mihamina users    4096 Feb 14  2005 .bsd.general
drwx------   5 mihamina users    4096 Feb 14  2005 .bsd.sparc
drwxr-xr-x   2 mihamina users    4096 Dec 25  2004 courierimaphieracl
drwx------   2 mihamina users    4096 Jan 22  2005 courierimapkeywords
drwx------   2 mihamina users  270336 Sep 26 18:18 cur
drwx------   6 mihamina users    4096 Feb 14  2005 .divers
drwx------   2 mihamina users    4096 Feb 14  2005 .INBOX
drwx------   5 mihamina users    4096 Oct  8 01:56 .INBOX.Drafts
drwx------   5 mihamina users    4096 Oct  8 01:56 .INBOX.Sent
drwx------   5 mihamina users    4096 Oct  8 01:56 .INBOX.Trash
drwx------   5 mihamina users    4096 Jan 29  2005 .linux
drwx------   5 mihamina users    4096 Feb 14  2005 .linux.backports
drwx------   5 mihamina users    4096 Feb 14  2005 .linux.deb-apache
drwx------   5 mihamina users    4096 Feb 14  2005 .linux.deb-mentors
drwx------   5 mihamina users    4096 Feb 14  2005 .linux.deb-sparc
drwx------   5 mihamina users    4096 Feb 14  2005 .linux.deb-users-en
drwx------   5 mihamina users    4096 Feb 14  2005 .linux.deb-users-fr
drwx------   5 mihamina users    4096 Feb 14  2005 .linux.fedora
drwx------   5 mihamina users    4096 Feb 14  2005 .linux.ipaq
drwx------   2 mihamina users 1519616 Nov 23 00:12 new
drwx------   5 mihamina users    4096 Jan 29  2005 .software
drwx------   5 mihamina users    4096 Feb 14  2005 .software.apache
drwx------   5 mihamina users    4096 Feb 14  2005 .software.evolution
drwx------   5 mihamina users    4096 Feb 14  2005 .software.exim
drwx------   5 mihamina users    4096 Feb 14  2005 .software.hp-list
drwx------   5 mihamina users    4096 Feb 11  2005 .software.inn
drwx------   5 mihamina users    4096 Feb 14  2005 .software.mailman
drwx------   5 mihamina users    4096 Feb  2  2005 .software.mc
drwx------   5 mihamina users    4096 Feb  7  2005 .software.mldonkey
drwx------   5 mihamina users    4096 Feb 14  2005 .software.mplayer
drwx------   5 mihamina users    4096 Feb 14  2005 .software.mysql
drwx------   5 mihamina users    4096 Feb 14  2005 .software.netfilter
drwx------   5 mihamina users    4096 Feb 14  2005 .software.oo
drwx------   5 mihamina users    4096 Feb 14  2005 .software.pan
drwx------   5 mihamina users    4096 Feb 14  2005 .software.postfix
drwx------   5 mihamina users    4096 Feb 14  2005 .software.qmail
drwx------   5 mihamina users    4096 Feb 14  2005 .software.razor
drwx------   5 mihamina users    4096 Feb 14  2005 .software.squirrel
drwx------   5 mihamina users    4096 Feb 14  2005 .software.xfce
drwx------   5 mihamina users    4096 Feb 14  2005 .software.xiph-iceX
drwx------   5 mihamina users    4096 Feb 14  2005 .software.yum
drwx------   2 mihamina users    4096 Nov 23 00:12 tmp
drwx------   6 mihamina users    4096 Jan 25  2005 .Trash
drwx------   5 mihamina users    4096 Feb 14  2005 .tsilaina

Tell me in private if you want the access to the machine. it's a test machine, I can grant you an access to it. it's on a dedicated server for test purposes.

comment:6 Changed 14 years ago by tziade

is is synchroninzing write ? it it is, please go to portal_webmail/box_XXX/manage (where XXXX is your username)

and tell me what entries you have

comment:7 Changed 14 years ago by mihamina

  • Severity changed from critical to normal

 it is empty now. I cant sync, let me investigate about the reasons I cant synchronise. I'll keep you tuned.

comment:8 Changed 14 years ago by tziade

  • Milestone changed from CPS 3.4.0 to CPS 3.5.0

ok, i'll change the milestone to 3.5 because nobody else encouter this, so it looks very specific

comment:9 Changed 13 years ago by mihamina

  • Priority changed from P1 to P2

It happens on my machines running dovecot imap as IMAP server. Those using courier-imap are Ok. Others MUAs (Evolution, Outlook, Thunderbird) make no problems...

comment:10 Changed 13 years ago by fguillaume

We need additional debugging info, like debug logs you could have to understand what's coming to and back from the server, or a network trace like done with ethereal (this needs a non-encrypted connection though).

comment:11 Changed 13 years ago by mihamina

I would need some help on configuring ethereal to capture the right packets. What is the right filter expression? (I will also ask on the ethereal ML)

Mine is "imap.request
imap.response" for the moment...

comment:12 Changed 13 years ago by mihamina

I already put the server in "debug-mode" and set the log level to all in "event.log" (then restarted Zope) but nothing about the problem in "event.log". The error_log (in the ZMI) also just repeat the tracebacks I gave.

Note: See TracTickets for help on using tickets.