My scripting talent is sadly failing...

Nigel Kendrick support-lists at petdoctors.co.uk
Tue Jan 23 13:59:31 CET 2007


Hi Folks,

I have put together the following one-liner to re-submit all emails sent to
me from an archive folder - it works EXCEPT that the 'echo/cut' command is
not removing the file extension from the file name and so the emails are not
processed in the queue. Would someone kindly have a look and educate me!! 

grep -l 'To: <nigel.kendrick' * | xargs -t -i bash -c "chmod 700 {} ; cp {}
/var/spool/postfix/hold/`echo {} | cut -d . -f 1` "

Many thanks

Nigel Kendrick



More information about the MailScanner mailing list