df2mbox

Remco Barendse mailscanner at BARENDSE.TO
Wed Aug 28 10:25:09 IST 2002


Hi!

Want to try the df2mbox script to convert archived messages.
I am running the script on a box running RedHat 7.3 with the latest errata
installed.

I want to convert all archived messages to mbox format (not spam or
quarantined stuff.

This is what i've done:

[root at linuxgw MailArchive]# cd /root/mail/
[root at linuxgw mail]# /usr/local/bin/df2mbox /var/spool/MailArchive/*
bash: /usr/local/bin/df2mbox: /bin/sh: bad interpreter: Argument list too long

I've also tried this (as described in the script):
[root at linuxgw mail]# cd /var/spool/MailArchive/
[root at linuxgw MailArchive]# /usr/local/bin/df2mbox *
bash: /usr/local/bin/df2mbox: /bin/sh: bad interpreter: Argument list too long

The qf and df files are directly located in /var/spool/MailArchive without
any further subdirs.

Running the script on * in /var/spool does seem to work but produces lots
of unwanted files (maybe we can kill creation of the mbox file if no
qf's/df's are found?).

Does anybody know what needs to be altered to make the script work
in the current dir or in the dir as specified on the command line?
The script seems to always need the files to be located in a subdir.

It would be easiest if the script could be run from the directory where
your mail files are located and then on a specified directory.

Thanks!

Remco Barendse



More information about the MailScanner mailing list