Deleting some mails from Unix mail accounts


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Deleting some mails from Unix mail accounts
# 1  
Old 09-12-2005
Deleting some mails from Unix mail accounts

Hi there,

Is there a way to delete some messages from the mail account on a Unix machine via a script?.

Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

2. Shell Programming and Scripting

How to read outlook mails for a particular user and store that mail description in a excel/notepad

My requirements are :- Remote connection to the another server with log in credential. Read the mail from a particular user with date,subject and contents and store these data in XLs with consecutive columns (date,subject and contents). Mail that XLs to multiple user those are in a mailing... (3 Replies)
Discussion started by: ranjan001
3 Replies

3. UNIX for Advanced & Expert Users

How to allow roaming client to send mails via its mail server

Hi folks OS- Debian Etch Xen postfix courier perdition perdition-mysql MySQL Single public IP Dom0 - Debian Etch workstation Server-1, domU1 for routing with perdition and perdition-mysql installed Server-2, domU2, mail server for domain-A Server-3, domU3, mail server for... (2 Replies)
Discussion started by: satimis
2 Replies

4. 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

5. UNIX for Advanced & Expert Users

sending mails with attachment and also some text in mail body

Hi, Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together. When I am using the following syntax it is not sending the attachment but only the message body. unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s... (7 Replies)
Discussion started by: guptan
7 Replies

6. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

7. UNIX for Dummies Questions & Answers

deleting a mail from inbox in unix

I want to programatically delete a mail from my inbox(preferrably through perl). Is there any unix command for the same or do we have some perl modules which can do this job. (3 Replies)
Discussion started by: xsriniva
3 Replies

8. UNIX for Dummies Questions & Answers

Mail accounts

Hi there I am a newbie. want to learn followings: 1. How can i create an mail only account.? 2. Where is the file containing mail accounts?What is the path? 3. Can i create mail accounts from PHP? Thanx (3 Replies)
Discussion started by: vbs
3 Replies

9. Cybersecurity

Creating mail accounts online.?

Hi all. Can anybody help me about this topic. I am working on the project which lets people create an mail account an sign in to send or recieve mail( shortly like yahoo hotmail). At the moment , records of People who registers to my mail service, is saved to database.after, I am creating... (1 Reply)
Discussion started by: vbs
1 Replies
Login or Register to Ask a Question
MAILFILTER(1)							   User Manuals 						     MAILFILTER(1)

NAME
mailfilter - Filters e-mail, gets rid of spam SYNOPSIS
mailfilter [OPTION]... DESCRIPTION
Mailfilter is a very flexible utility to get rid of unwanted spam mails, before having to go through the trouble of downloading them into the local computer. It offers support for one or many POP accounts and is especially useful for dialup connections via modem, ISDN, etc. Mailfilter connects to any POP mail box and compares part of its content to a set of user defined filter rules. That way the spam gets deleted directly on the mail server. With Mailfilter you can define your own filters (rules) to determine which e-mails should be delivered and which are considered waste. Rules are Regular Expressions, so you can make use of familiar options from other mail delivery programs such as procmail(1) for example. RETURN VALUE
The mailfilter program normally returns 0 but -1 if an error occurs. However, if it has been invoked with the return-value command line switch, it gives back a positive integer in case there are messages on the POP server. Empty POP accounts would then result in a return value of 0. Using the switch, mailfilter can be embedded into a shell script more easily. CONFIGURATION
The behaviour of Mailfilter is controlled by command-line options and a configuration file. The program will not start without it. Example configurations can be looked up in the mailfilterex(5) man page, in the INSTALL document or inside the doc/ directory of the Mailfilter distribution. By default Mailfilter tries to read $HOME/.mailfilterrc to get all its settings from. This is the place where all changes should be made, unless it is explicitly specified otherwise. A comprehensive list of all supported options and keywords can be found in the mailfilterrc(5) man page. OPTIONS
-h, --help Display help information -L, --logfile=FILE Specify logfile location -M, --mailfilterrc=FILE Specify rcfile location -r, --return-value Enable additional return values -t, --test Simulate deletes -i, --ignore-time-stamps Ignore invalid Message-ID time stamps (Do not use unless you know better!) -v, --verbose=LEVEL Specify level of verbosity -V, --version Display version information SEE ALSO
mailfilterrc(5), mailfilterex(5), procmail(1), regex(7) COPYRIGHT
Copyright (C) 2000-2012 Andreas Bauer <baueran@gmail.com> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. Mailfilter January 2009 MAILFILTER(1)