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.

should ignore symlinks in "mailboxes" #5

@anarcat

Description

@anarcat

I use notmuch to index my mails. This means that in my Maildir folder, there is a Maildir/.notmuch/hooks/ subfolder which has various programs that run before and after notmuch is ran. To version-control that stuff, I use symlinks, so things look like this:

[264]anarcat@curie:syncmaildir$ ll ~/Maildir/.notmuch/hooks/
total 0
lrwxrwxrwx 1 anarcat anarcat 29 2017-01-04 22:51 post-new -> /home/anarcat/bin/notmuch-tag*
lrwxrwxrwx 1 anarcat anarcat 31 2017-01-04 22:51 pre-new -> /home/anarcat/bin/notmuch-purge*

When smd-check-conf finds this folder, it freaks out:

Remote mailboxes translated to local and back:
error [stat]: Maildir/.notmuch/hooks/pre-new in not a directory
Error while listing the content of Maildir, skipping
Endpoint default configuration file successfully checked

I don't think it should freak out like that - those files should just be ignored out of the box. Naturally, I can easily make smd ignore those files with:

EXCLUDE="Maildir/.notmuch/hooks/* Maildir/.notmuch/xapian/*"

I'm not sure I need to ignore the Xapian folder as well, but it seems safer.

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