Gabriel Landais | 1 Jun 2008 19:26
Picon
Gravatar

[bug] NoMemoryError on huge mbox

Hi,
 I'm not able to load my Thunderbird mbox into sup. Added my Inbox
mbox with sup-add/sup-config :

-------------------------------------------------
[glandais <at> server:~/.mozilla-thunderbird/4v86e51w.default/Mail/pops.codelutin.com]
$ /var/lib/gems/1.8/gems/sup-0.5/bin/sup-config
[Sun Jun 01 19:14:24 +0200 2008] using character set encoding "UTF-8"
[Sun Jun 01 19:14:24 +0200 2008] optional 'chronic' library not found
(run 'gem install chronic' to install)
/var/lib/gems/1.8/gems/highline-1.4.0/lib/highline/system_extensions.rb:125:
warning: Insecure world writable dir /opt/java in PATH, mode 040777
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/crypto.rb:18: warning: Insecure
world writable dir /opt/java in PATH, mode 040777
[Sun Jun 01 19:14:25 +0200 2008] crypto: detected gpg binary in /usr/bin/gpg
Howdy neighbor! This here's sup-config, ready to help you jack in to
the next generation of digital cyberspace: the text-based email
program. Get ready to be the envy of everyone in your internets
with your amazing keyboarding skills! Jump from email to email with
nary a click of the mouse!

Just answer these simple questions and you'll be on your way.

What's your name? (enter for "Gabriel Landais"):
What's your (primary) email address? (enter for "glandais <at> codelutin.com"):
Ok, your header will look like this:
  From: Gabriel Landais <glandais <at> codelutin.com>

Do you have any alternate email addresses that also receive email?
If so, enter them now, separated by spaces.
(Continue reading)

William Morgan | 3 Jun 2008 04:18

Re: [PATCH] sup color customization

Hi Lionel,

This looks great. But I think the patch was corrupted, somewhere around
these lines. Can you please resend?

Reformatted excerpts from Lionel Ott's message of 2008-05-25:
> +    :starred_patina => { :fg => "yellow", :bg => "green", :attrs => ["bold"] },
> +    :alternate_starrte_colormap
>    end
>  
>    def add sym, fg, bg, attr=nil, opts={}
>  <at>  <at>  -108,6 +149,43  <at>  <at>  class Colormap
--

-- 
William <wmorgan-sup <at> masanjin.net>
William Morgan | 3 Jun 2008 04:34

Re: [bug] NoMemoryError on huge mbox

Reformatted excerpts from Gabriel Landais's message of 2008-06-01:
>  I'm not able to load my Thunderbird mbox into sup. Added my Inbox
> mbox with sup-add/sup-config :

Interesting. This error seems to occur during a string construction.
Others have reported weird problems with Thunderbird mbox files before,
and I now suspect there's something screwy about their mbox format.
Like, they use \r instead of \n for linebreaks. Which wouldn't make any
fucking sense at all, but who knows.

Can you post the output of a 

  ruby -e 'p File.open("Inbox").read(1000)'

so we can take a look at what these guys are doing? (Or whatever
Thunderbird file you want instead of "Inbox".)

Thanks!
--

-- 
William <wmorgan-sup <at> masanjin.net>
Lionel Ott | 3 Jun 2008 09:30
Picon
Picon

Re: [PATCH] sup color customization

Excerpts from William Morgan's message of Tue Jun 03 04:18:42 +0200 2008:
> This looks great. But I think the patch was corrupted, somewhere around
> these lines. Can you please resend?
> 
> Reformatted excerpts from Lionel Ott's message of 2008-05-25:
> > +    :starred_patina => { :fg => "yellow", :bg => "green", :attrs => ["bold"] },
> > +    :alternate_starrte_colormap
> >    end
> >  
> >    def add sym, fg, bg, attr=nil, opts={}
> >  <at>  <at>  -108,6 +149,43  <at>  <at>  class Colormap

Sure I'll attach it this time hopefully it won't break this way.
Attachment (0001-sup-color-customization.patch): application/octet-stream, 9 KiB
_______________________________________________
sup-talk mailing list
sup-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
Gabriel Landais | 3 Jun 2008 10:09
Picon
Gravatar

Re: [bug] NoMemoryError on huge mbox

On Tue, Jun 3, 2008 at 4:34 AM, William Morgan <wmorgan-sup <at> masanjin.net> wrote:
> Reformatted excerpts from Gabriel Landais's message of 2008-06-01:
>>  I'm not able to load my Thunderbird mbox into sup. Added my Inbox
>> mbox with sup-add/sup-config :
>
> Interesting. This error seems to occur during a string construction.
> Others have reported weird problems with Thunderbird mbox files before,
> and I now suspect there's something screwy about their mbox format.
> Like, they use \r instead of \n for linebreaks. Which wouldn't make any
> fucking sense at all, but who knows.
>
> Can you post the output of a
>
>  ruby -e 'p File.open("Inbox").read(1000)'
>
> so we can take a look at what these guys are doing? (Or whatever
> Thunderbird file you want instead of "Inbox".)
>

