Skip to content

reports non-existent new mail in maildir mailboxes

Submitted by Ernest Adrogué

Assigned to Florian Rivoal

Link to original bug (#13992)

Description

Created attachment 7426 ignore filenames that start with a dot

Some MUAs create dot files in maildir mailboxes for various purposes, e.g.

ls -a ~/.mail/.comp/new/
.  ..  .sylpheed_cache	.sylpheed_mark

This causes the mailwatch plugin to misreport the number of messages in such mailboxes.

The maildir specification states that message files must not start with a dot [1], so it seems clear that these files should be ignored when performing message counts.

Patch attached.

[1] https://cr.yp.to/proto/maildir.html

Patch 7426, "ignore filenames that start with a dot":
0001-maildir-Ignore-filenames-that-start-with-a-dot.patch