Re: Basic question: How to debug sieve scripts (e.g. via log file)?

Binarus <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
On 08.12.2023 09:37, Marco wrote:
> Am 08.12.2023 00:06 schrieb Binarus:
> 
>> I have realized that Debian bullseye offers a package called
>> "dovecot-sieve" which contains a program called "sieve-test".
>> However, I believe that the dovecot sieve utilities cannot be used to
>> process or test sieve scripts for Cyrus imapd; please correct me if I
>> am wrong.
> 
> Sieve is a standard and Dovecot also implements it.
> 
> Although I dunno how sieve-test tests the sieve scripts and if that
> will work with Cyrus.
> 
> The packages dependencies also show that it depends on Dovecot, you can
> can't simply install it on your machine with Cyrus.

Eventually I could force apt to install it without its dependencies. Of course, chances are that it won't run then.

As another option, I could set up a VM and install dovecot with dovecot-sieve there. I'd be willing to take some effort to be able to debug sieve scripts that way if I knew that I could use the outcome at all.

But if the script in question fails for something that's specific to my Cyrus installation, or specific to runtime environment in general, e.g., missing permissions, testing the script with dovecot's sieve-test (or other external standalone programs) won't help at all. Therefore I'd really prefer to debug it in its native habitat.

Thank you very much,

Binarus



------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T9b1dfc1611f58964-M8872114111708b123f411fbd
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.