Resend archived mail (although maybe a bit OT) :-)

Alex Neuman alex at nkpanama.com
Thu May 18 15:20:50 IST 2006


Speaking of grep/awk/etc...

Anybody know of a good way to turn a bunch of maildir-formatted messages 
and turn them into an mbox-formatted file?

Or perhaps something I could feed to "formail -s sendmail"?

Thanks...

Res escribió:
> Hi John,
>
> On Wed, 17 May 2006, John Schmerold wrote:
>
>> Thank you. You've provided some very good inspiration. Of course, 
>> I've run into the dreaded "Argument list too long" issue.
>
> This is a shell limitation (you can increase it)
>
> However the fact you are  doing */*/qf*  tremendously adds to your 
> pain, cd into the directory and do qf* and your arg list capability 
> grows much much more, if its still an issue  'xargs' is your new 
> friend to get around it.
>
>>> for i in `grep "rRFC822" */*/qf* | \
>>> grep -w domain.com | \
>>> awk -F : '{print $1}' | \
>>> sort -u | \
>>> sed 's/\/qf/\/?f/'`; \
>>> do echo $i; \
>>> done;
>
> -- 
> Regards,
> Res
>



More information about the MailScanner mailing list