Paul Hoffman
2015-Aug-03 01:07 UTC
How to import an mbox to an existing user as a new mailbox
Greetings. I have a bunch of mbox files that I want to import to an existing user, each into a new mailbox. That is, I want to import the file project1.mbox to user Foo, into a newly-created mailbox called "Project 1". Is there a dovecot tool to do this on the server? --Paul Hoffman
Steffen Kaiser
2015-Aug-03 06:27 UTC
How to import an mbox to an existing user as a new mailbox
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 2 Aug 2015, Paul Hoffman wrote:> Greetings. I have a bunch of mbox files that I want to import to an existing > user, each into a new mailbox. That is, I want to import the file > project1.mbox to user Foo, into a newly-created mailbox called "Project 1". > Is there a dovecot tool to do this on the server?do you have access to the file system of the mail storage? Can you call doveadm on the server? What mail storage do you use now, Maildir, mbox, ... ? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVb8Jt3z1H7kL/d9rAQKCrAf9Em6faGXb0KFHcYp/kuf449P/Dxbinw4x 8aZKalHoarJzmPszQGWWqDxadaaKD0m61aCMWZ2ZM+FQrzPBA5nD/4ipRVtY9UZm hPXhnZ6ZDuMPosz9nNJlvqno6o17d4R8Gjf4EBjV1hva0cQr48FQv4d9K8bHCT/c 11WspPnT4EA0zYL3omygkA77d/8EUhxxp2Ju2eQ7ZVPH2UJUj2Ojfn4+NovqmqZs YYvIjzgDC+1B3+kvCgOm6o737XL1urozp3Rj1ccJ5zaB6dMkhUpbR172EHhZ4tM1 th1D0FsI1M7NawIsGsFmcl4m/ecH0oMv/voCU0IRLtWMjFXqWqCuew==OutZ -----END PGP SIGNATURE-----
Paul Hoffman
2015-Aug-03 13:56 UTC
How to import an mbox to an existing user as a new mailbox
On 2 Aug 2015, at 23:27, Steffen Kaiser wrote:> On Sun, 2 Aug 2015, Paul Hoffman wrote: > >> Greetings. I have a bunch of mbox files that I want to import to an >> existing user, each into a new mailbox. That is, I want to import the >> file project1.mbox to user Foo, into a newly-created mailbox called >> "Project 1". Is there a dovecot tool to do this on the server? > > do you have access to the file system of the mail storage? Can you > call doveadm on the server? What mail storage do you use now, Maildir, > mbox, ... ?Sorry for being unclear earlier. Yes, yes, mbox. So, I take it this is a doveadm command. :-) Will this be just "import", or a combination of "mailbox" and "import"? --Paul Hoffman