From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 21010317312 X-Gmail-Labels: Topic type: DISCUSSION X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,223eb23cf6495de0 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.42.82.79 with SMTP id c15mr23109452icl.7.1406543531751; Mon, 28 Jul 2014 03:32:11 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.50.30.199 with SMTP id u7ls1744297igh.25.canary; Mon, 28 Jul 2014 03:32:11 -0700 (PDT) X-Received: by 10.42.39.140 with SMTP id h12mr24586828ice.9.1406543531415; Mon, 28 Jul 2014 03:32:11 -0700 (PDT) Return-Path: Received: from mail-qg0-f47.google.com (mail-qg0-f47.google.com [209.85.192.47]) by gmr-mx.google.com with ESMTPS id v20si2221109yhe.2.2014.07.28.03.32.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 03:32:10 -0700 (PDT) Received-SPF: none (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) client-ip=209.85.192.47; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) smtp.mail=eg@gaute.vetsj.com Received: by mail-qg0-f47.google.com with SMTP id i50so8309520qgf.34 for ; Mon, 28 Jul 2014 03:32:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=MJEtXnU6+UXxIdn4st6JNnMZCzMnwzVtfrmFvipIIOY=; b=k+hA546vO0pUVAsJyb2+UOIOkXdUgPEFmWL2DsD2EULAsXk2mFt/milSz6EULOnHud vcObiUC5ZEUdvskb+NGowDwNQXD4FyD1wgGGat4tvYnd4iHNSirfElr0kWSe/Hj5DE2U pCqwY7mI8cRXGgmUn5MQhUgCAPKWrTO38aflGw7IRbfm92eNCF/9ajbQa1ur841F2cAn exZQQKUsRTnFmHRKtwY8IyWyA5Jh6QoTH7K/eYzs7nv7bGA4W1gRBYkk6ToigurXDgWW QPqfOsSv3TieKMYL0tmf80Bz2CZuwy0AoyfCijXf/UV8oAq2Eb9bK00eMmjYgKMuy5YD C7YA== X-Gm-Message-State: ALoCoQkdXamktR3wCtOqtWjAtJgpJWCF/bU5r/3Lzg0RWKjIgDoOLb9LPoXffannheJapWyvSNUk MIME-Version: 1.0 X-Received: by 10.224.123.80 with SMTP id o16mr29632689qar.21.1406543530856; Mon, 28 Jul 2014 03:32:10 -0700 (PDT) Received: by 10.96.88.40 with HTTP; Mon, 28 Jul 2014 03:32:10 -0700 (PDT) In-Reply-To: References: <2b0081f1-926a-455c-8ab0-8cdb9f7a7896@googlegroups.com> Date: Mon, 28 Jul 2014 12:32:10 +0200 Message-ID: Subject: Re: [sup] Re: undefined method `[]' From: Gaute Hope To: supmua@googlegroups.com Content-Type: multipart/alternative; boundary=047d7bdca94a84b0fa04ff3e6fa1 --047d7bdca94a84b0fa04ff3e6fa1 Content-Type: text/plain; charset=UTF-8 Hi, I think this is because the update methods now need an array as input with the first element being the message object, and the second being true or false of whether the message object should be synced back. This was introduced with the sync back features. You can probably set it to false for the import dump stuff. Please check index.rb though. On Sat, Jul 19, 2014 at 12:00 AM, Alex P wrote: > Hi suppers, > > I changed the sup-import-dump:85 from index.update_message_state to > index.update_message (since > with some `puts m.methods` I figured out that I had a message object and > not a tree(?) object) and the problem > seams to be resolved. I am not sure if it is the proper way to do it > though... > > Best, > Alex > > > On Friday, July 18, 2014 11:34:16 PM UTC+2, Alex P wrote: >> >> Hi all, >> >> I am changing distro and when I tried to sup-import-dump from my previous >> dump it crashed with >> >> asdf@bmsmail2.ieee.org unchanged >> Changing flags for asdf@gmail.com from 'sent inbox' to 'inbox' >> [2014-07-18 23:27:55 +0200] Flushing Xapian updates to disk. This may >> take a while... >> /var/lib/gems/1.9.1/gems/sup-0.19.0/lib/sup/index.rb:141:in >> `update_message_state': undefined method `[]' for # >> (NoMethodError) >> from /var/lib/gems/1.9.1/gems/sup-0.19.0/bin/sup-import-dump:85:in >> `block in ' >> from /var/lib/gems/1.9.1/gems/sup-0.19.0/bin/sup-import-dump:55:in >> `foreach' >> from /var/lib/gems/1.9.1/gems/sup-0.19.0/bin/sup-import-dump:55:in `> (required)>' >> from /usr/local/bin/sup-import-dump:23:in `load' >> from /usr/local/bin/sup-import-dump:23:in `
' >> >> >> As far as I can tell the problem is that there is no such method/operator >> [] for the mail object at index.rb:141 which is passed >> from sup-import-dump:85 >> It happens only if I am not dry-running and there is a label to be >> changed. Unfortunately I am not familiar with ruby so I can't really debug >> it. Any hints on >> how to solve it? >> >> My previous mails appear in the inbox now and seam to be sync to the >> maildir properly. >> >> Best, >> Alex >> > -- > You received this message because you are subscribed to the Google Groups > "The Sup email client" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to supmua+unsubscribe@googlegroups.com. > To post to this group, send email to supmua@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/supmua/d5a5a978-1677-4e90-b956-97a151c4866a%40googlegroups.com > > . > > For more options, visit https://groups.google.com/d/optout. > --047d7bdca94a84b0fa04ff3e6fa1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi, I think this is because the update methods now need an= array as=20 input with the first element being the message object, and the second=20 being true or false of whether the message object should be synced back. This was introduced with the sync back features. You can probably set=20 it to false for the import dump stuff. Please check index.rb though.
=


