The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Things look quiet here. But I've been doing a lot of blogging at dan.langille.org because I prefer WordPress now. Not all my posts there are FreeBSD related. I am in the midst of migrating The FreeBSD Diary over to WordPress (and you can read about that here). Once the migration is completed, I'll move the FreeBSD posts into the new FreeBSD Diary website.

Forwarding mail in one mailbox to another 6 February 1999
Share
Need more help on this topic? Click here
This article has no comments
Show me similar articles
This article will tell you how to move the mail in one user's mailbox to another user's mailbox.  The mailboxes are assumed to be on the same machine.  This procedure will only work once.  It is not an automatic procedure.

If you want mail to be forwarded all the time, or to another mailbox on another mail system, this isn't what you want.

The situation
I had mail sitting in the root mailbox.  That's no good to me there.  I wanted it in my personal mailbox so I could read it from my NT box.  The mail had wound up there after I'd messed up my /etc/aliases file.  Now that I've fixed that problem, I still have three messages sitting in root.
The solution
# cd /var/mail
[root@ns:/var/mail] # cat root >> otherid

Where otherid is the id of the you want to send the data to.

Thanks
My thanks to billg for sending me this solution.  Cheers.
Share
Need more help on this topic? Click here
This article has no comments
Show me similar articles