From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.29.52 with SMTP id g20csp7744vdh; Tue, 26 Mar 2013 20:29:25 -0700 (PDT) X-Received: by 10.220.151.203 with SMTP id d11mr22166038vcw.9.1364354965398; Tue, 26 Mar 2013 20:29:25 -0700 (PDT) Return-Path: Received: from rubyforge.org (50-56-192-79.static.cloud-ips.com. [50.56.192.79]) by mx.google.com with ESMTP id d10si20621516vdv.67.2013.03.26.20.29.25; Tue, 26 Mar 2013 20:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (bad format) header.i=@gmail.com Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 387682E0CB; Wed, 27 Mar 2013 03:29:25 +0000 (UTC) X-Greylist: delayed 56772 seconds by postgrey-1.31 at rubyforge; Wed, 27 Mar 2013 03:29:08 UTC Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by rubyforge.org (Postfix) with ESMTP id 5825D2E0BF for ; Wed, 27 Mar 2013 03:29:08 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id jh10so1305547pab.38 for ; Tue, 26 Mar 2013 20:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:reply-to:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=VdfwmnSI7D6OApcMsY1ugfWgIJxPm/Xf+v2OG1XvTk8=; b=CLZanOJzuzRKV7LNYm4SJGt3bioHQa7rA19fUjKdBfZVHxpTye31dSFnQbPoUnbXr6 3aLy8P7WHliRVciTky5b5Z1gsxhVMHjypDRMbn18CaLBmI5X+sg4gDV/QP/T0XDYF5E7 SXWKy4XS5BMLTwnq2fZ1OYQYHf3Lt3/Ti+sQWjPSqQZkUFRNBHj8uz4BT0PjlJVHe8VV FIfYmTiYDlQYqViDIX45ernPlVTAYprupncgp54B3iqjcStLqhb98aUn7UIPo/YGIOy1 3ViaYb0c0sNXZv0SrkHkxEs4lPbWBB/6v0dlxX+/X5E/VQCnPujHEte2DQGlU9RxIriT ADtQ== X-Received: by 10.68.218.166 with SMTP id ph6mr11233977pbc.33.1364354947778; Tue, 26 Mar 2013 20:29:07 -0700 (PDT) Received: from [10.0.2.220] ([124.205.66.195]) by mx.google.com with ESMTPS id cy4sm19756093pbc.13.2013.03.26.20.29.04 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Mar 2013 20:29:06 -0700 (PDT) Message-ID: <51526796.2070101@gmail.com> Date: Wed, 27 Mar 2013 11:29:26 +0800 From: Whyme Lyu <5longluna@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: sup-talk@rubyforge.org References: <51526140.1090102@clear.net.nz> In-Reply-To: <51526140.1090102@clear.net.nz> Subject: Re: [sup-talk] Thunderbird, and a syntax error near unexpected token `"\n"' X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: callme5long@gmail.com List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org 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