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