Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

fails to exclude remote folder #4

@anarcat

Description

@anarcat

Following up from #2, it seems there might be a problem with exclude patterns. It could be a documentation problem, it could be a problem with mddiff or it could be a problem between this keyboard and my chair as well. :)

On the remote server (marcos), I have a normal Maildir folder managed by Dovecot, which means there's stuff like Maildir/{cur,new,tmp} but also Maildir/.Sent and so on. But because that server was also a workstation once upon a time (don't ask), there is also a Maildir/Koumbit folder hierarchy in there, which was synchronized by OfflineIMAP with another mailserver. It's kind of a mess too:

[1022]anarcat@marcos:Maildir$ ls -d *Koumbit*
Koumbit/                      Koumbit.INBOX.Drupalorg/  Koumbit.INBOX.homelessnation/  Koumbit.INBOX.Queue/  Koumbit.INBOX.tech-coop/
Koumbit.INBOX.Archives/       Koumbit.INBOX.FACIL/      Koumbit.INBOX.Junk/            Koumbit.INBOX.RT/     Koumbit.INBOX.Templates/
Koumbit.INBOX.Archives.2012/  Koumbit.INBOX.feathers/   Koumbit.INBOX.ourprivacy/      Koumbit.INBOX.Sent/   Koumbit.INBOX.Trash/
[1023]anarcat@marcos:Maildir$ ls Koumbit
INBOX/                INBOX.Archives.2011/  INBOX.Archives.2014/  INBOX.FACIL/           INBOX.Junk/        INBOX.RT/         INBOX.Templates/
INBOX.Archives/       INBOX.Archives.2012/  INBOX.Drafts/         INBOX.feathers/        INBOX.ourprivacy/  INBOX.Sent/       INBOX.Trash/
INBOX.Archives.2010/  INBOX.Archives.2013/  INBOX.Drupalorg/      INBOX.homelessnation/  INBOX.Queue/       INBOX.tech-coop/

Probably some brain farting due to OfflineIMAP messing around. Anyways: I tried and I tried to ignore those folders, and nothing seemed to work. Here's the patterns I have in my config file:

EXCLUDE_LOCAL="Maildir/.notmuch/hooks/* Maildir/.notmuch/xapian/*"
EXCLUDE_REMOTE='Maildir/Koumbit Maildir/Koumbit* Maildir/Koumbit/* Maildir/Koumbit.INBOX.Archives/ Maildir/Koumbit.INBOX.Archives.2012/ Maildir/.notmuch/hooks/* Maildir/.notmuch/xapian/*'

Here is the error I'm getting:

Remote mailboxes translated to local and back:
   Maildir/Koumbit.INBOX.Archives/cur -> Maildir/Anarcat/Koumbit.INBOX.Archives/cur -> Maildir/.Koumbit.INBOX.Archives/cur
Failed round trip check: Maildir/Koumbit.INBOX.Archives/cur -> Maildir/.Koumbit.INBOX.Archives/cur
   echo Maildir/Koumbit.INBOX.Archives/cur | smd-translate -m oimap-dovecot -d RL default -> Maildir/Anarcat/Koumbit.INBOX.Archives/cur
   echo Maildir/Anarcat/Koumbit.INBOX.Archives/cur | smd-translate -m oimap-dovecot -d LR default -> Maildir/.Koumbit.INBOX.Archives/cur

Notice how smd warns about Maildir/Koumbit.INBOX.Archives even though it's explicitly listed in the exclude list? I would still have expected it to be picked up by Maildir/Koumbit* but it seems that even listing it directly doesn't work.

Am I doing something wrong?

PS: I heard you regarding the test suite, but I figured I would file a proper bug report and see if I was doing something obviously wrong before starting to mess around with the test suite..

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions