[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk