Andreas Aardal Hanssen <[EMAIL PROTECTED]>
> This is IMHO a little too quick a conclusion. Standard UNIX tools are very
> easy to use with Maildir/, especially considering that no parsing is
> required to seperate emails, and that all flags can be stored in the file 
> name of a message, rather than in the content.
> 
> To find messages that contain whatever in the subject: 
>   find . -type f | xargs grep -liE 'subject:.*?hei'

Including messages that contain body lines like the quoted, and except
ones like this:

        Subject:
                hei

This isn't idle pedantry. Messages are often wrapped if their subjects are
long, partially RFC 2047 encoded or both.

> To delete all messages from Ole:
>   find . -type f | xargs grep -liE 'return-path:.*?<ole>' | xargs rm -v

That command deletes 1) your message to the list 2) this reply and 3) some
other messages, but not messages from ole@localhost or from [EMAIL PROTECTED]

Both commands are subject to race conditions. On a mail store with a few
gigabytes worth of mail, such commands take a long time, and what
guarantee do you have that noone sets a few flags meanwhile, changing your
file names under your feet? What guarantee do you have that file x still
refers to the same message?

I'm reminded of the Mencken quote: "For every complex problem there is an
answer that is clear, simple, and wrong."

> These operations are much much harder with the UNIX spool system. And 
> better yet: they're consistent, with no locking required.

Write the same operations _correctly_ for both formats, then compare the
commplicity of the code.

I skipped the rest of your message.

--Arnt

Reply via email to