<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hi.<BR>
<BR>
I'm trying to translate INBOX to INBOX.folder.subfolder so that all mails in the INBOX on one IMAP server get synced to subfolder on another IMAP server. I've managed to include/exclude all the folders I want on both sides but I can quite seem to translate the folder name.<BR>
<BR>
The INBOX on the recipient side is for another mail account so I don't want the mails merged.<BR>
<BR>
This is all I've come up with so far...<BR>
<BR>
nametrans = lambda foldername: re.sub('^INBOX\.', 'INBOX.folder.IN\.', foldername)<BR>
<BR>
Offlineimap isn't complaining with the above but it's not moving mail into the desired folder but rather simply moving mail from INBOX to INBOX which is exactly what I'm trying to avoid.<BR>
<BR>
Thanks,<BR>
Phil 
</BODY>
</HTML>