Sponsored Content
Full Discussion: Delete Mailbox
Top Forums UNIX for Dummies Questions & Answers Delete Mailbox Post 14770 by thehoghunter on Wednesday 6th of February 2002 09:30:01 AM
Old 02-06-2002
Did you mean mbox or .mbox?

Following from mailx man page:
Incoming mail is stored in a standard file for each user,
called the mailbox for that user. When the mail utilities
are called to read messages, the mailbox is the default
place to find them. As messages are read, they are marked
to be moved to a secondary file for storage, unless specific
action is taken, so that the messages need not be seen
again. This secondary file is called the mbox and is nor-
mally located in the user's HOME directory (see MBOX in
ENVIRONMENT for a description of this file). Messages can
be saved in other secondary files named by the user. Mes-
sages remain in a secondary file until forcibly removed.

( or did you mean mail.rc ?)
After executing the system startup file, the mail utilities
execute the optional personal startup file $HOME/.mailrc,
wherein the user can override the values of the internal
variables as set by the system startup file.

thehoghunter
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Mailbox file format

Does anyone know where can I find information about UNIX mailbox files' organization? I am willing to develop a file-mailbox-compliant mail agent, but for doing so I need that information. (1 Reply)
Discussion started by: exile
1 Replies

2. UNIX for Dummies Questions & Answers

Mailbox Nightmares!

I would like to migrate my current system's mailboxes to mail folders and i'm currently running exim! Anyone help with a new mail server and the migration to the one? (1 Reply)
Discussion started by: enzophite
1 Replies

3. Linux

root mailbox problem

Hi, I have a linux box which works as an smtp server. Past few months I am facing a problem, all the mails which my local lan users send to the outside world, all such mail gets bounced to root's mailbox. Also I have found that the mails which get bounced to the root's mailbox are mostly... (3 Replies)
Discussion started by: RajaRC
3 Replies

4. UNIX for Dummies Questions & Answers

Tell UW-Imap to read /var/mail/mailbox ??

Hi, I've got UW-IMAP installed on Gentoo. I'm using EXIM as the transfer agent. EXIM is working fine (I think)... all incoming mail - external and internal goes to /var/mail/username file. I can verifiy this by reading this file directly with nano. Also, IMAPd is running. It lets me login... (2 Replies)
Discussion started by: d11wtq
2 Replies

5. Shell Programming and Scripting

Extract all attachments from unix mailbox file

Hi guys, I wondering if someone already wrote a script for this, it looks easy for the first shot but I would say it's a bit advanced. I want to extract all my email attachments from /var/mail/username (Unix mail format) + from my local mails (Maildir format) to a directory with the original... (4 Replies)
Discussion started by: raynor
4 Replies

6. Solaris

How can I edit the mailbox manually

I use gmail to POP my account because of the spamfilter. From time to time I receive an error message "Connection timed out: There may be a problem with the settings you added. Ple..." after this I am no longer able to retrieve my mails because of the blocked session: "... (1 Reply)
Discussion started by: rolandk
1 Replies

7. Shell Programming and Scripting

I need delete old mailbox

HI guys, I used my server linux how server to send and receive mails, but my mailbox now are so big and I need delete old mails, I found a program in the web called "expired_mail", but i found some problem with this porgram because delete some files mailbox "big problem" Somebody know... (5 Replies)
Discussion started by: jcordova
5 Replies

8. HP-UX

email mailbox output -

this was handy for me. stout goes to mail here. #mailbox pgm=mailbox USER1=`eval whoami` ... (2 Replies)
Discussion started by: Bill L.
2 Replies

9. UNIX for Advanced & Expert Users

Mailbox server performance issue

Hi. my company's mailbox server has severe performance issue on the days while full backup is running. There is huge I/O in another "mail replication process" for standby servers ( which runs all the time, every 15 mins. ). specs of servers :- RHEL5.5 , kernel -2.6.18-53.1.6.el5 , 8 core... (6 Replies)
Discussion started by: gauravsharma29
6 Replies

10. UNIX for Dummies Questions & Answers

Can't POP the mails off the server, the mailbox is corrupt!

First, please forgive me for my 2nd attempt to post in a Forum! And btw, the Code Tags tutorial has the fonts and the sizes, but when I am editing my post none of those fonts and sizes are not there! SCO OpenServer(TM) Release 5 (worf.xxx.com) Worf is our proxy & POP Server, and it... (7 Replies)
Discussion started by: Nancy L
7 Replies
binmail(1)						      General Commands Manual							binmail(1)

Name
       binmail - send or receive mail among users

Syntax
       /bin/mail [+] [-i] [person...]
       /bin/mail [+] [-i] -f file

Description
       This  is the old version 7 UNIX system mail program.  The default command is described in and its binary is in the directory The program is
       still used to actually deliver a mail message into the users system-wide mailbox ( ), however, the  reading  of	these  messages  has  been
       replaced with the program Do not remove from your system.

       The  command  with  no argument prints a user's mail, message-by-message, in last-in, first-out order; the optional argument + displays the
       mail messages in first-in, first-out order.  For each message, it reads a line from the standard input to direct  the  disposition  of  the
       message.

       Issue the following commands from the program prompt:

       <CR>		   Go on to next message

       d		   Delete message and go on to the next.

       p		   Print message again.

       -		   Go back to previous message.

       s [file...]	   Save the message in the named files (`mbox' default).

       w [file...]	   Save the message, without a header, in the named files (`mbox' default).

       m [person...]	   Mail the message to the named persons (yourself is default).

       EOT (control-D)	   Put unexamined mail back in the mailbox and stop.

       q		   Same as EOT.

       !command 	   Escape to the Shell to do command.

       *		   Print a command summary.

       An interrupt normally terminates the command; the mail file is unchanged.

       When  persons  are  named, takes the standard input up to an end-of-file (or a line with just `.')  and adds it to each person's mail file.
       The message is preceded by the sender's name and a postmark.  Lines that look like postmarks are prepended with `>'.  A person is usually a
       user  name  recognized  by  To  denote  a recipient on a remote system, prefix person by the system name and exclamation mark.  For further
       information, see

       The program sends a message to the screen that there is mail when the user logs in.

       When is used to deliver mail, (usually calls to do this), a mailbox is created for the user in the directory if it doesn't  already  exist.
       The mailbox is created with the mode 700 so that only its owner can access it.  In addition, the directory has the mode 777 with the sticky
       bit set.  The mode is 777 so that other mail programs, notably can create the appropriate lock files to prevent another process from  writ-
       ing to the mailbox at the same time.  The sticky bit set on the directory prevents one user from unlinking another user's mailbox.

Options
       -f		   Displays mail messages contained in the specified file (next argument) in place of your mailbox file.

       -i		   Notifies mail to continue after interrupts.

Restrictions
       Race conditions sometimes result in a failure to remove a lock file.

Files
       /etc/passwd	      to identify sender and locate persons
       /usr/spool/mail/*      incoming mail for user *
       mbox		      saved mail
       /tmp/ma* 	      temp file
       /usr/spool/mail/*.lock lock for mail directory
       dead.letter	      unmailable text

See Also
       mail(1), uucp(1c), uux(1c), write(1), sendmail(8)

																	binmail(1)
All times are GMT -4. The time now is 02:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy