Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-FolderType CPAN distribution.

Report information
The Basics
Id: 38395
Status: rejected
Priority: 0/
Queue: Email-FolderType

People
Owner: Nobody in particular
Requestors: bremner-dated-1219664437.6c65f5 [...] pivot.cs.unb.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: better MH folder detection
Date: Mon, 11 Aug 2008 08:40:36 -0300
To: bug-Email-FolderType [...] rt.cpan.org
From: David Bremner <bremner [...] unb.ca>
At the moment Email::FolderType seems to have no way other than the name to detect MH folders. What about something like the following? package Email::FolderType::MH; sub match { my $folder = shift; return 0 if (! -d $folder); opendir DIR,$folder || error("opendir failed"); while (<DIR>){ return 0 if (!m|\.| && !m|\.\.| && !m|\d+|); } return 1; }
This seems at least mostly reasonable. I might instead look for files only matching /\A[0- 9]+\z/ or something, but whatever. Patches for this issue are most welcome. -- rjbs
Three years later, no patch. I am closing this as I migrate to a new bug tracker. -- rjbs