-d option fails to explore maildir-format directories

Bug #1088508 reported by Ted
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emailgraph
Fix Released
Low
motters

Bug Description

I'm not sure if this is in the maildir spec, but when postfix creates a maildir directory with sub-folders, the folders are stored as "hidden" directories, which are skipped by emailgraph.

For example, this is a section of my maildir:

.[Gmail]
.[Gmail].All Mail
.[Gmail].Drafts
.[Gmail].Sent Mail
.[Gmail].Spam
.[Gmail].Starred
.[Gmail].Trash

These folders contain more mail than my inbox, but they aren't discovered by emailgraph.

Revision history for this message
motters (fuzzgun) wrote :

This sounds like more of a feature request. Any file or folder which begins with a full stop will be assumed to be hidden and skipped. Probably an option should be added to include hidden files in the search.

Changed in emailgraph:
importance: Undecided → Low
status: New → Confirmed
assignee: nobody → motters (fuzzgun)
Revision history for this message
Ted (tedks) wrote :

I'd argue that it is a bug.

* The behavior of skipping hidden directories isn't mentioned anywhere.
* Programs are inconsistent with their exploration of hidden directories; find (for example) will happily give you all the children of a directory, hidden or no.

Given the above two:

* A very popular mail storage format uses hidden directories extensively.
* A new user could reasonably assume that passing a maildir directory would explore all the subfolders in their maildir hierarchy.

emailgraph violates this reasonable assumption, and only explores the inbox.

emailgraph seems optimized for mbox files; since these are relatively old and falling out of favor, would it make sense to add another option for maildirs that would explore hidden directories and files?

Revision history for this message
motters (fuzzgun) wrote :

Ok. This looks easy to fix.

motters (fuzzgun)
Changed in emailgraph:
status: Confirmed → In Progress
Revision history for this message
motters (fuzzgun) wrote :

Fixed in version 1.00

Changed in emailgraph:
status: In Progress → Fix Released
Revision history for this message
Ted (tedks) wrote :

Woohoo, thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.