From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 21010317312 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,223eb23cf6495de0 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.236.17.234 with SMTP id j70mr2752563yhj.26.1405720840028; Fri, 18 Jul 2014 15:00:40 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.140.109.36 with SMTP id k33ls1162194qgf.79.gmail; Fri, 18 Jul 2014 15:00:39 -0700 (PDT) X-Received: by 10.140.107.137 with SMTP id h9mr32820qgf.16.1405720839761; Fri, 18 Jul 2014 15:00:39 -0700 (PDT) X-Google-Doc-Id: 24a3038e089f9142 X-Google-Web-Client: true Date: Fri, 18 Jul 2014 15:00:39 -0700 (PDT) From: Alex P To: supmua@googlegroups.com Message-Id: In-Reply-To: <2b0081f1-926a-455c-8ab0-8cdb9f7a7896@googlegroups.com> References: <2b0081f1-926a-455c-8ab0-8cdb9f7a7896@googlegroups.com> Subject: Re: undefined method `[]' MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1061_1004996105.1405720839326" X-Google-Token: EIeypp4FS73btOmlMNU0 X-Google-IP: 77.1.68.34 ------=_Part_1061_1004996105.1405720839326 Content-Type: multipart/alternative; boundary="----=_Part_1062_1010653080.1405720839326" ------=_Part_1062_1010653080.1405720839326 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 > ------=_Part_1062_1010653080.1405720839326 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi suppers,

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

<= div>Best,
Alex


On Friday, July 18, 2014 11:34:1= 6 PM UTC+2, Alex P wrote:
Hi all,

I am changing distro and when I trie= d to sup-import-dump from my previous dump it crashed with 
=
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 whil= e...
/var/lib/gems/1.9.1/gems/sup-0.19.0/lib/sup/index.rb:14= 1:in `update_message_state': undefined method `[]' for #<Redwood::Messag= e:0x00000001786d78> (NoMethodError)
=09from /var/lib/gems/1.9.1/gems/sup-0.19.0/bin/sup-= import-dump:85:in `block in <top (required)>'
=09from /var/lib/gems/1.9.1/gems/sup-0.= 19.0/bin/sup-import-dump:55:in `foreach'
=09from /var/lib/gems/1.9.1/gems/sup-0.19.0/bin/su= p-import-dump:55:in `<top (required)>'
=09from /usr/local/bin/sup-import-dump:23:in `= load'
=09from /usr/local/b= in/sup-import-dump:23:in `<main>'


<= /div>
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 s= up-import-dump:85 
It happens only if I am not dry-running a= nd there is a label to be changed. Unfortunately I am not familiar with rub= y 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 b= e sync to the maildir properly.  

Best,
Alex
------=_Part_1062_1010653080.1405720839326-- ------=_Part_1061_1004996105.1405720839326--