Subject: Re: [sup-talk] No imap support in sup-config

From: Ben Walton <[email-masked]>
Date: Sun, 11 Jul 2010 20:00:50 -0400

Excerpts from David Rysdam's message of Sun Jul 11 18:37:59 -0400 2010:

> Wellllll.....what if I were moving from imap to offlineimap?  Then
> wouldn't the messages be staying on the server?  I shouldn't have to
> delete them, I wouldn't think.

Right, but sup relies heavily on the association between message and
source.  When you add the mail to a Maildir and then sync that source,
you'd be adding a duplicate copy to the index.  I don't think this
would be good for your use of sup.  Again though, I'm talking about
things I haven't done and I'm not (at all) familiar with the code
handling the indexing.

Thanks
-Ben

--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: David Rysdam <[email-masked]>
Date: Sun, 11 Jul 2010 11:40:31 -0400

Excerpts from Ben Walton's message of Sun Jul 11 08:20:53 -0400 2010:
> Excerpts from Michał Kawalec's message of Sun Jul 11 08:03:47 -0400 2010:
> 
> Hi Michal,
> 
> > I recently installed sup with gem install sup, however a lack of
> > imap while doing sup-config prevents me from using it to more
> > serious tasks than looking on different buffers. Is there any way to
> > fix it?
> 
> IMAP support in sup is deprecated.  It just didn't work well with the
> way sup wants to view the mail stores.  People that have mail
> available by IMAP are using offlineimap to retrieve it locally to
> Maildir's and then adding Maildir sources to sup.

Heh, I was just coming here to ask about something related.

I noticed the IMAP support was gone, which is sad, but OK.  So I set
up getmail to get my mail.  But how do I migrate to that?

I got the mail into a maildir and I added that as a source and I did a
sup-sync --changed source1 source2.  But how do I remove the IMAP
source?  Just removing it from sources.yaml makes sup crash.  (This is
0.10.2.)  I see something in the wiki about removing index entries,
but the instructions are for ferret instead of xapian.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: David Rysdam <[email-masked]>
Date: Wed, 21 Jul 2010 14:33:35 -0400

> but the instructions are for ferret instead of xapian.

OK, so I figured out what to do.

1) Backup (or maybe "export" would be a better term for this usage)
your sup index.

2) Set up your offlineimap stuff.

3) Move .sup aside and sup-config again, but choose the Maildir that
offlineimap is writing to.

3b) Copy any config stuff (colors, hooks, contacts.txt, etc) from the
old .sup back in.

4) Restore the backup.

Ta-da!

---

From: David Rysdam <[email-masked]>
Date: Sun, 11 Jul 2010 18:37:59 -0400

Excerpts from Ben Walton's message of Sun Jul 11 16:45:42 -0400 2010:
> Excerpts from David Rysdam's message of Sun Jul 11 11:40:31 -0400 2010:
> 
> > I got the mail into a maildir and I added that as a source and I did
> > a sup-sync --changed source1 source2.  But how do I remove the IMAP
> > source?  Just removing it from sources.yaml makes sup crash.  (This
> > is 0.10.2.)  I see something in the wiki about removing index
> > entries, but the instructions are for ferret instead of xapian.
> 
> I _think_ you'd need to do a sup-sync-back with a sup that supports
> IMAP still after removing the mail from the IMAP source.  When the
> index is in such a state where no messages reference the source id for
> the imap source, you should then be able to yank.

---

From: Philipp Überbacher <[email-masked]>
Date: Sun, 11 Jul 2010 14:18:23 +0200

Excerpts from Michał Kawalec's message of 2010-07-11 14:03:47 +0200:
> Hello,
> I recently installed sup with gem install sup, however a lack of imap 
> while doing sup-config prevents me from using it to more serious tasks 
> than looking on different buffers. Is there any way to fix it?
> 
> Best Regards,
> Michal

Something like offlineimap is recommended.
-- 
Regards,
Philipp

--
"Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan

---

From: Ben Walton <[email-masked]>
Date: Sun, 11 Jul 2010 08:20:53 -0400

Hi Michal,

There is a recent thread on this list about making this handling work
better so that you can have other mail clients in use with the sources
too, but that's experimental still.

HTH.
-Ben

---

From: Michał Kawalec <[email-masked]>
Date: Sun, 11 Jul 2010 14:03:47 +0200

Hello,

Best Regards,
Michal

---

From: Ben Walton <[email-masked]>
Date: Sun, 11 Jul 2010 16:45:42 -0400

I've never need to do anything like this though, so hopefully others
will chime in with advice.

Thanks
-Ben

---

From: Michał Kawalec <[email-masked]>
Date: Sun, 11 Jul 2010 15:02:26 +0200

> too, but that's experimental still.
Hi Ben,

Thank you for the fast answer. I'll try doing it this way then.

Best Regards,
Michal