From: Florian Unglaub <f.unglaub@googlemail.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: [sup-talk] Sup + offlineimap + Gmail
Date: Wed, 18 May 2011 09:44:25 +0200 [thread overview]
Message-ID: <1305704218-sup-213@btmwxn> (raw)
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
next reply other threads:[~2011-05-18 7:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-18 7:44 Florian Unglaub [this message]
2011-05-18 7:59 ` Damien Leone
2011-05-19 21:17 ` Florian Unglaub
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1305704218-sup-213@btmwxn \
--to=f.unglaub@googlemail.com \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox