zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Cleanup Maildir alias Self-Spammer

October 20, 2011 by Igor Drobot Leave a Comment

Created a really ugly cron to check PPPoE-Connection status which runs every minute. This script produced over 500+ E-Mails in my Maildir.

This command will do the dirty cleaning job and let your fingers relaxed;)

Go to the users Mailbox:

1
cd /home/reports/Maildir/cur/

cd /home/reports/Maildir/cur/

Search a string from E-Mail and remove this E-Mail/s:

1
rgrep "monitor-pppoe.sh" * -l | xargs -n 100 rm

rgrep "monitor-pppoe.sh" * -l | xargs -n 100 rm

Filed Under: Linux, Mailing, Networking Tagged With: mail, Maildir, xargs

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *