[Nottingham] saved by the shell ?

Martin Kirk martin at applab.co.uk
Tue May 20 18:24:14 BST 2008


Hi All,

i have a mailbox (maildir format) that, thanks to some over-zealous status 
reporting by a firewall, has received approx. 35,000 messages in the the last 
few days.

i have shell access to the server so was hoping i could use some command-line 
trickery to remove all messages with a given subject line.

after a bit of googling i figure i need something along the lines of :-
	grep "My Subject Line" ./* | xargs rm
but i'm getting an error "bin/grep: Argument list too long"

can anyone put me on the right track ?

thanks,
Martin.



More information about the Nottingham mailing list