Subject: Re: [sup-talk] unread status

From: William Morgan <[email-masked]>
Date: Tue, 29 Dec 2009 14:53:54 -0800

Reformatted excerpts from Philipp Überbacher's message of 2009-12-29:
> I hit 'L' 'Enter' and notice that all messages I just read are listed as
> unread. I navigate to unread, read the messages again and hit 'a'. Now
> they aren't marked as unread anymore.

If you press "$" before hitting L, I think the counts will be correct.
An unhappy consequence of using explicit save, combined with the fact
that label-list-mode counts come from the index.

> I experienced something similar when I used the built-in imap support.
> There it wouldn't really Poll when I hit P, new messages only showed up
> after I restarted sup.

That sounds like a bug.
-- 
William <[email-masked]>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Tero Tilus <[email-masked]>
Date: Wed, 30 Dec 2009 01:24:09 +0200

Philipp Überbacher, 2009-12-30 01:12:
> Thanks, this seems to work. What's the reasoning behind explicit save?

I'd assume performance, but (at least with Xapian) it feels like a
non-issue.  I'd like implicit save, or automatic save after every n
operations/seconds with $ to explicitly invoke save if the performance
really is an issue.

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Rich Lane <[email-masked]>
Date: Tue, 29 Dec 2009 18:49:11 -0500

> operations/seconds with $ to explicitly invoke save if the performance

I have a patch that hasn't been merged yet that completely removes the
notion of saving with '$'. It's one of the branches I keep merged in to
the branch I actually use, so I tend to forget it's not upstream. I
should dust it off and resubmit. It will cause a UI-responsiveness
regression for ferret users, but if ferret is going to be deprecated in
the next release then I don't care too much.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Philipp Überbacher <[email-masked]>
Date: Wed, 30 Dec 2009 00:12:13 +0100

---

From: Philipp Überbacher <[email-masked]>
Date: Wed, 30 Dec 2009 00:54:20 +0100

Excerpts from William Morgan's message of Wed Dec 30 00:33:07 +0100 2009:
> An accident of history. Will be gone at some point soon.

Ok, great if there's a good solution for this.

Regards,
Philipp

---

From: Philipp Überbacher <[email-masked]>
Date: Tue, 29 Dec 2009 15:47:53 +0100

Hi,
during the last couple of days I managed to get sup up and running,
using ruby 1.8.7, xapian, msmtp and offlineimap.

Now that I use it I noticed strange behavior regarding unread messages.
It works like this:

New messages in the inbox, I read through them, hitting 'a'.
The messages vanish from the Inbox. So far so good.

Also, when I read them in the inbox and they are still labeled unread
and I restart sup they aren't labeled unread anymore.

Well, expected behavior is to have them labeled read after I read them,
obviously.

Either these are bugs or I don't get how sup works,
either way, help is appreciated.

Regards,
Philipp

---

From: John Bent <[email-masked]>
Date: Tue, 29 Dec 2009 17:32:59 -0700

Excerpts from William Morgan's message of Tue Dec 29 16:54:54 -0700 2009:
> Reformatted excerpts from Rich Lane's message of 2009-12-29:
> > I should dust it off and resubmit. It will cause a UI-responsiveness
> > regression for ferret users, but if ferret is going to be deprecated
> > in the next release then I don't care too much.
> 
> Please do. Encouraging Ferret users to switch is fine. :)
>
I spent a couple of unsuccessful hours last week trying to switch.
Anyway else on an old PPC OS X who has been able to transition?

John

---

From: John Bent <[email-masked]>
Date: Fri, 05 Mar 2010 13:32:17 -0700

Excerpts from John Bent's message of Fri Mar 05 13:00:14 -0700 2010:
> Excerpts from John Bent's message of Fri Mar 05 08:59:42 -0700 2010:
> > Excerpts from William Morgan's message of Sun Jan 03 15:22:25 -0700
> > 2010:
> > > Reformatted excerpts from John Bent's message of 2009-12-29:
> > > Please try sup-convert-ferret-index in git next and report any
> > > problems.
> > >
> > Although, I have xapian-full install, when I run
> > sup-convert-ferret-index, I get this error:
> > 
> > guava:~>sup-convert-ferret-index
> > Error: you don't have the xapian gem installed, so this script won't do
> > much for you--`gem install xapian` (or xapian-full) first.
> > Try --help for help.
> > 
> > I do have xapian-full installed:
> > 
> Also, irb reports that I have xapian installed but I still get the error
> from sup-convert-ferret-index:
> 
> 1) irb says that I have xapian:
>         irb(main):001:0> require 'rubygems'
>         => true
>         irb(main):002:0> require 'xapian'
>         => true
>         irb(main):003:0> quit
> 
> 
> 2) gem list says that I have xapian:
>     *** LOCAL GEMS ***
>     ferret (0.11.6)
>     gettext (2.1.0)
>     highline (1.5.2)
>     locale (2.0.5)
>     lockfile (1.4.3)
>     mime-types (1.16)
>     ncursesw (1.2.4.1)
>     net-ssh (2.0.20)
>     rake (0.8.7)
>     rmail (1.0.0)
>     sup (0.10.2)
>     trollop (1.15)
>     xapian-full (1.1.3.4)
> 
> 3) sup-convert-ferret-index says I don't have xapian:
>     guava:~>sup-convert-ferret-index --verbose
>         Error: you don't have the xapian gem installed, so this script won't do
>         much for you--`gem install xapian` (or xapian-full) first.
>         Try --help for help.
>     guava:~>sup-convert-ferret-index --version
>         sup-convert-ferret-index (sup 0.10.2)
> 
> 4) ruby --version = 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10]
>     I tried port install ruby19 but the build failed:
>         'rb_dl_callback_double_19_0_stdcall' undeclared
> 
I tried commenting out the require xapian in sup-convert-ferret-index
but it still failed:

