From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.96.70.73 with SMTP id k9csp213657qdu; Tue, 26 Nov 2013 08:42:59 -0800 (PST) X-Received: by 10.60.94.37 with SMTP id cz5mr1616660oeb.75.1385484178667; Tue, 26 Nov 2013 08:42:58 -0800 (PST) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id co8si31594739oec.47.2013.11.26.08.42.58 for ; Tue, 26 Nov 2013 08:42:58 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (bad format) header.i=@schmeiser.org Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 88045263071; Tue, 26 Nov 2013 16:42:58 +0000 (UTC) Received: from origin.schmeiser.org (origin.schmeiser.org [50.116.59.107]) by rubyforge.org (Postfix) with ESMTP id 84ABD26306C for ; Tue, 26 Nov 2013 16:42:51 +0000 (UTC) Received: from [138.110.183.194] (unknown [138.110.183.194]) by origin.schmeiser.org (Postfix) with ESMTPSA id E6C6519811 for ; Tue, 26 Nov 2013 11:42:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schmeiser.org; s=default; t=1385484170; bh=0SMvHILDVe3AzhmzdUqZYNGCV9khpeIrDMBajm46juQ=; h=Subject:From:In-Reply-To:Date:References:To:From; b=fhgo6UKCx3JcfaYO+vx5XDTmQxM61hmqVBCrVnfu1ppJqiUSSGS2kLbCG6sfVHHy3 wofYIrGhE22zdDBkaYlWGcqXnZhhHOYFJkfDnT3Rd+c0QYKrIwja+rFzMMlgfc1Kxj Oa0ZpzodwZ4JssVZeLdBj7ISLSRhdpUESRSyBVE8= Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) From: Steven Schmeiser In-Reply-To: <1385478548-sup-9110@qwerzila> Date: Tue, 26 Nov 2013 11:42:48 -0500 Message-Id: <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org> References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila> <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila> To: Sup developer discussion X-Mailer: Apple Mail (2.1822) Subject: Re: [sup-devel] A maildir root source: syncing labels with maildirs (imap folders) X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org On Nov 26, 2013, at 10:14, Gaute Hope 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 ': 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 ' 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 `' from /usr/local/opt/ruby193/bin/sup-sync:23:in `load' from /usr/local/opt/ruby193/bin/sup-sync:23:in `
' I'll try starting with a clean index. Steve _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel