Re: [Dovecot] Expunge email Plugin

2010-06-29 Thread Timo Sirainen
On Tue, 2010-06-29 at 11:23 -0300, Alex Baule wrote: > There is some function like this mail_get_special, to get a header value ? > > like "get_header_value(mail,"HEADERFIELD", &value);" ?? lib-storage/mail-storage.h and http://wiki.dovecot.org/Design/Storage/Mail describe different ways of gett

Re: [Dovecot] Expunge email Plugin

2010-06-29 Thread Alex Baule
Great... its work Now i need a header value too, i see in mail_log plugin, some functions to get headers value... but it's a enum with some know fields. There is some function like this mail_get_special, to get a header value ? like "get_header_value(mail,"HEADERFIELD", &value);" ?? 2010/6/2

Re: [Dovecot] Expunge email Plugin

2010-06-29 Thread Timo Sirainen
On Sat, 2010-06-26 at 12:59 -0300, Alex Baule wrote: > I use the notify plugin as a base to my plugin. > > So, i need the filename from the expunged mail, to use to search my other > file to erase. > > What's the way to find the filename ? I thy to get by i_stream_get_name, but > i'm lost with th

Re: [Dovecot] Expunge email Plugin

2010-06-26 Thread Alex Baule
I use the notify plugin as a base to my plugin. So, i need the filename from the expunged mail, to use to search my other file to erase. What's the way to find the filename ? I thy to get by i_stream_get_name, but i'm lost with the input istream to get this. 2010/6/25 Timo Sirainen > On Mon, 2

Re: [Dovecot] Expunge email Plugin

2010-06-25 Thread Timo Sirainen
On Mon, 2010-06-21 at 17:27 -0300, Alex Baule wrote: > Hello everyone. > > > I Need to know when a email is expunge, but i don't need change this action. > I Need to call another action + the default action. > > There is a plugin to do this ? In v2.0 there is a notify plugin which you can p