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

2015-08-02 Thread Steffen Kaiser

-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-


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

2015-08-02 Thread Paul Hoffman
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


Re: Dovecot/Pigeonhole Issue (UTC modtime instead of localtime)

2015-08-02 Thread Christoph Gröver

Hallo Stephan,
> 
> Hmm. Probably, the timezone configuration (i.e. the contents of TZ 
> timezone environment variable) somehow doesn't reach the final stages of 
> e-mail delivery.

I investigated further.

I just did a telnet into the server and discoverered that dovecot knows the
localtime. If I ask for the INTERNALDATE of a message the 2 hour offset of
CEST is actually in the response:

a fetch 166 INTERNALDATE
* 166 FETCH (INTERNALDATE "02-Aug-2015 20:18:21 +0200")
a OK Fetch completed (0.000 secs).

See? The message above actually  arrived at the server at 22:18 localtime.
The Date-Header is set accordingly.

The file modtime is being set to 20:18 of that day (for whatever reason).
So the server responds with that time and adds the correct TZ offset (2
hours). So my assumption is that dovecot knows that we are at CEST (+0200).

It's a maildir storage and the mails are received by netqmail-1.06.
The last dovecot which we were using was version 2.2.14.

With this version and system init and Mandriva 2010.2 we didn't have this
kind of problem.
I'd really like to understand this because some apple clients are having huge
problems with the hours old INTERNALDATE.


Thank you for your time.

Greetings

-- 
Christoph Gröver