[plug] moving mail in postfix

Adrian Chadd adrian at creative.net.au
Fri Apr 17 11:15:14 WST 2009

If you have mutt installed, you can do something like this as root?

mutt -f /var/mail/username <- opens mail
T (tag messages matching)
* (ie, tag all)
; s (all tagged messages, save to)

it should append the messages to the new mailbox with correct(!) locking
for mbox files.

Backup first though!

On Fri, Apr 17, 2009, Jon L. Miller wrote:
> We have a mailbox that has mail in /var/mail/username that we would like
> to move to another user.  Is there a way to move this file (username) to
> another? Is this some sort of copy command to append the file to the new
> user?  I'm using aliase to redirect any new mail, but currently we want to
> see the old mail mail.
> -- 
> Regards,
> -----------------------------
> Jon L. Miller MCNE CNE CCNA
> East Perth, WA 6004
> WA, Australia
> --------------------------------
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au

- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -

More information about the plug mailing list