Here it is (for 10, same thing for 100 000!) :

[glandais <at> server:~/.mozilla-thunderbird/4v86e51w.default/Mail/pops.codelutin.com]
$ ruby -e 'p File.open("Inbox").read(10)'
"\000\000\000\000\000\000\000\000\000\000"

Perhaps I just shouldn't use that mbox. I never understood how
messages are saved in these directories. My folder looks like that :

[glandais <at> server:~/.mozilla-thunderbird/4v86e51w.default/Mail] $ durep
[ /home/glandais/.mozilla-thunderbird/4v86e51w.default/Mail/  520.3M ]
(Continue reading)

Benjamin Kircher | 3 Jun 2008 13:05
Picon
Gravatar

Sup won't start after upgrade to ruby 1.8.7

Hi there,


got an exception, which is attached. I'm running the git master branch on a Debian sid box. Today ruby and libncurses5 got updated and Sup won't start anymore.

Please let me know if I can provide more information.


Benjamin


--- ArgumentError from thread: main
wrong number of arguments (2 for 1)
/home/benjamin/projects/sup/lib/sup/index.rb:422:in `respond_to?'
/home/benjamin/projects/sup/lib/sup/index.rb:422:in `flatten'
/home/benjamin/projects/sup/lib/sup/index.rb:422:in `load_sources'
/home/benjamin/projects/sup/lib/sup/index.rb:108:in `load'
/home/benjamin/projects/sup/lib/sup/util.rb:497:in `send'
/home/benjamin/projects/sup/lib/sup/util.rb:497:in `method_missing'
/home/benjamin/projects/sup/bin/sup:122
_______________________________________________
sup-talk mailing list
sup-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
Ben Walton | 4 Jun 2008 02:39
Picon
Gravatar

Re: [PATCH] maildir speedups

Ok, I took Grant's suggestion and just dropped the cleanup of the id
-> filename mapping hash.

-Ben
--

-- 
---------------------------------------------------------------------------------------------------------------------------
Ben Walton <bdwalton <at> gmail.com>

When one person suffers from a delusion, it is called insanity. When
many people suffer from a delusion it is called Religion.
Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance

---------------------------------------------------------------------------------------------------------------------------
_______________________________________________
sup-talk mailing list
sup-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
William Morgan | 4 Jun 2008 04:27

Re: [PATCH] sup color customization

Reformatted excerpts from Lionel Ott's message of 2008-06-03:
> Sure I'll attach it this time hopefully it won't break this way.

Ok great. I've merged this into next. I tweaked it a little bit. In
particular:

1. I removed top-level "colors:" from colors.yaml.
2. Single attributes can now be specified in one line without the array
   syntax.

So the following is a valid ~/.sup/colors.yaml:

  :label:
    :fg: green
    :bg: black
    :attrs: bold

Enjoy!
--

-- 
William <wmorgan-sup <at> masanjin.net>
William Morgan | 4 Jun 2008 04:42

Re: [bug] NoMemoryError on huge mbox

Reformatted excerpts from Gabriel Landais's message of 2008-06-03:
> Here it is (for 10, same thing for 100 000!) :
> 
> [glandais <at> server:~/.mozilla-thunderbird/4v86e51w.default/Mail/pops.codelutin.com
> ]
> $ ruby -e 'p File.open("Inbox").read(10)'
> "\000\000\000\000\000\000\000\000\000\000"

Ok, well, you can't really fault Sup for that one! It's just reading
until it gets a newline. :)

Still, why would Thunderbird produce a file full of zeros?

> Perhaps I just shouldn't use that mbox. I never understood how
> messages are saved in these directories.

Here's what the Thunderbird FAQ claims:

  Your mail files are inside your profile (see the Profile Folder), in
  the Mail and (if you use IMAP) ImapMail folders. Each mail folder
  (Inbox, Sent, etc.) is stored as two files — one with no extension
  (e.g. INBOX), which is the mail file itself (in "mbox" format), and
  one with an .msf extension (e.g. INBOX.msf), which is the index (Mail
  Summary File) to the mail file. Tell the other program to import mail
  from the file with no extension.

  http://www.mozilla.org/support/thunderbird/faq

Which implies to me that Inbox was the correct file. But apparently not.
Are there any other files that look like normal mbox files?
--

-- 
William <wmorgan-sup <at> masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
William Morgan | 4 Jun 2008 04:49

Re: [PATCH] maildir speedups

Reformatted excerpts from Ben Walton's message of 2008-06-03:
> Ok, I took Grant's suggestion and just dropped the cleanup of the id
> -> filename mapping hash.

Merged right in. Thanks!
--

-- 
William <wmorgan-sup <at> masanjin.net>

Gmane