On Wed, Mar 23, 2016 at 12:21:03AM +0100, Joerg Jung wrote:
> On Tue, Mar 22, 2016 at 10:57:00PM +0100, frit...@alokat.org wrote:
> > Hi,
> > 
> > is it possible to share data between callback functions in a python-based 
> > filter?
> > I'm looking for something like this one (from the clamav filter):
> > - filter_api_set_udata
> > - filter_api_get_udata
> 
> I think you could just create your own python dict which associates user
> data with the given message ID. 
>  

yes, that's what I do myself, i use the on_connect/on_disconnect to
store a per-session dictionnary where i can store stuff I want to
retain between callbacks

-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to