Script to delete mails from maildir


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Script to delete mails from maildir
# 1  
Old 02-07-2007
Script to delete mails from maildir

Hi buddies,

Anybody has any script to delete mails from Maildir/cur???
I mean is it possible to delete mails from Maildir/cur matching a particular subject like spam or fax???

Thanks in advance
# 2  
Old 02-08-2007
Depending on where the maildir is, you can always write a small script to delete them as per predefined RegExp - there are a lot of scripts in the net.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with consolidating mails sent by executing script

I have a script which checks for swap usage of the unix server. A cron job has been created to execute this script every hour and send the output via mail. This output is only required for a particular duration and it can range anywhere from 6 hours to 10 hours. So we are commenting out the... (1 Reply)
Discussion started by: kiran1112
1 Replies

2. Shell Programming and Scripting

Mails from shell script

Hello Gurus, I am facing some issues while doing the automation of some progs. The requirement is if any prog fails with error automatically the script will send alert for such failed progs. Below is the table structure:- PROG_NAME Description... (1 Reply)
Discussion started by: pokhraj_d
1 Replies

3. Windows & DOS: Issues & Discussions

Direct junk mails to inbox (instead of going to delete)

hi, some of my email are going into the junk box. so i have stopped the email junk filtering as per the below link Outlook 2013 Junk Email Filter - Litmus but now the mails are going into delete box instead of my inbox. so any idea how can i stop the junk emails going into delete box and... (2 Replies)
Discussion started by: mallikarjun7777
2 Replies

4. Shell Programming and Scripting

mailx- how to delete least of mails

Hi, when i run the mailx command it gives me the least of mails . suppose there are 1- 150 mails and i want to delete 30 to 145 mails . then what command i have to use here? Thanks (6 Replies)
Discussion started by: aish11
6 Replies

5. Solaris

Delete clientmqueue mails

My clientmqueue directory is almost 6.7GB. There are like a thousands of e-mail that are present. Is there any way to delete them or just delete them normally. Also while deleting them, do i need to shutdown my sendmail service? Root FS is almost at 100%. Please help in this. Thanks in... (1 Reply)
Discussion started by: aksijain
1 Replies

6. Red Hat

Maildir quota in postfix.... urgent help

Friends, I am new to the postfix mail servers. My setup was configured with the below Mail Server(MTA,MRA) Postfix, Courier-IMAP Operating System Redhat Enterprise Linux 5.4 . SPAM Protection/Content Filter IMSS 7.1 DNS,LDAP BIND,OPENLDAP WebMail ... (0 Replies)
Discussion started by: kmvinay
0 Replies

7. UNIX for Dummies Questions & Answers

Delete all mails on Solaris

How do I delete all my mails in the mailbox on Solaris? $mail ? d * Illegal numeric ? d * does not work. Also I want to retain the mailbox. Thanks, Rahul. (3 Replies)
Discussion started by: rahulrathod
3 Replies

8. Shell Programming and Scripting

Delete all mails using mailx or mail

Hi , ?im a newbie using shell scripts. Is there any way to write a script that will delete all mails from my mailbox using mail or mailx command Thanks for your time E. Festas (2 Replies)
Discussion started by: ninjanesto
2 Replies

9. UNIX for Dummies Questions & Answers

maildir question

Hi, I had a server hosting my website which kept all of my mail in a folder of my home dir called "mail". In that folder was "cur", "new", "tmp"... Which as I understand is the maildir format. I just recently switched to a new server, and am attempting to transfer all my mail over, however,... (0 Replies)
Discussion started by: patrick99e99
0 Replies

10. UNIX for Dummies Questions & Answers

Maildir or mbox??

Hi, I was wondering if someone can tell me what the difference is exactly between maildir and mbox. We have a few solaris 9 systems here and would like to get an imap server running on them. I have setup fetchmail so that it retrives remote pop3 mail into an account, and that mail is then... (3 Replies)
Discussion started by: sugarat
3 Replies
Login or Register to Ask a Question