On 01.12.10 14:27, Jérôme Blion wrote: > One of my customers flooded the Courier mail queue (10K mails on only one > address !) > To clean it, I used the following script: [...] > cd /var/lib/courier > rgrep -l $1 msgs/*/D* | while read DATAFILE
You should use at least "$1" to prevent problems if the string contains whitespaces. We use "$@" instead of $1, so I can pass arguments like '-F' or multiple strings (each preceded by -e) to grep. It's very useful in searching for IP in brackets like [1.2.3.4] It also means that I can't use it in "while" cycle. -- Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. "The box said 'Requires Windows 95 or better', so I bought a Macintosh". ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
