Ciaran McCreesh wrote:
>
> Our mailing list software is throwing a hissy fit and inserting double
> subject lines. It might be confusing some email clients...
>
Yes, it made serious troubles to my Mozilla (and me) ...
accessing mail via IMAP server.
This script removes broken subject line from mails in maildir:
#!/bin/bash
find . | while read a b
do
if grep -q '^Subject: \[gentoo-user\]$' $a
then
sed '/^Subject: \[gentoo-user\]$/d' $a > xxx
touch -r $a xxx
mv xxx $a
fi
done
For MBOX this line should be enough (not tested):
sed -i '/^Subject: \[gentoo-user\]$/d' mbox-file
HTH noro
--
[email protected] mailing list