How to import an mbox to an existing user as a new mailbox

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Mon Aug 3 14:16:34 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 3 Aug 2015, Paul Hoffman wrote:
> 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.

copy project1.mbox to '/path/to/user/mail/storage/Project 1.mbox' and 
make sure, the user has file system rights to access the file at all.

Maybe, you need to add the new mailbox to the user's subscription file, in 
order to have it show up.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVb93wnz1H7kL/d9rAQIsaQf8DMKWBQkIDcpj5T7+c4Fo4hK8CcSllEq3
1bjERFLVDXxMnMzInhwtUjlcoCnjgSI0D7bC4xe6xaO/viXCSFi94H56nGMrApih
0wkD0e3Dd3P44T+C/X1hZl6eAj6PPKETvWt8z00amUrtyhXhpGWggVeqQYob2YyM
qprG3SuYqdsxfDGX5wOUiq0xtkLfQUQl5m60mwOiSnsv7VOCPsUl6y7XSgfb3wKv
CBD23kL6cnsbLmrtqNXxGxD9RAMrTqpKEBRYw6Tj8K1xRJxbC7ysblDXK6S9ZqCi
gjIs4m7pll8Ap8I45xXBD6gEZFfUy7qfhSWzkom073KivesGgh5MSw==
=BbrX
-----END PGP SIGNATURE-----


More information about the dovecot mailing list