On Wed 11/May/2016 18:04:46 +0200 Gordon Messmer wrote:
> On 05/11/2016 03:46 AM, MK wrote:
>> What are my options here?
> 
> 
> The one I'd recommend is: Set up the IMAP account on each client.  
> Create a folder structure on the IMAP server that matches the client.  
> Copy the content of each folder from the old, local folders into the new 
> IMAP folders.

Let me add that those operations --except creating IMAP accounts-- can be done
by users using their clients.  The advantage is that they won't have to delete
spam from already vetted local archives.  And two copies are better than one.
However, if they have slow connections, copying can get lengthy.

If you need to do that on the server, for some reason, you have to parse
archived message's header to learn whether they were incoming or outgoing.  Use
dependable, time-honored parsing functions.  If you used fancy delivery recipes
which changed during the time, you're out of luck.  Otherwise, it should be
straightforward to determine whose .Sent and INBOX folders each message has to
be copied to.  You can try and keep Courier's filenames: Since they embed a
timestamp and an inode number, they are likely to be unique.  See
http://www.courier-mta.org/layout.html

IME it is convenient to subdivide archives by year, for example .Sent,
.Sent.sent-2015, .Sent.sent-2014, ... and similarly for old mail.  YMMV

hth
Ale
-- 

























------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to