in reply to Re^2: Display filenames in mbox folder
in thread Display filenames in mbox folder

readMessageFilenames in Mail::Box::Maildir does exclude some files. Look for the file whose name does not match the pattern /^([0-9][\w.:,=\-]+)$/. It also does some trickery with the numbers that the filenames are supposed to start with, so if you've got two files that are named something like like "0012345abc" and "012345abc", one of those is going to get ignored.

Replies are listed 'Best First'.
Re^4: Display filenames in mbox folder
by peterr (Scribe) on Mar 01, 2015 at 03:16 UTC

    Look for the file whose name does not match the pattern /^(0-9\w.:,=\-+)$/

    When I did a grep with that pattern, for the folder, there was no output ? Also when stepping through with the debugger, moved the mouse over the line my @files = map { /^([0-9][\w.:,=\-]+)$/ and it said something about syntax error. I will look into use Carp to get the error pushed out to a file.

    It also does some trickery with the numbers that the filenames are supposed to start with, so if you've got two files that are named something like like "0012345abc" and "012345abc", one of those is going to get ignored.

    I ran a folder compare on ../new and ../cur paths (total of 592 files), and there are no filenames with the same name. Also there are no filenames that begin with zero. The range is 1231125716.6864.bLyyk:2,S to 1422830161.R3.asus64:2,S

      I did a grep with that pattern
      Did you do a grep -P? Normal grep doesn't support Perl regular expressions. Neither does it with -E.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
        Neither -P or -E worked. I wrote a small script to use that pattern and nothing returned. It would seem the pattern is incorrect.