On Sat, Jul 1= 9, 2014 at 12:00 AM, Alex P <cbm.mailbox@gmail.com> wrot= e:
Hi suppers,

<= div>I changed the sup-import-dump:85 from index.update_message_state to ind= ex.update_message (since
with some `puts m.methods` I figured out that I had a message object a= nd not a tree(?) object) and the problem
seams to be resolved. I = am not sure if it is the proper way to do it though...

Best,
Alex


On Frida= y, July 18, 2014 11:34:16 PM UTC+2, Alex P wrote:
Hi all,

I am changing distro and when I= tried to sup-import-dump from my previous dump it crashed with=C2=A0
=

Changing flags for asdf@gmail.com from 'sent inbox' to 'inbox'
= [2014-07-18 23:27:55 +0200] Flushing Xapian updates to disk. This may take = a while...
/var/lib/gems/1.9.1/gems/sup-0.19.0/lib/sup/index.rb:141:in `up= date_message_state': undefined method `[]' for #<Redwood::Messag= e:0x00000001786d78> (NoMethodError)
from /var/lib/gems/1.9.1/gems/sup-0.19.0/b= in/sup-import-dump:85:in `block in <top (required)>'
from /var/lib/gems/1.9.1/= gems/sup-0.19.0/bin/sup-import-dump:55:in `foreach'
=
from /var/lib/gems/1.9.1/= gems/sup-0.19.0/bin/sup-import-dump:55:in `<top (required)= >'
from /usr/local/bin/sup-i= mport-dump:23:in `load'
from /usr/local/bin/sup-import-dump:23:in `<main&g= t;'


As far as I can tell the problem is that= there is no such method/operator [] for the mail object at index.rb:141 wh= ich is passed from=C2=A0sup-import-dump:85=C2=A0
It happens only = if I am not dry-running and there is a label to be changed. Unfortunately I= am not familiar with ruby so I can't really debug it. Any hints on
how to solve it?

My previous mails appear in = the inbox now and seam to be sync to the maildir properly. =C2=A0
=

Best,
Alex

--
You received this message because you are subscribed to the Google Groups &= quot;The Sup email client" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to supmua+unsubscribe@googlegroups.com.
To post to this group, send email to supmua@googlegroups.com.
To view this discussion on the web visit https://groups= .google.com/d/msgid/supmua/d5a5a978-1677-4e90-b956-97a151c4866a%40googlegro= ups.com.

For more options, visit https://groups.google.com/d/optout.

--047d7bdca94a84b0fa04ff3e6fa1--