Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Whyme Lyu <5longluna@gmail.com>
To: sup-talk@rubyforge.org
Subject: Re: [sup-talk] Thunderbird, and a syntax error near unexpected token `"\n"'
Date: Wed, 27 Mar 2013 11:29:26 +0800	[thread overview]
Message-ID: <51526796.2070101@gmail.com> (raw)
In-Reply-To: <51526140.1090102@clear.net.nz>

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


      reply	other threads:[~2013-03-27  3:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27  3:02 Adam Bogacki
2013-03-27  3:29 ` Whyme Lyu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51526796.2070101@gmail.com \
    --to=5longluna@gmail.com \
    --cc=callme5long@gmail.com \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox