02-25-2013
I remember having the same issue with Solaris 10 SPARC a long time ago. For some reason I now use 'mailx' command not 'mail' to achieve this.
I don't know why 'mail' command doesn't do this but for sure someone on this forum will tell us.
Hope that helps somewhat.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have so many mails in my mailbox and I just cant delete each one individually. Is there a way to clear up every mail in my mail box without having to actually deal with each one separately???? (5 Replies)
Discussion started by: IMPORTANT
5 Replies
2. Shell Programming and Scripting
Hello all,
Can some help me write a small script that when executed will delete all mail in mailx? I am having issues where /var is getting full often due to a lot of mail being stored, I would like to run a script on cron which would delete mail every 2 days, any help is much appreciated. (1 Reply)
Discussion started by: sqloyd
1 Replies
3. Shell Programming and Scripting
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
4. UNIX for Dummies Questions & Answers
The file var/spool/mail/news has grown very large and takes up too much space. Can I delete this without any problem? (3 Replies)
Discussion started by: dennisheazle
3 Replies
5. AIX
We have had an issue where the mail file filled up. Is there a setting in sendmail.cf to automatically remove old emails? Say after 14 days. If not is there any way automatically to delete older mail files?? (1 Reply)
Discussion started by: daveisme
1 Replies
6. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
7. Shell Programming and Scripting
Hello everyone!
i hope u can help me...
i need a script that is able to do:
When a user gets deleted in the ldap DB, the mail folder remains.
How can i move to another location and delete it after a month?
:wall: (2 Replies)
Discussion started by: newbreaker12
2 Replies
8. Linux
Hi,
I'd like to delete emails on one of my Linux boxes using a criteria and I don't really know where to start. Any suggestions?
The emails I'd like to delete have all the following sub-string: checkdefunct.sh.sh
I have more than 187.000 emails and 90% of them I'd like to get rid of.
... (1 Reply)
Discussion started by: fabiogilr
1 Replies
9. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
LEARN ABOUT DEBIAN
pop3browser
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)