Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: users

Sieve script parsing issues

 

 

DBMail users RSS feed   Index | Next | Previous | View Threaded


dan at entropy

Feb 3, 2009, 2:20 AM

Post #1 of 3 (402 views)
Permalink
Sieve script parsing issues

Hi all.

I just did a server migration, and upgraded from dbmail 2.3.3 to
2.3.5 ( I ran the db upgrade script ). I did a mysql backup on the old
server with 'mysqldump --opt --all-databases' and imported this on the
new server. Everything appeared to go well, apart from my sieve rules.
All my rules were dropped when the new server started. I used
dbmail-sievecmd on the old server to dump my script, and tried
importing it with:

dbmail-sievecmd -u dan -y -i Dan sieve.txt

This gives the error:

Script [Dan] has errors: Parse error on line [9]: syntax error,
unexpected $end, expecting STRING or '[.'.

The first bit of my sieve script reads:

#Mail filter rules for dan
#Generated by dan using SmartSieve 1.0.0-RC2 2009/01/13 07:26:36
require ["fileinto"];

if allof (header :contains "List-ID" "Enlightenment developer list")
{
fileinto "Enlightenment";
}

elsif allof (header :contains "List-ID" "komodo") {
fileinto "Komodo";
}

... so it's failing on the first
'elsif' line. I tried deleting an
elsif block, and it failed on the *new* first elsif block. As noted,
the sieve stuff was all working in dbmail-2.3.3.

Any ideas?

Dan


paul at nfg

Feb 3, 2009, 2:12 AM

Post #2 of 3 (371 views)
Permalink
Re: Sieve script parsing issues [In reply to]

Dan,

those errors are generated by libsieve. Could there be a different
version of libsieve on either machine?

Try setting sieve_debug=yes in dbmail.conf. Maybe that will yield some
useful info.

Dan wrote:
>
> Hi all.
>
> I just did a server migration, and upgraded from dbmail 2.3.3 to
> 2.3.5 ( I ran the db upgrade script ). I did a mysql backup on the old
> server with 'mysqldump --opt --all-databases' and imported this on the
> new server. Everything appeared to go well, apart from my sieve rules.
> All my rules were dropped when the new server started. I used
> dbmail-sievecmd on the old server to dump my script, and tried
> importing it with:
>
> dbmail-sievecmd -u dan -y -i Dan sieve.txt
>
> This gives the error:
>
> Script [Dan] has errors: Parse error on line [9]: syntax error,
> unexpected $end, expecting STRING or '[.'.
>
> The first bit of my sieve script reads:
>
> #Mail filter rules for dan
> #Generated by dan using SmartSieve 1.0.0-RC2 2009/01/13 07:26:36
> require ["fileinto"];
>
> if allof (header :contains "List-ID" "Enlightenment developer list")
> {
> fileinto "Enlightenment";
> }
>
> elsif allof (header :contains "List-ID" "komodo") {
> fileinto "Komodo";
> }
>
> ... so it's failing on the first
> 'elsif' line. I tried deleting an
> elsif block, and it failed on the *new* first elsif block. As noted,
> the sieve stuff was all working in dbmail-2.3.3.
>
> Any ideas?
>
> Dan
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> DBmail mailing list
> DBmail[at]dbmail.org
> https://mailman.fastxs.nl/mailman/listinfo/dbmail


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail[at]dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail


dan at entropy

Feb 3, 2009, 4:20 PM

Post #3 of 3 (366 views)
Permalink
Re: Sieve script parsing issues [In reply to]

On Tue, 03 Feb 2009 11:12:17 +0100, Paul J Stevens <paul[at]nfg.nl> wrote:

> Try setting sieve_debug=yes in dbmail.conf. Maybe that will yield some
> useful info.

Hi Paul. Thanks for the reply. I was using libsieve 2.2.6 on the old
system, 2.2.7 on the new system. I downgraded to 2.2.6 on the new system
and rebuilt dbmail. No luck :(

Setting sieve_debug=yes doesn't really produce any extra ( useful ) output
in this case:

Feb 4 22:01:21 archeopteryx dbmail/sievecmd[8414]: [0x606ef0] Debug:[auth]
auth_load_driver(+51): library_directory is [/usr/lib64/dbmail]
Feb 4 22:01:21 archeopteryx dbmail/sievecmd[8414]: [0x606ef0] Debug:[auth]
auth_load_driver(+64): looking for auth_sql as
/usr/lib64/dbmail/libauth_sql.so
Feb 4 22:01:21 archeopteryx dbmail/sievecmd[8414]: [0x606ef0] Debug:[sort]
sort_load_driver(+48): library_directory is [/usr/lib64/dbmail]
Feb 4 22:01:21 archeopteryx dbmail/sievecmd[8414]: [0x606ef0] Debug:[sort]
sort_load_driver(+61): looking for sort_sieve as
/usr/lib64/dbmail/libsort_sieve.so
Feb 4 22:01:21 archeopteryx dbmail/sievecmd[8414]: [0x606ef0] Debug:[sort]
sort_startup(+722): Sieve vacation enabled.
Feb 4 22:01:21 archeopteryx dbmail/sievecmd[8414]: [0x606ef0] Debug:[sort]
sort_startup(+742): Sieve debugging enabled.
Feb 4 22:01:21 archeopteryx dbmail/sievecmd[8414]: [0x606ef0] Info:[sort]
sort_getscript(+485): Getting default script named [@!temp-script!@]
Feb 4 22:01:21 archeopteryx dbmail/sievecmd[8414]: [0x606ef0] Info:[sort]
sort_errparse(+413): Error is PARSE: Line is [9], Message is [syntax error,
unexpected $end, expecting STRING or '[']

Anything else to try?

Dan

>
> Dan wrote:
>>
>> Hi all.
>>
>> I just did a server migration, and upgraded from dbmail 2.3.3 to
>> 2.3.5 ( I ran the db upgrade script ). I did a mysql backup on the old
>> server with 'mysqldump --opt --all-databases' and imported this on the
>> new server. Everything appeared to go well, apart from my sieve rules.
>> All my rules were dropped when the new server started. I used
>> dbmail-sievecmd on the old server to dump my script, and tried
>> importing it with:
>>
>> dbmail-sievecmd -u dan -y -i Dan sieve.txt
>>
>> This gives the error:
>>
>> Script [Dan] has errors: Parse error on line [9]: syntax error,
>> unexpected $end, expecting STRING or '[.'.
>>
>> The first bit of my sieve script reads:
>>
>> #Mail filter rules for dan
>> #Generated by dan using SmartSieve 1.0.0-RC2 2009/01/13 07:26:36
>> require ["fileinto"];
>>
>> if allof (header :contains "List-ID" "Enlightenment developer list")
>> {
>> fileinto "Enlightenment";
>> }
>>
>> elsif allof (header :contains "List-ID" "komodo") {
>> fileinto "Komodo";
>> }
>>
>> ... so it's failing on the first
>> 'elsif' line. I tried deleting an
>> elsif block, and it failed on the *new* first elsif block. As noted,
>> the sieve stuff was all working in dbmail-2.3.3.
>>
>> Any ideas?
>>
>> Dan
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> DBmail mailing list
>> DBmail[at]dbmail.org
>> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>
>
>

_______________________________________________
DBmail mailing list
DBmail[at]dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail

DBMail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.