Re: [exim-dev] Exim sieve capabilities and pysieved

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philippe Levan
Dátum:  
Címzett: Neale Pickett, pdp
CC: exim-dev@exim.org, Michael Haardt
Tárgy: Re: [exim-dev] Exim sieve capabilities and pysieved
Neale and Phil,

I agree getting the correct list of capabilities from Exim
would be better.

I am not familiar with the concept of "routers". So far the
pysieved code just assumes that there is a consumer of the
.forward file that it manages "somewhere out there". There's
really only 2 things I think pysieved needs to know about
that consumer:
. its capabilities
. the location where it looks for the sieve filter

What you're working on would address the 1st point. I would
put the onus on the administrator to provide the variable
part of the lookup command in one way or another, with a
reasonable default in the stock pysieved.ini.

Does the 2nd item vary ? I thought it was always $HOME/.forward.

-Philippe.



On 6/1/2012 12:57 PM, Neale Pickett wrote:
> I haven't worked with pysieved for over a year now. I think Philippe is
> still active in development, but if he's not, ping me again and I'll
> make the necessary changes to support this useful addition to exim.
>
> (Yes, I think it's a good idea :)
>
> Are people actually using pysieved with exim now? Cool!
>
>
> On 6/1/2012, "Phil Pennock" <pdp@???> wrote:
>
>> Gentlemen,
>>
>> I've just committed to Exim git a new command-line option, to
>> interrogate the binary for a supported list of Sieve extensions.
>>
>> I anticipate that for daemons speaking ManageSieve (RFC 5804) this will
>> be useful for providing an accurate SIEVE capability line.
>>
>> At present, it emits a hard-coded list of capabilities, taking into
>> account any build-time options. It does *not* handle any configuration,
>> which would vary on a per-Router basis!
>>
>> % ./build-test/exim -bI:sieve
>> comparator-i;ascii-numeric
>> copy
>> encoded-character
>> enotify
>> envelope
>> fileinto
>> subaddress
>> vacation
>> %
>>
>> Does this look useful for you, or am I in need of a reality check?
>>
>> The precise option used is still unsettled; I've only just committed it,
>> other devs might point out a better way of doing this. So far, I've
>> grabbed -bI:$keyword and implemented "help" and "sieve" keywords.
>>
>> Without knowing how many different Routers might support sieve scripts,
>> the best I can think of is something like -bI:sieve-list-routers to
>> iterate all Routers and emit the names of those which are redirect
>> routers with allow_filter set and forbid_sieve_filter unset. Then
>> permit something like "exim -bI:sieve:userforward" to interrogate the
>> list of extensions supported for that Router; however, since options
>> such as sieve_vacation_directory are expanded strings which can depend
>> upon properties of the mail being routed, we can't guarantee useful or
>> accurate results.
>>
>> So getting a completely correct list still needs some thought, but I
>> think this gets us closer to something helpful.
>>
>> Feedback very much appreciated! We have until the next Exim release to
>> sort out the interface details. :)
>>
>> -Phil