Hi,
My site uses a simple in-house script to archive all mail, which then
gets searched by Mairix (great tool, btw!)
Emails are stored in plain text and are in effect the result of calling
$message->print on a Perl Mail::Message object. So the first line will
be a "Received: " header, followed by the other normal headers, a blank
line, and then the message body. Pretty much RFC2822.
File structure is
/mailarchive/yyyy_mm/domain/sender/timestamp.pid
eg: /mailarchive/2010_10/nexgenfs.com/pgargan/20101026132009.10819
/mailarchive/2010_10/nexgenfs.com/pgargan/20101026154932.29951
would be two files sent by me, each stored in RFC2822 format. Note this
isn't Maildir. There are no "new", "cur" or "tmp" directories, and more
than one layer of directory nesting.
Using Mairix 0.21, I can index 2010_01 with these rcfile settings:
base=/mailarchive
maildir=2010_01...
database=/elsewhere/2010_01_db
It will complain a lot about the directories, eg:
Cannot add '/mailarchive/2010_01/nexgenfs.com' to database;
stat() failed
Cannot add '/mailarchive/2010_01/nexgenfs.com/pgargan'
to database; stat() failed
but it will proceed to scan & index the files inside
/mailarchive/2010_01/nexgenfs.com/pgargan
With the current (0.22) Mairix, this no longer works. I get no errors
about failed stats but no messages are detected either. Strace shows
it's stat64'ing:
/mailarchive/2010_01/nexgenfs.com
/mailarchive/2010_01/nexgenfs.com/new (fails)
/mailarchive/2010_01/nexgenfs.com/pgargan
/mailarchive/2010_01/nexgenfs.com/pgargan/new (fails)
/mailarchive/2010_01/nexgenfs.com/pgargan/20101026154932.29951
The last stat64 succeeds, but there's no corresponding call to "open" -
Mairix obviously thinks the message is irrelevant.
I'm hesitant to call this a bug, as my messages aren't in proper Maildir
format. However, it is useful behaviour that is no longer supported. Any
chance of a workaround / patch for indexing loose collections of RFC2822
messages such as mine?
Thanks,
Paul.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mairix-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mairix-users