## Step three: build the Xapian index
/opt/local/lib/ruby/gems/1.8/gems/sup-0.10.2/bin/sup-sync --all
--all-sources --index xapian --restore /tmp/sup-state.txt 
/opt/local/lib/ruby/gems/1.8/gems/sup-0.10.2/lib/sup/index.rb:229:in
`init': unknown index type "xapian":
dlopen(/opt/local/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle,
9): no suitable image found.  Did find: (RuntimeError)
        /opt/local/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle:
mach-o, but wrong architecture -
/opt/local/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle
        from
/opt/local/lib/ruby/gems/1.8/gems/sup-0.10.2/bin/sup-sync:99

Shucks.

John
> Any ideas?
> 
> Thanks,
> 
> John
> 
> > ROOT:guava:/Users/johnbent>gem install xapian-full
> > Building native extensions.  This could take a while...
> > Successfully installed xapian-full-1.1.3.4
> > 1 gem installed
> > Installing ri documentation for xapian-full-1.1.3.4...
> > Installing RDoc documentation for xapian-full-1.1.3.4...
> > 
> > But installing xapian (just itself) fails.  Looks like I'm missing
> > glibc-devel library or something:
> > 
> > /bin/sh ../libtool  --tag=CXX   --mode=link g++ -fno-strict-aliasing
> > -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden
> > -I/opt/local/include -g -O2 -avoid-version -module -shrext ".bundle"
> > -o _xapian.la -rpath /opt/local/lib/ruby/site_ruby/1.8/i686-darwin10
> > xapian_wrap.lo /opt/local/lib/libxapian.la -lstdc++  
> > g++ -shared -nostdlib
> > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../crti.o
> > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/crtbeginS.o  .libs/xapian_wrap.o
> > -Wl,--rpath -Wl,/opt/local/lib -Wl,--rpath -Wl,/opt/local/lib
> > /opt/local/lib/libxapian.dylib -L/opt/local/lib
> > -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.1
> > -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../.. -lstdc++ -lm -lc -lgcc_s
> > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/crtendS.o
> > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../crtn.o  -Wl,-soname
> > -Wl,_xapian.bundle -o .libs/_xapian.bundle
> > i686-apple-darwin10-g++-4.0.1:
> > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../crti.o: No such file or
> > directory
> > i686-apple-darwin10-g++-4.0.1:
> > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/crtbeginS.o: No such file or
> > directory
> > i686-apple-darwin10-g++-4.0.1:
> > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/crtendS.o: No such file or
> > directory
> > i686-apple-darwin10-g++-4.0.1:
> > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../crtn.o: No such file or
> > directory
> > make[4]: *** [_xapian.la] Error 1
> > make[3]: *** [all-recursive] Error 1
> > make[2]: *** [all] Error 2
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all] Error 2
> > extconf.rb:3:in `system!': unhandled exception
> >     from extconf.rb:6
> > 
> > 
> > Thanks, 
> > 
> > John

---

From: John Bent <[email-masked]>
Date: Fri, 05 Mar 2010 13:00:14 -0700

Any ideas?

Thanks,

John

---

From: William Morgan <[email-masked]>
Date: Tue, 29 Dec 2009 15:54:54 -0800

---

From: William Morgan <[email-masked]>
Date: Sun, 03 Jan 2010 14:22:25 -0800

> Anyway else on an old PPC OS X who has been able to transition?

Please try sup-convert-ferret-index in git next and report any problems.
-- 
William <[email-masked]>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: William Morgan <[email-masked]>
Date: Tue, 29 Dec 2009 15:33:07 -0800

---

From: John Bent <[email-masked]>
Date: Fri, 05 Mar 2010 08:59:42 -0700

Thanks, 

John