Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Thunderbird, and a syntax error near unexpected token `"\n"'
@ 2013-03-27  3:02 Adam Bogacki
  2013-03-27  3:29 ` Whyme Lyu
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Bogacki @ 2013-03-27  3:02 UTC (permalink / raw)
  To: sup-talk


[-- Attachment #1.1: Type: text/plain, Size: 610 bytes --]

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

> 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"'

Can anyone point out what I am missing here ?

Regards,

Adam Bogacki,

adam.bogacki@clear.net.nz


[-- Attachment #1.2: Type: text/html, Size: 1753 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sup-talk] Thunderbird, and a syntax error near unexpected token `"\n"'
  2013-03-27  3:02 [sup-talk] Thunderbird, and a syntax error near unexpected token `"\n"' Adam Bogacki
@ 2013-03-27  3:29 ` Whyme Lyu
  0 siblings, 0 replies; 2+ messages in thread
From: Whyme Lyu @ 2013-03-27  3:29 UTC (permalink / raw)
  To: sup-talk

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-27  3:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-27  3:02 [sup-talk] Thunderbird, and a syntax error near unexpected token `"\n"' Adam Bogacki
2013-03-27  3:29 ` Whyme Lyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox