Subject: Re: [sup-talk] Thunderbird, and a syntax error near unexpected token `"\n"'

From: Whyme Lyu <[email-masked]>
Date: Wed, 27 Mar 2013 11:29:26 +0800

On 03/27/2013 11:02 AM, Adam Bogacki wrote:
> http://sup.rubyforge.org/wiki/wiki.pl?ThunderbirdImport

The wiki has been migrated to 
https://github.com/sup-heliotrope/sup/wiki/Thunderbird-Import with some 
content lost forever. But the new ThunderbirdImport page looks okay for now.

>> root@Candide03:32 PM~:~$ `ls mdirs`.split("\n").each {|dir|`ls
>> mdirs/#{dir}`.split("\n").each {|mdir| sup-add -ul
>> #{dir.downcase},#{mdir.downcase}
>> `maildir:/home/adam/.icedove/9zurob0v.default/Mail/mdirs/#{dir}/#{mdir}`}}
>>
>> bash: syntax error near unexpected token `"\n"'

Looks like the wiki doesn't make it clear enough: the code is Ruby code, 
not bash. Besides, your code is slightly different from the code on 
Github wiki: the third pair of backticks should wrap sup-add...#{mdir} 
instead of `maildir:...#{mdir}`.

Honestly I haven't tried to import Thunderbird data yet since I'm still 
trying to get a usable .gem package in Ruby 1.9. But hope this helps anyway.

-whyme
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Adam Bogacki <[email-masked]>
Date: Wed, 27 Mar 2013 16:02:24 +1300

I'm trying to add maildirs to sup, adding two tags, one for the
Thunderbird folder and one for the name of the mail collection,
following the example at
http://sup.rubyforge.org/wiki/wiki.pl?ThunderbirdImport

but keep getting

> bash: syntax error near unexpected token `"\n"'

Can anyone point out what I am missing here ?

Regards,

Adam Bogacki,

[email-masked]