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
pop3browser(1)															    pop3browser(1)

NAME
pop3browser -- small perl script to access POP3 mail accounts DESCRIPTION
pop3browser is a perl script that uses libnet-perl to give access to POP3 mail accounts without fetching the messages. pop3browser can be used to delete unwanted mails (SPAM), especially when they come with large attachments, before downloading them over low-bandwidth connections. The --limit option of fetchmail is very useful to filter such large mails which can then be inspected with pop3browser. The program supports normal POP3 authentication and APOP. USAGE
pop3browser welcomes you with a short copyright note and a command line prompt. The settings for a mailbox (host, password etc.) have to be specified in a configuration file (similar to fetchmail). pop3browser understands the following commands: hosts list available hosts specified in .pop3browserrc login n log into host no. n, use 'hosts' to get a list of available hosts o(pen) n same as login apop n same as login but uses APOP c(lose) delete messages marked for deletion and close current connection list list sizes and message numbers of the mails on the account s(how) n show header and some body lines of mail number n m(ailbox) list message number, size, sender and subject for each mail d(elete) n delete mail number n undel(ete) n undelete mail number n k(ill) expr delete mails matching expr in header u(nkill) expr undelete mails matching expr in header q(uit) delete messages marked for deletion and quit program exit same as quit help print a command summary CONFIG FILE
The definitions for a mailbox are specified in ~/.pop3browserrc. One line per mailbox. Lines starting with # are ignored. Each definition must be in the following form:.br hostname <tab or space> userid <tab or space> password <tab or space> protocol (optional) For example: #definition for bar@pop.foo.com #pop-server UID passwd protocol pop.foo.com bar s3cr3t apop #end of definition Recognised options for the protocol are pop3 and apop. If no protocol is specified the command login/open assumes pop3. The command apop ignores the protocol option. To override the default header-filter of the show command you can specify a custom set of keywords in ~/.pop3browserrc. Lines starting with "@headpattern" or "@bodylines" are parsed by pop3browser. Settings for the header-filter must be in the following form: @headpattern <tab or space> = <tab or space> "<keyword1>","<keyword2>",.... The filter keywords are matched against the start of a header line. Settings for the number of body lines to show, have to be in the following form: @bodylines <tab or space> = <tab or space> <Number> Example: @headpatterns = "From:","To:","Subject:","Date:","CC" @bodylines = 10 The file ~/.pop3browserrc must only be readable for the owning user. pop3browser corrects other file modes automatically. SEE ALSO
fetchmail(1) AUTHOR
Christoph Baumann <cgb@debian.org> THANKS
Jorrit 'J"o' Fahlke, for his overhaul of the config file parser Takeshi Hamasaki, for the headpattern patch Debian/GNU Linux Nov. 2003 pop3browser(1)