Nested if then else in categorize.cfg

Richard Case rich at racitup.com
Tue Jan 7 14:39:59 CET 2014


Hi guys,

I'm new to this so bear with me but I'm trying to do a rule like this for
Firefox using arbtt v0.7:

-- Firefox
current window ($program == "Navigator") ==>
  if $title =~ /^(.*) - (.*@.*) - .* Mail - Mozilla Firefox$/ then tag
Email:$2-$1 else
  if $title =~ /^(.*) - Calendar - Mozilla Firefox$/ then tag Calendar:$1
else
  if $title =~ /^(.*) - Mozilla Firefox$/ then tag Firefox:$1 else tag
Firefox,

But I get:
Parser error:
"/home/rich/.arbtt/categorize.cfg" (line 29, column 3):
unexpected "i"
expecting "else"

If looks to be correct according to the syntax rules; am I doing something
wrong or is this a bug?

Cheers,
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nomeata.de/pipermail/arbtt/attachments/20140107/6c6bbab0/attachment.htm>


More information about the arbtt mailing list