#675 new
Allen Jarvis

Issue With Sieve Email Filter

Reported by Allen Jarvis | March 17th, 2014 @ 01:09 PM

Currently running 1.7.2 (4025).

For the last few months, I've been running Mailmate for three accounts using the Rollernet.us email service with no issues. Last week I installed a simple sieve filter on one account. That account is now reported as unavailable although Mailmate continues to properly fetch new mail. The Activity Viewer offers this error message.

S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN] Dovecot ready.
C: C0 AUTHENTICATE PLAIN ••••••••••
S: C0 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
C: C1 CAPABILITY
S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA
S: C1 OK Capability completed.
C: C2 ID ("name" "MailMate" "version" "r4025" "vendor" "Freron Software" "contact" "imap-id@freron.com")
S: * ID NIL
S: C2 OK ID completed.
C: C3 LIST dovecot ""
S: * LIST (\Noselect) "." ""
S: C3 OK List completed.
C: C4 SELECT "dovecot.sieve" (CONDSTORE)
S: C4 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2014-03-16 06:41:10]
Error: Server response: “C4 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2014-03-16 06:41:10]”. Command attempted: “C4 SELECT "dovecot.sieve" (CONDSTORE)”.
Trying to disconnect nicely...
C: C5 LOGOUT
S: * BYE Logging out
S: C5 OK Logout completed.

I now receive similar error messages whether the filter is active, inactive, or completely removed. Mailmate attempts to sync the account every ten seconds or so, always reporting that all folders are unavailable.

The other two accounts continue to process correctly in Mailmate. No error message is reported in Thunderbird for the problematic account.

Any guidance appreciated.

