Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Sup + offlineimap + Gmail
@ 2011-05-18  7:44 Florian Unglaub
  2011-05-18  7:59 ` Damien Leone
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Unglaub @ 2011-05-18  7:44 UTC (permalink / raw)
  To: sup-talk

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup-talk] Sup + offlineimap + Gmail
  2011-05-18  7:44 [sup-talk] Sup + offlineimap + Gmail Florian Unglaub
@ 2011-05-18  7:59 ` Damien Leone
  2011-05-19 21:17   ` Florian Unglaub
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Leone @ 2011-05-18  7:59 UTC (permalink / raw)
  To: sup-talk

Hello,

Are you sure that reading a e-mail from sup marks it as read in Gmail
after having executed offlineimap? Because this should not work,
apparently you are using sup 0.12.1 which does not support backward
synchronization. [0]

And by the way, starring a message in sup should update the 'F'
(flagged) flag not the 'S' (seen) flag.

Cheers,

[0] http://www.mail-archive.com/sup-devel@rubyforge.org/msg00983.html

Excerpts from Florian Unglaub's message of mer. mai 18 09:44:25 +0200 2011:
> 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

-- 
Damien Leone <damien.leone@fensalir.fr>

GPG: 0x82EB4DDF
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup-talk] Sup + offlineimap + Gmail
  2011-05-18  7:59 ` Damien Leone
@ 2011-05-19 21:17   ` Florian Unglaub
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Unglaub @ 2011-05-19 21:17 UTC (permalink / raw)
  To: sup-talk

Excerpts from Damien Leone's message of 2011-05-18 09:59:43 +0200:
> Hello,
> 
> Are you sure that reading a e-mail from sup marks it as read in Gmail
> after having executed offlineimap? Because this should not work,
> apparently you are using sup 0.12.1 which does not support backward
> synchronization. [0]

You are right. It doesn't sync back at all. I will try to figure out
how to achieve this with the git version.

Regards,
Florian.
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-19 21:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18  7:44 [sup-talk] Sup + offlineimap + Gmail Florian Unglaub
2011-05-18  7:59 ` Damien Leone
2011-05-19 21:17   ` Florian Unglaub

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox