From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.96.70.73 with SMTP id k9csp133917qdu; Mon, 25 Nov 2013 10:29:45 -0800 (PST) X-Received: by 10.182.129.42 with SMTP id nt10mr25705454obb.19.1385404184344; Mon, 25 Nov 2013 10:29:44 -0800 (PST) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id n6si29172851oeq.121.2013.11.25.10.29.44 for ; Mon, 25 Nov 2013 10:29:44 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (bad format) header.i=@schmeiser.org Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 096C526309B; Mon, 25 Nov 2013 18:29:45 +0000 (UTC) X-Greylist: delayed 362 seconds by postgrey-1.31 at rubyforge; Mon, 25 Nov 2013 18:29:32 UTC Received: from origin.schmeiser.org (origin.schmeiser.org [50.116.59.107]) by rubyforge.org (Postfix) with ESMTP id 08D96263077 for ; Mon, 25 Nov 2013 18:29:32 +0000 (UTC) Received: from localhost (unknown [138.110.183.194]) by origin.schmeiser.org (Postfix) with ESMTPSA id D064D19811 for ; Mon, 25 Nov 2013 13:23:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schmeiser.org; s=default; t=1385403805; bh=4e45uIAj7WKsf+tJvDmipI/6rtEoKWxB1zuK1VhRxvk=; h=From:To:Subject:In-reply-to:References:Date:From; b=xHilhDBbCjdA/RjxGbs2S4kiAUi+gE70WVSc8H2aJEJRxB4FFWnUZBBJ3zmjK5RZa Gt2a8sLHbm1A6U4IpZrPKc7KD+9D69O3vYBasqYHy6OGHG5InoT2bj9Qs52fxy0EG8 t+2QYpxHOhljGbD0MHSY/Y77mJ5GlMxYEPQaw1Ok= From: Steven Schmeiser To: sup-devel In-reply-to: <1385392376-sup-8491@qwerzila> References: <1385392376-sup-8491@qwerzila> Date: Mon, 25 Nov 2013 13:23:24 -0500 Message-Id: <1385403694-sup-5692@indy.local> User-Agent: Sup/git Subject: Re: [sup-devel] A maildir root source: syncing labels with maildirs (imap folders) X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Hi, I'm very interested in trying out this branch. I don't know the sup internals very well, so I'm having a hard time figuring this out on my own, but what config options need to be changed/set to use maildir-root? I'm currently using marildir-sync. Thanks for all your work on sup! Steve > Hi fellow suppers, > > for a while I have been using a 'maildir-root' source that I created. > It is based on the maildir-syncback code, but goes further: you only > specify a root folder with maildirs to the source, then each sub folder > (maildirsub) is mapped to a label. Some of the labels are special: like > deleted, inbox and archive (the special-label to maildirsub mapping can > be specified in the source configuration). > > This means that a sup label corresponds to maildir inside the > maildir-root and the behavior works like this: > > - (remote to local) if a message is found in a maildirsub that label is added to it. > - (remote to local) if a message is removed from a maildirsub that > label is removed (unless it has just been moved). > - (local to remote) if you add a label the message is written to that > maildirsub (of all the maildir-roots the message belongs to) > - (local to remote) if you remove a label from a message the message is deleted > from that maildirsub. if it is deleted from all maildirsubs it is > copied to the archive maildirsub. > - (local to remote) if you archive a message it is removed from the > inbox maildirsub, if it doesn't belong to any other > labels/maildirsubs it is copied to archive. > - (local to remote / remote to local) the same flag features as > maildir-syncback (done on all copies in all maildirsubs) > - (local to remote) if you add a label to a message and the message > belongs to a maildir-root where no corresponding maildirsub exists a > maildir will be created for it. > > I have been using it for 4-5 months now and it is getting fairly stable. > It works fairly well on gmail (label sync), but I am also using it on > regular IMAP servers (here it might, in the future, be useful to always keep a copy in > archive). > > If you are interested in trying this please have a look at: > https://github.com/gauteh/sup/blob/maildir-root/lib/sup/maildirroot.rb > > or my branch: https://github.com/gauteh/sup/tree/maildir-root, but please > be careful. > > I am using this with offlineimap and utf-7-imap to utf-8 conversion. It > is probably necessary to do a full sync every time to make sure things > stay in sync. Remember that it is technically possible to still do > changes to the maildir while offlineimap is syncing, I haven't had any > problems with this (except read flag), but it is potentially a little > careless. > > > Cheers, Gaute _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel