Version 4 (modified by Dana, 8 years ago) (diff)



This command moves emails out of user inbox and into an archived mailbox, leaving 1000 emails in the inbox by default. It must be run as the designated user not as root.

servername:~# su - username

To view Maildir use:

username@servername:~$ ls -a Maildir/

Optionally you can run the command such that it leaves a different number of emails in the in box with this syntax:

# MF_MAX_MESSAGES=2000 mf-split-mailbox

Where 2000 above is the number of emails to leave in the inbox.