Subject: [sup-talk] Yet Another Offlineimap Thread (YAOT)

From: [email-masked] (Andrei Thorp)
Date: Mon, 15 Jun 2009 15:44:13 -0400

Hello!

So I decided today to finally jump in and try to use sup for my main
gmail account and not just my work stuff. I've set up offlineimap and
downloaded the mail that I care for. Questions:

 - Does imap support a way to say which mails have been read and not?
I think it probably does. If this is the case, can sup-sync-back
somehow do this? It'd be nice if my gmail understood when a mail has
been read, so when I sync back up with offlineimap, it's all savvy.
 - I vaguely saw some tricks here for how to reply with different
e-mail addresses and stuff. I'd like to execute a whole different
command when replying in some situations, so that my mail gets sent
through gmail's smtp server instead of my work's one, for example. How
would I achieve this?
 - I don't see a daemon mode for offlineimap. I guess the expected
usage is to make it quiet and put it in a cron/regular script? Am I
correct?

Thanks!

-AT

---

From: [email-masked] (Andrei Thorp)
Date: Wed, 17 Jun 2009 11:13:07 -0400

Anyway, so.

I set up a loop to run offlineimap on 5 minute intervals. Now, every
so often, sup complains that it's fallen out of sync (I have no other
clients doing anything there, just sup and offlineimap). I can't
imagine why this is happening. Hints?

-AT

---

From: [email-masked] (Ingmar Vanhassel)
Date: Wed, 17 Jun 2009 17:29:36 +0200

> imagine why this is happening. Hints?

Something is changing the state of your IMAP server, offlineimap is
mirroring that, and sup notices.

Are you running any other client (even using gmail.com) on your gmail
IMAP?

-- 
Exherbo KDE, X.org maintainer

---

From: [email-masked] (Andrei Thorp)
Date: Wed, 17 Jun 2009 11:54:44 -0400

> Are you running any other client (even using gmail.com) on your gmail

Ahh, yes, I understand. Well, if you read my original post in this
thread, I've actually not been able to figure out how to get sup to
send via different servers based on different situations (I'd like it
to use different send commands for work / gmail).

And yes, I've been using gmail, silly me.

> ?- Does imap support a way to say which mails have been read and not?
> ?- I vaguely saw some tricks here for how to reply with different
> ?- I don't see a daemon mode for offlineimap. I guess the expected

Cheers,

-AT

---

From: [email-masked] (Andrei Thorp)
Date: Wed, 17 Jun 2009 12:20:30 -0400

Forward.

> to use different send commands for work / gmail).

Yeah, I was try to be lazy ;-)

For using multiple accounts, see
http://sup.rubyforge.org/wiki/wiki.pl?MultipleAccountsAndReply

I use 'msmtp --account=foo -t' myself, since msmtp was incredibly easy
to configure.
- Configure some defaults for all accounts (logging, tls, see `man msmtp`)
- Write a different account section in your msmtprc, then in sup's
?config.yaml, configure those accounts, where the sendmail command to
?run has an --acount=foo parameter, corresponding to an account in your
?msmtprc

Some people use a reply-from hook for dynamically setting from From:
header, you may want to search the archives if that's something you'd
like to use.

---

From: [email-masked] (Andrei Thorp)
Date: Wed, 17 Jun 2009 12:22:47 -0400

> http://sup.rubyforge.org/wiki/wiki.pl?MultipleAccountsAndReply

Perfect! So now just the one issue of sup-sync-back. I guess one
"solution" would be for me to mark things as deleted instead of
archived/read, and I guess sync-back understands this. I don't love
this though. Any other suggestions?

-AT