Comments and changes to this ticket

  • benny

    benny March 17th, 2014 @ 01:17 PM

    The interesting part is:

    C: C4 SELECT "dovecot.sieve" (CONDSTORE)  
    S: C4 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2014-03-16 06:41:10]
    

    First, do you have access to this server log?

    Second, is dovecot.sieve a mailbox which was created by you or by the server (when you created the Sieve filter)?

    It is, of course, interesting that Thunderbird does not fail. The question is what is done different by Thunderbird...

    You could try connecting manually to the server:

    telnet imap.rollernet.us 143
    

    Login:

    0 login username password
    

    And then execute the command above:

    0 SELECT "dovecot.sieve" (CONDSTORE)
    

    Alternatively,

    0 SELECT "dovecot.sieve"
    
  • Allen Jarvis

    Allen Jarvis March 19th, 2014 @ 04:56 PM

    • First, do you have access to this server log?

    No, I do not. However, Rollernet graciously provided me with the following:

    "I'll have to try looking at the logs, but offhand it looks like the client is trying to select dovecot.sieve as a mailstore, but that's
    not a valid IMAP folder name.

    Here's the log entries from the server. It says "bug" to you in the IMAP error because that's a non-specific error instead of exposing something potentially internal to the server that could be used for malicious purposes. In this case the internal it doesn't want to expose is a filesystem path. So when the IMAP client is trying to do a "SELECT dovecot.sieve" the server is failing because the path doesn't exist, i.e. not a valid IMAP folder.

    Mar 16 06:41:05 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
    sieve/tmp) failed: Not a directory
    Mar 16 06:41:05 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
    svbin/tmp) failed: Not a directory
    Mar 16 06:41:10 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
    sieve/tmp) failed: Not a directory
    Mar 16 06:41:10 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
    svbin/tmp) failed: Not a directory
    Mar 16 06:41:11 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
    sieve/tmp) failed: Not a directory
    Mar 16 06:41:11 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.svbin/tmp) failed: Not a directory
    Mar 16 06:41:12 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory
    Mar 16 06:41:25 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory
    Mar 16 06:41:25 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.svbin/tmp) failed: Not a directory
    Mar 16 06:41:26 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory
    Mar 16 06:41:27 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.svbin/tmp) failed: Not a directory
    Mar 16 06:41:28 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory
    Mar 16 06:41:28 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.svbin/tmp) failed: Not a directory
    Mar 16 06:41:29 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory"

    • Second, is dovecot.sieve a mailbox which was created by you or by the server (when you created the Sieve filter)?

    Not by me.

    • You could try connecting manually to the server:

    Manually connecting via Telnet produces the same error.

  • benny

    benny March 20th, 2014 @ 01:18 PM

    Thanks for the detailed data.

    What if you manually connect and then enter:

    0 LIST "" "*"
    

    Is dovecot.sieve in the list? If yes, provide the line with this “mailbox”.

    Thanks in advance.

  • Allen Jarvis

    Allen Jarvis March 20th, 2014 @ 02:26 PM

    Benny,

    a2 LIST "" "*"  
    * LIST (\HasNoChildren) "." "Sent"
    * LIST (\HasNoChildren) "." "Drafts"
    * LIST (\HasNoChildren) "." "Deleted Messages"
    * LIST (\HasNoChildren) "." "Trash"
    * LIST (\HasNoChildren) "." "Sent Messages"
    * LIST (\HasNoChildren) "." "Junk"
    * LIST (\HasChildren) "." "Archives"
    * LIST (\HasNoChildren) "." "Archives.2013"
    * LIST (\HasNoChildren) "." "Archive"
    * LIST (\HasNoChildren) "." "dovecot.svbin"
    * LIST (\HasNoChildren) "." "dovecot.sieve"
    * LIST (\HasNoChildren) "." "INBOX"
    a2 OK List completed.
    

    Hope this is what you want.

  • benny

    benny March 20th, 2014 @ 04:30 PM

    Exactly. Now, I would like you to ask Rollernet.us why it returns this:

    * LIST (\HasNoChildren) "." "dovecot.sieve"
    

    When dovecot.sieve is not a selectable mailbox (or even a mailbox at all).

    You can take this mailbox offline in MailMate using “Take Offline” in the mailbox menu. This should prevent MailMate from trying to select it.

  • Allen Jarvis

    Allen Jarvis March 20th, 2014 @ 05:18 PM

    For what it's worth,

    Folder hierarchies via Roundcube for user with sieve filter and for user with no filter:

    Inbox
    Drafts
    Sent
    Junk
    Trash
    Archives
    ----2013
    Deleted Messages
    dovecot
    ----sieve
    ----svbin
    Sent Messages

    and

    Inbox
    Drafts
    Sent
    Junk
    Trash
    Deleted Messages

  • benny

    benny March 20th, 2014 @ 07:56 PM

    So Roundcube behaves like Rollernet.us? Or is it the same thing?

    In any case, let me know if you get a reply from Rollernet.us.

  • Allen Jarvis

    Allen Jarvis March 21st, 2014 @ 12:15 PM

    Issue resolved.

    "You can take this mailbox offline in MailMate using “Take Offline” in the mailbox menu. This should prevent MailMate from trying to select it."

    I initially attempted to do this, assuming that online/offline were Mailmate's version of subscribe/unsubscribe. When the dovecot folder is taken offline, the offline status is indicated until the first mail check is completed. At that point it and all other user folders are labeled unavailable and remain in that category until Mailmate is terminated and restarted. Mail checks continue to repeat approximately every ten seconds.

    Upon Mailmate termination and restart, the entire process is repeated.

    I located access to folder subscriptions via the "edit imap account" option. Mailmate had automatically subscribed to the sieve and svbin folders located under the dovecot directory. Not all email clients do so. Unsubscribing these two folders corrected the problem. Interesting that the server had not subscribed to the dovecot directory and that the dovecot directory was not available for subscription within Mailmate as well.

    Thanks for working with me.

  • benny

    benny March 21st, 2014 @ 02:06 PM

    • State changed from “new” to “closed”

    Well, it's not quite resolved. I still don't understand what MailMate could/should have done differently. The “Server” subscription settings are from the server itself. So the question is, how do other email clients know that they should ignore these folders? (Actually, I believe many email clients don't even respect the server subscription state.)

    You don't have to answer that though :-) I'm only asking because it might be a MailMate bug.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages