From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.142.241.17 with SMTP id o17cs39856wfh; Wed, 18 May 2011 00:44:51 -0700 (PDT) Received: by 10.52.37.136 with SMTP id y8mr2205761vdj.174.1305704690731; Wed, 18 May 2011 00:44:50 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id x37si927333vcr.107.2011.05.18.00.44.50; Wed, 18 May 2011 00:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@googlemail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 46BD13C8083; Wed, 18 May 2011 03:44:50 -0400 (EDT) Received: from mail-fx0-f50.google.com (mail-fx0-f50.google.com [209.85.161.50]) by rubyforge.org (Postfix) with ESMTP id 62CC918581B2 for ; Wed, 18 May 2011 03:44:28 -0400 (EDT) Received: by fxm16 with SMTP id 16so1079194fxm.23 for ; Wed, 18 May 2011 00:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:from:to:subject:date:message-id :user-agent:content-transfer-encoding; bh=bkV50mQyG2VDvJERaPwC19m2eKwY4ArxfWjfGgAvF8Q=; b=FF0ZuHqDOneAVjxY8sr7XTYx1hBIQgOuXNXjlmJyB0fWsgODRkNc9ERdFurMA5NvAf VbeWNOmJrHOiVqwkBu6RKMuGX3CvkRBY8jyiL0sjfPJBUGcTM2KnkjaAWPUXTU9KRrQQ 5M6qTQkeSd5/ouEicQKX0L/nG1cgvwypKieDM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:from:to:subject:date:message-id:user-agent :content-transfer-encoding; b=BCZU/blE8j6kB4tPXHof+aNC1yAYx/uMe9Qn2XiqCXH8iG91J+7BXa+qt8wUMeOrOM 1uxDCMoypA2JTsblyhLILSF2MPAhjRzGsd07XbHaoiaXcNvxNmSpTX3i1+ZV0tIlgVpW Al9lQbI21xgcm4KH+jVaLE/B9d1mMMYYlpqBI= Received: by 10.223.13.10 with SMTP id z10mr1961970faz.69.1305704667810; Wed, 18 May 2011 00:44:27 -0700 (PDT) Received: from localhost (btmwxn.mat.uni-bayreuth.de [132.180.176.174]) by mx.google.com with ESMTPS id 9sm489930fat.15.2011.05.18.00.44.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2011 00:44:26 -0700 (PDT) From: Florian Unglaub To: sup-talk Date: Wed, 18 May 2011 09:44:25 +0200 Message-Id: <1305704218-sup-213@btmwxn> User-Agent: Sup/0.12.1 Subject: [sup-talk] Sup + offlineimap + Gmail X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup 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-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Hey guys, I approaching an almost ideal setup for a good gmail integration into sup using offlineimap. My offlineimap setup pulls all Gmail folders (aka Gmail labels) into seperate maildirs. I found a nice startup-hook for sup to add sources dynamicly: Dir[ENV['HOME']+'/.maildir/gmail/*'].map do |d| uri = "maildir:"+d log "Processing source #{uri}" unless SourceManager.source_for uri source = Maildir.new uri, true, false, nil, [LabelManager.label_for(File.basename(d))] SourceManager.add_source source log "Added source #{d}" end end This snippet of code checks for any directories in $HOME/.maildir/gmail and adds them as a new source with the corresponding label. This allows me to make changes in the gmail web interface which will be reflected in sup. Now there's a small issue I encountered today. If I star a message in Sup, offlineimap claims that it adds the 'S' flag to that message, but this won't be synced to Gmail for some reason. The other direction (star it on my mobile phone or in the web interface) works fine, i.e. the message can be seen in the 'Starred' label in sup. Is there any way to make this work? Regards, Florian _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk