Re: Convert all mailboxes of a folder at once

From: Stefan S. <schulze84_at_gmx.de_at_hypermail-project.org>
Date: Tue, 04 Sep 2007 23:33:34 +0200
Message-ID: <46DDCF2E.7020203_at_gmx.de>


Thanks for the mail.

I solved my problem by spliting the mailboxes with procmail and let procmail run a script (named it convert.sh)



for filename in /var/mail/*; do
 hypermail -m "$filename"
done

works great.

Greetings, Stefan

Peter C. McCluskey schrieb:
> I don't think there's a simple way to do what you want. You probably
> should use something like procmail to split it into multiple mailboxes,
> then use something such as perl or python to write a script to call
> hypermail with different -d and -l arguments.
>
> schulze84_at_gmx.de (Stefan S.) writes:
>
>> Hi,
>>
>> is it possible to convert all mailboxes out of a folder into seperate
>> folders (for the html-data) which are named after the mailboxnames with
>> one task?
>>
>> For example:
>>
>> /var/spool/mail/ has the mailboxes mailbox1, mailbox2, mailbox3 in
>> it to the folder /srv/www/htdocs/mailbox1 .../mailbox2 .../mailbox3
>>
>> --------------------------
>>
>>
>> Second question ;-)
>>
>> I have a catchall mailbox so that I could use any emailadress I want
>> without creating them first. Is it possible to convert such a mailbox
>> into seperate folders for each recipient (The recipientname could be
>> found in the email header in the "To: field"). Or do I have to use
>> programs like procmail to split the mailbox into seperate mailboxes
>> before? (What would lead to my first question because I would wish to
>> convert the hole folder than, without looking unter which name the
>> mailboxes are stored)
>>
>
>
Received on Wed 05 Sep 2007 04:59:57 AM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:13 AM GMT GMT