[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] A maildir root source: syncing labels with maildirs (imap folders)




On Nov 26, 2013, at 10:14, Gaute Hope <eg@gaute.vetsj.com> wrote:

> Excerpts from Steven Schmeiser's message of 2013-11-26 15:43:49 +0100:
>> I've installed the branch and am trying it out.  So far it looks good, but there have been a few oddities...
>> 
>> I'm running with a standard IMAP account (not Gmail).  The root looks like
>> 
>> [steve@indy ~]$ ls -l .mail
>> total 0
>> drwx------  5 steve  staff  170 Nov 19 13:44 Archive
>> drwx------  5 steve  staff  170 Nov 22 12:31 INBOX
>> drwx------  5 steve  staff  170 Nov 19 13:44 drafts
>> drwx------  5 steve  staff  170 Nov 19 13:44 econpapers
>> drwx------  5 steve  staff  170 Nov 19 13:44 sent
>> drwx------  5 steve  staff  170 Nov 19 13:44 spam
>> drwx------  5 steve  staff  170 Nov 25 19:25 trash
>> 
>> and my sources are configured as follows
>> 
>> [steve@indy ~]$ more .sup/sources.yaml
>> ---
>> - !supmua.org,2006-10-01/Redwood/MaildirRoot
>>  uri: maildirroot:///Users/steve/.mail
>>  usual: true
>>  archived: false
>>  id: 1
>>  labels: []
>>  sync_back: true
>>  confirm_enable_experimental: true
>>  maildir_creation_allowed: true
>>  inbox_folder: INBOX
>>  sent_folder: sent
>>  drafts_folder: drafts
>>  spam_folder: spam
>>  trash_folder: trash
>>  archive_folder: Archive
>> - !supmua.org,2006-10-01/Redwood/SentLoader{}
>> 
>> I had around 40k messages in the Archive folder and ~20 in the INBOX. After sup-sync, around 10k of the messages in Archive were moved into sup's inbox with labels 'INBOX' and 'Inbox'.  They were also (incorrectly) marked as unread.
>> 
>> I'll keep experimenting.  Thanks for your effort -- I think this is a great new feature and would really like to see it merged into the mainline someday.
> 
> Ok, there are likely to be a few more of the oddities - you are brave :)
> 
> Please set the environment variable: SUP_LOG_LEVEL=debug and try to
> start sup, it would be interesting to see how the maildirsubs are
> initialized (the startup section from ~/.sup/log).
> 
> Were any of the messages in Archive also somewhere else (duplicates with
> the same id)? Also, if sup discovers a message that is part of a thread
> it will join them and (possibly) apply all the labels to all the
> messages in that thread. If any of those are unread it might be
> affected.
> 
> The labels 'INBOX' and 'Inbox' are both not the same as the special
> label 'inbox', so apparently it is not recognized as the special label
> but a custom label.
> 
> It could be that you have more luck with starting with a clean index and
> just starting regular sup (not sup-sync). You can follow the log by
> doing: tail -f ~/.sup/log.
> 
> - gaute

Startup log follows...

[2013-11-26 11:34:20 -0500] using character set encoding "UTF-8"
[2013-11-26 11:34:21 -0500] dynamically loading setlocale() from libc.dylib
[2013-11-26 11:34:21 -0500] setting locale...
[2013-11-26 11:34:21 -0500] locking /Users/steve/.sup/lock...
[2013-11-26 11:34:21 -0500] maildirroot:///Users/steve/.mail: setting up maildirroot..
[2013-11-26 11:34:21 -0500] setting up maildir subs..
[2013-11-26 11:34:21 -0500] maildirsub set up, type: archive, label: archive
[2013-11-26 11:34:21 -0500] maildirsub set up, type: inbox, label: inbox
[2013-11-26 11:34:21 -0500] maildirsub set up, type: sent, label: sent
[2013-11-26 11:34:21 -0500] maildirsub set up, type: draft, label: draft
[2013-11-26 11:34:21 -0500] maildirsub set up, type: spam, label: spam
[2013-11-26 11:34:21 -0500] maildirsub set up, type: deleted, label: deleted
[2013-11-26 11:34:21 -0500] setting up generic folders..
[2013-11-26 11:34:21 -0500] maildirsub set up, type: generic, label: econpapers
[2013-11-26 11:34:21 -0500] no draft source, auto-adding...
[2013-11-26 11:34:21 -0500] starting curses
[2013-11-26 11:34:21 -0500] loading user colors from /Users/steve/.sup/colors.yaml
[2013-11-26 11:34:21 -0500] initializing log buffer
[2013-11-26 11:34:21 -0500] Welcome to Sup! Log level is set to debug.
[2013-11-26 11:34:21 -0500] initializing inbox buffer
[2013-11-26 11:34:21 -0500] ready for interaction!

I'm now not able to run sup-sync or open some of the threads in my inbox without crashing with the following error:

/usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:180:in `block (2 levels) in <top (required)>': NotImplementedError (NotImplementedError)
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/poll.rb:292:in `block (2 levels) in poll_from'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:298:in `block in each_message'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:285:in `block in each_id'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:285:in `each'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:285:in `each_id'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:297:in `each_message'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:649:in `method_missing'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/poll.rb:251:in `block in poll_from'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/maildirroot.rb:512:in `block (2 levels) in poll'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/maildirroot.rb:511:in `each'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/maildirroot.rb:511:in `block in poll'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:261:in `call'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:261:in `block in benchmark'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:280:in `measure'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:261:in `benchmark'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/maildirroot.rb:474:in `poll'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/poll.rb:201:in `poll_from'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:649:in `method_missing'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:125:in `block in <top (required)>'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:120:in `each'
        from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:120:in `<top (required)>'
        from /usr/local/opt/ruby193/bin/sup-sync:23:in `load'
        from /usr/local/opt/ruby193/bin/sup-sync:23:in `<main>'

I'll try starting with a clean index.

Steve
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel