Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Steven Schmeiser <steven@schmeiser.org>
To: Sup developer discussion <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] A maildir root source: syncing labels with maildirs (imap folders)
Date: Tue, 26 Nov 2013 11:42:48 -0500	[thread overview]
Message-ID: <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org> (raw)
In-Reply-To: <1385478548-sup-9110@qwerzila>



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


  reply	other threads:[~2013-11-26 16:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25 15:24 Gaute Hope
2013-11-25 18:23 ` [sup-devel] " Steven Schmeiser
2013-11-25 21:08 ` Matthieu Rakotojaona
2013-11-25 21:51 ` Gaute Hope
2013-11-25 22:28   ` Gaute Hope
2013-11-26 14:43   ` [sup-devel] " Steven Schmeiser
2013-11-26 15:14     ` Gaute Hope
2013-11-26 16:42       ` Steven Schmeiser [this message]
2013-11-26 16:55         ` Gaute Hope
2013-11-27  0:48           ` Steven Schmeiser
2013-11-27  6:21             ` Gaute Hope
2013-11-27 12:42               ` Steven Schmeiser
2013-11-27 13:08                 ` Gaute Hope
2013-11-27 13:24                   ` Gaute Hope
2013-11-27 18:32                   ` Matthieu Rakotojaona
2013-11-27 21:10                     ` Gaute Hope
2013-11-29  9:22                       ` Gaute Hope
2013-11-27  6:23           ` Gaute Hope

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org \
    --to=steven@schmeiser.org \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox