man mb2md (Commandes) - Converts Mbox mailboxes to Maildir format.
NAME
mb2md - Converts Mbox mailboxes to Maildir format.
SYNOPSIS
mb2md [-h]
mb2md [-m] [-d destdir]
mb2md [-s sourcedir -R|-f somefolder -d destdir -r strip_extension]
DESCRIPTION
This manual page documents briefly the mb2md.
mb2md Converts Mbox mailboxes to Maildir format.
OPTIONS
- -h
- Show summary of options.
- -m
- If this is used then the source will be the single mailbox at /var/spool/mail/blah for user blah and the destination mailbox will be the "destdir" mailbox itself.
- -s sourcedir
- Directory, relative to the user's home directory, which is where the the "somefolders" directories are located. Or if directory starts with a "/" it is taken as a absolute path, e.g. /mnt/oldmail/user _OR_ A single mbox file which will be converted to the destdir.
- -R
- If defined, do not skip directories found in a mailbox directory, but runs recursively into each of them, creating all wanted folders in Maildir.
- Incompatible with '-f'
- -f somefolder
- Directories, relative to "sourcedir" where the Mbox files are. All mailboxes in the "sourcedir" directory will be converted and placed in the "destdir" directory. (Typically the Inbox directory which in this instance is also functioning as a folder for other mailboxes.)
- The "somefolder" directory name will be encoded into the new mailboxes' names. See the examples below.
- This does not save an UW IMAP dummy message file at the start of the Mbox file. Small changes in the code could adapt it for looking for other distinctive patterns of dummy messages too.
- Don't let the source directory you give as "somefolders" contain any "."s in its name, unless you want to create subfolders from the IMAP user's point of view. See the example below.
- Incompatible with '-R'
- -d destdir
- Directory where the Maildir format directories will be created. If not given, then the destination will be ~/Maildir . Typically, this is what the IMAP server sees as the Inbox and the folder for all user mailboxes. If this begins with a '/' the path is considered to be absolute, otherwise it is relative to the users home directory.
- -r strip_extension
- If defined this extension will be stripped from the original mailbox file name before creating the corresponding maildir. The extension must be given without the leading dot ("."). See the example below.
USAGE
Please read the USAGE documentation (zless /usr/share/doc/mb2md/USAGE.gz).
AUTHOR
This manual page was written by Noèl Köthe noel@debian.org for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.