Re: Python module for HTTP API

2021-06-08 Thread Alex Baule
Python Requests is easy to use. https://docs.python-requests.org/en/master/ Em ter., 8 de jun. de 2021 às 14:30, Michael Ströder escreveu: > HI! > > Can anybody recommend a high-level Python module for accessing doveadm's > HTTP API? [1] > > Ciao, Michael. > > [1] https://doc.dovecot.org/admin_

Re: [Dovecot] INBOX cant be created

2012-03-19 Thread Alex Baule
doveadm(admin): Error: Can't create mailbox INBOX: Permission denied The INBOX exists but has a wrong owner. Em 19 de março de 2012 13:22, Radim Kolar escreveu: > doveadm does not works too: > > sudo doveadm mailbox create -u admin INBOX > doveadm(admin): Error: Can't create mailbox INBOX: Per

Re: [Dovecot] Creating and interacting with array inside plugin

2012-02-23 Thread Alex Baule
Tks Timo... Em 23 de fevereiro de 2012 21:34, Timo Sirainen escreveu: > On 23.2.2012, at 18.19, Alex Baule wrote: > >> ok, inside my expunged rewrite function i create the array like quota >> does, and append it to my array. >> >> struct emexis_ids_x_uis append_

Re: [Dovecot] There is a way to know if a email has been expunged ?

2012-02-16 Thread Alex Baule
escreveu: > On 13.2.2012, at 19.28, Alex Baule wrote: > >> static void emexis_mailbox_allocated(struct mailbox *box) >> { >>    union mailbox_module_context *zbox; >> >>    zbox = p_new(box->pool, union mailbox_module_context, 1); >>    zbox->supe

Re: [Dovecot] There is a way to know if a email has been expunged ?

2012-02-13 Thread Alex Baule
ugin_mailbox_sync_notify; But in this two cases, the Mplugin_mailbox_sync_notify is never called... i missing something ?? Tks ! Em 12 de fevereiro de 2012 14:48, Alex Baule escreveu: > Tks timo ! > > I will see the plugin to do like it! > > Em 12/02/2012 13:46, "Timo S

Re: [Dovecot] There is a way to know if a email has been expunged ?

2012-02-12 Thread Alex Baule
Tks timo ! I will see the plugin to do like it! Em 12/02/2012 13:46, "Timo Sirainen" escreveu: > Hi, > > Yeah, you shouldn't do the erasing directly in expunge(), because it may > still be aborted. Do it in sync_notify() like quota plugin does. > > On 12.2

Re: [Dovecot] There is a way to know if a email has been expunged ?

2012-02-12 Thread Alex Baule
unged){ erase_body(); } } TKs Timo ! Em 12 de fevereiro de 2012 02:19, Timo Sirainen escreveu: > On 10.2.2012, at 19.39, Alex Baule wrote: > >> Hy Everyone...and Timo ! >> >> There is a way to know if a email was expunged (deleted from hard >> disk)  inside a plugin ? I re

[Dovecot] There is a way to know if a email has been expunged ?

2012-02-10 Thread Alex Baule
Hy Everyone...and Timo ! There is a way to know if a email was expunged (deleted from hard disk) inside a plugin ? I rewrite the expunge function, but the real expunge function is void, i can't know if was really expunged. There is a way to know this ?

[Dovecot] Rewrite the ostream output method, to save messages in another directory.

2011-10-31 Thread Alex Baule
Hi Timo, I Trying to integrate my antispam with dovecot, using the imap folder to do certain actions. I Do almost every thing, but i have some problems saving the message. Explaining this function, i try to use a imap folder like a "collector folder", the user append a message from outside (ie an

dovecot@dovecot.org

2011-06-13 Thread Alex Baule
my delivery is done by the exim, and i use maildir. Well, i will use the mail_get_first_header with the Return-Path. Tks. Em 13/06/2011 10:09, "Timo Sirainen" escreveu: > On Fri, 2011-06-10 at 09:19 -0300, Alex Baule wrote: >> Hi Timo... >> >> Inside my plugin, i

dovecot@dovecot.org

2011-06-10 Thread Alex Baule
Hi Timo... Inside my plugin, i use the (mail_get_first_header(mail, "From", &header) function, to get the email From to put in some Blacklist. Looking in the header under this mail, we have 2 "From" fields. Using the function above, i get the Second "From", but my MTA (exim) look in to The First

[Dovecot] Importing emails from mounted NFS to dovecot using doveadm

2011-05-04 Thread Alex Baule
Hello Timo I try to import emails using doveadm, but i found one little issue to me, my driver in auth is auth_default_realm = exemplo.com.br auth_mechanisms = LOGIN PLAIN passdb { driver = pam } userdb { driver = static args = uid=mail gid=mail home=

[Dovecot] Rewrite the mailbox copy functions works in imap but don't work in doveadm import command

2011-01-19 Thread Alex Baule
Hi Timo !! I rewrite the copy function from mailbox (using a plugin) My rewrite is like this: static int emexis_antispam_copy(struct mail_save_context *ctx, struct mail *mail){ struct mailbox *box = ctx->transaction->box; union mailbox_module_context *zbox = EMEXIS_CONTEXT(box); stru

Re: [Dovecot] Strange issue in NFS

2011-01-19 Thread Alex Baule
) failed: Cannot allocate memory That can be a nfs client error ? Something like error in nfs client with memory allocation ? 2011/1/16 Timo Sirainen > On Wed, 2011-01-12 at 11:08 -0200, Alex Baule wrote: > > Jan 12 10:57:50 brc dovecot: imap(a...@exemplo.com.br): Error: > > o

[Dovecot] Strange issue in NFS

2011-01-12 Thread Alex Baule
Hi Timo... It's happens some strange issue with my maildir using NFS. If i use a Local Hard disk, i don't get any of this messages about memory error. Jan 12 10:57:50 brc dovecot: imap(a...@exemplo.com.br): Error: opendir(/storage/nfs/3/emexis/messages/ exemplo.com.br/alex/Maildir/.Drafts/new) f

Re: [Dovecot] Plugins on a NFS

2010-12-16 Thread Alex Baule
Hi timo... I Search in lib to see how the nfs_flush* works , and i see this too. int nfs_safe_stat(const char *path, struct stat *buf); can i use this too ? it's get a better handle with this + nfs_flush* before ?! Tks ! 2010/12/16 Timo Sirainen > On Thu, 2010-12-16 at 09:30 -02

[Dovecot] Plugins on a NFS

2010-12-16 Thread Alex Baule
Hi timo. I Made a plugin that's works fine in a Normal Partition and a GlusterFS enviroment too. in NFS it's intermitent, some times works, some times don't. Only the expunge part have this issue, i use stat to get the amont of hard link in a file. There is because of that (stat, hard link cou

Re: [Dovecot] Mailbox Delete

2010-11-26 Thread Alex Baule
It's strange, because if i comment the call for my function mailbox_delete, i don't get the error. Only if i delete it. i will check the rest of code... Tks Timo ! 2010/11/26 Timo Sirainen > On 26.11.2010, at 19.47, Alex Baule wrote: > > >box = mailbox_a

[Dovecot] Mailbox Delete

2010-11-26 Thread Alex Baule
Hi Timo I Modify the plugin autocreate, that create and subscribe a mailbox to user. My modification consist in do the inverse, if my user don't have permission to create and subscribe a folder, the plugin remove and unsubscribe. My function is called in the same place that create and subscr

Re: [Dovecot] Doveadm

2010-11-23 Thread Alex Baule
n some date ? 2010/11/23 Timo Sirainen > On Tue, 2010-11-23 at 13:54 -0200, Alex Baule wrote: > > I'm Folling the Wiki, with say if put -8 , give the name in UTF-8, so i > put > > it here too. > > > > if was doing with doveadm it' be something like that:

Re: [Dovecot] Doveadm

2010-11-23 Thread Alex Baule
opy from source Maildir. This can be useful, when you want to pass every messages in a plugin(like my case, to split header and body) There is possible ? Tks again ! 2010/11/23 Timo Sirainen > On Tue, 2010-11-23 at 09:07 -0200, Alex Baule wrote: > > the command that i use

Re: [Dovecot] Doveadm

2010-11-23 Thread Alex Baule
and i think the parameters too, but this not return the mailbox list in unix socket. how is the protocol flow to doveadm unix socket ? something like. write X Read Y shutdown socket or have another order todo this ? Tks ! 2010/11/22 Alex Baule > Tks, now it's working, i need to s

Re: [Dovecot] Doveadm

2010-11-22 Thread Alex Baule
Tks, now it's working, i need to send every in one "write", (header+command) 2010/11/22 Timo Sirainen > On Mon, 2010-11-22 at 13:38 -0200, Alex Baule wrote: > > > Im have a situation here with the syntax for doveadm in a unix socket. > > > > My string

Re: [Dovecot] Doveadm

2010-11-22 Thread Alex Baule
finish my program. But Still i dont get messages to be expunged, if i call bu doveadm command line, works... There is some header to send before the command ? Tks 2010/11/19 Alex Baule > Tks timo! Monday i will do all corrections! > > Em 19/11/2010 22:26, "Timo Sirainen" es

Re: [Dovecot] Doveadm

2010-11-19 Thread Alex Baule
Tks timo! Monday i will do all corrections! Em 19/11/2010 22:26, "Timo Sirainen" escreveu: On 19.11.2010, at 22.18, Alex Baule wrote: > The syntax for doveadm in socket, is the same as the d... Yes, but use tabs instead of spaces for separating parameters.

Re: [Dovecot] Doveadm

2010-11-19 Thread Alex Baule
ilbox inbox savedbefore 3w" I made a small socket program, doing this but it doesnt work... Tks Timo Em 19/11/2010 18:16, "Timo Sirainen" escreveu: On Fri, 2010-11-19 at 15:15 -0200, Alex Baule wrote: > Hi Timo > > I have a doubt about the dov... Yes, just like al

Re: [Dovecot] Doveadm

2010-11-19 Thread Alex Baule
Hi Timo I have a doubt about the doveadm. It's use the plugins too ? if have a plugin using in IMAP, it's use this same plugin to do the work (ex> expurge, copy,etc) using the hooked rewrited functions ? Or i need to explict add some configuration in doveadm ? 2010/11/18 Alex

Re: [Dovecot] Doveadm

2010-11-18 Thread Alex Baule
Tks timo! I will take a look in this socket to use it with my schedule. Em 18/11/2010 16:48, "Timo Sirainen" escreveu: On Thu, 2010-11-18 at 16:21 -0200, Alex Baule wrote: > I will create a schedule to expurge older ema... Yes, in that case the dates are looked up from dovecot.inde

Re: [Dovecot] Doveadm

2010-11-18 Thread Alex Baule
I will create a schedule to expurge older emails than a date, like 3, 6 months. Maybe i will create a application that makes a pipe to doveadm and call it to do the job. 2010/11/18 Timo Sirainen > On Thu, 2010-11-18 at 10:08 -0200, Alex Baule wrote: > > > How doveadm purge a em

[Dovecot] Doveadm

2010-11-18 Thread Alex Baule
How doveadm purge a email ? It's search using the index or scan every directory and open the email to match the search criteria ?

Re: [Dovecot] Mail history function?

2010-11-17 Thread Alex Baule
Sorry, i send a "reply" not a "reply to all" 2010/11/17 Jakob Curdes > Please keep replies to the list so that others can participate. > > > > I sugest the notify, because the admin can know if a user open a email, >> copy to another folder, delete the emailetc. >> >> but using the MTA it

Re: [Dovecot] Mail history function?

2010-11-17 Thread Alex Baule
Dovecot have a plugin, called notify You can use as a base and develop your plugin to write the itens that you want in the database. in dovecot source, see in src/plugins/notify 2010/11/17 Oliver Berse > I'm a newbie at Dovecot. For a company groupware I need a kind of a > history function for

Re: [Dovecot] Trying to building a customized auth plugin

2010-11-16 Thread Alex Baule
security. If the result of Java > App is correct (more difficult to explain), then it pass ask to > standard courier ldap plugin. > > 2010/11/16 Alex Baule : > > What the preauthcustom.c does ? something special or setting some rights > > from users ? > > > > If was onl

Re: [Dovecot] Trying to building a customized auth plugin

2010-11-16 Thread Alex Baule
r which I have to migrate to dovecot. > > 2010/11/16 Alex Baule : > > Dovecot plugins works with hooks. This hooks allow you customize some > > actions. > > > > You need to find the authentication hook, and rewrite it's actions. > > > > Inside the

Re: [Dovecot] Trying to building a customized auth plugin

2010-11-16 Thread Alex Baule
and then I have got more errors, I can continure. > > 2010/11/16 Antonio Perez-Aranda : > > Not, userdb-custom and passdb-custom are copies from > > userdb-passwd-file and passdb-passwd-file. > > > > I try with this function now, thanks. > > > > 2010/1

Re: [Dovecot] Trying to building a customized auth plugin

2010-11-16 Thread Alex Baule
inside your plugin, have this function ? Every plugin must have a "init" function and it must call "plugin-name_init" 2010/11/16 Antonio Perez-Aranda > Is it needed to include custom db on usedb.c and passdb.c ? > > I can see at userdb.c: > > void userdbs_init(void) > > with all userdb regist

[Dovecot] Getting the Sender from a Email

2010-11-10 Thread Alex Baule
Hi Timo I need to get the Sender from a Email. Using this mail_get_first_header(mail, "From", &header) , i get the email in this format "Name " , in dovecot there is a way to get only the u...@dom ? Tks !

Re: [Dovecot] Getting plugin config by user

2010-11-05 Thread Alex Baule
Timo, the SQL Backend for the ExtraField, have a cache ? Or if 300 users connects to the IMAP 10 times, the backend will get 300 X 10 connections to the database ? 2010/11/5 Timo Sirainen > On Fri, 2010-11-05 at 11:40 -0200, Alex Baule wrote: > > There is a native way to

[Dovecot] Getting plugin config by user

2010-11-05 Thread Alex Baule
There is a native way to set/get a configuration to one plugin, to various users ? Like this: my_plugin{ user_a=configurations user_b=configurations user_.. user_z=configurations } I Have plugin and it can be enable/disabled by user. And i have a lot of users, like 10

Re: [Dovecot] Know when a Folder is Expunged or Deleted

2010-11-03 Thread Alex Baule
Ok, I will put the hook in delete function. Tks Timo ! 2010/11/3 Timo Sirainen > On Wed, 2010-11-03 at 13:09 -0200, Alex Baule wrote: > > > I said use the rename, because to delete a folder call the rename > function, > > ex(MyFolder --> Trash.MyFolder) > > Oh

Re: [Dovecot] Know when a Folder is Expunged or Deleted

2010-11-03 Thread Alex Baule
and don't be moved to Trash. 2010/11/3 Timo Sirainen > On Wed, 2010-11-03 at 09:38 -0200, Alex Baule wrote: > > > I try to do what you said, but i can't delete a folder from maildir, > because > > the box->opened it's allways true. > > It&#

Re: [Dovecot] Know when a Folder is Expunged or Deleted

2010-11-03 Thread Alex Baule
e "Mailbox already exist" if i return 0 the source email is flaged as Trash and don't show anymore in the source folder... Can i do this, returning some value that works well and dont cause a client message ? Tks Timo ! 2010/11/2 Timo Sirainen > On Mon, 2010-11-01 at 14:26 -020

[Dovecot] Know when a Folder is Expunged or Deleted

2010-11-01 Thread Alex Baule
Hi Timo and Everyone There is a way to know when a folder it's been deleted ? And if this folder is empty ? Let's explain why... I intercept the expunge function, to treat my files expunged, but when i expunge a folder, this function it's not called, and my emails don't get my treatment to

[Dovecot] Doubts with email copying

2010-09-28 Thread Alex Baule
Hi Timo. Trying to resolve my problem with the references in copying a email between Folders (when i move from inbox -> sent for example), i got some doubt. My plugin create a new ostream in v->save_begin, and i start a function from my library to create the reference, but when the email is b

Re: [Dovecot] get MAIL_FETCH_UIDL_FILE_NAME after save a email

2010-09-23 Thread Alex Baule
I want only the basename, it's the uid without flags. Em 23/09/2010 17:56, "Timo Sirainen" escreveu: > On 23.9.2010, at 21.31, Alex Baule wrote: > >> I Try to get the name from the saved email, you said to me, to get this with >> the get_special, ok... that

[Dovecot] get MAIL_FETCH_UIDL_FILE_NAME after save a email

2010-09-23 Thread Alex Baule
Hi Timo... I Try to get the name from the saved email, you said to me, to get this with the get_special, ok... thats work. I get the name with this: mail_get_special(t->save_ctx->dest_mail, MAIL_FETCH_UIDL_FILE_NAME, &fname); By i got some mistake... when i save a email that exist in the same di

[Dovecot] understand the struct message_header_line

2010-09-21 Thread Alex Baule
Timo... Using the src/lib-mail/test-istream-header-filter.c as example, and following your tips to jump my desired header value, but i need to store the value from the Header filtered. In the Exemple, the callback is this: static void filter_callback(struct message_header_line *hdr,

[Dovecot] replace istream and unref the old one...

2010-09-20 Thread Alex Baule
I Build a plugin, that do some stuffs with a email. To get the input istream, i use the "get_stream" function, like zlib does. I create a concat_stream, with the full_input[3]; struct istream *full_input[3]; //this like zlib input = imail->data.stream; //first input, using the input full_input

[Dovecot] istream_read like zlib, but without zlib

2010-08-31 Thread Alex Baule
Hy Timo ! I Made some modification in stream_read in zlib. I remove all zlib part, because i don't need this, but i need to read a istream to change it. Well, i create a size_t called supersize, with is a substitute for stream->zs.avail_in. The trouble is, my debug file have a lot of "READ Plugi

Re: [Dovecot] Plugin Handle input messages

2010-07-22 Thread Alex Baule
*** FINISH READ *\n"); fflush(emx_stream->debug); return ret; There is some wrong in read like this ? The better to do is copy the istream.c and change the funcions name to do the same thing, and add my header line ? 2010/6/26 Alex Baule &

Re: [Dovecot] Help with some features to do in a plugin

2010-07-22 Thread Alex Baule
Tks Timo ! It's sound like easy to do ! 2010/7/22 Timo Sirainen > On Thu, 2010-07-22 at 15:01 -0300, Alex Baule wrote: > > > I need to develop some plugins, but i can't know if is possible to do or > > not. > > > > 1 - There is a way to deny a emai

[Dovecot] Help with some features to do in a plugin

2010-07-22 Thread Alex Baule
Hello Everyone I need to develop some plugins, but i can't know if is possible to do or not. 1 - There is a way to deny a email to be moved from one folder to another ? example: the user is only allowed to move mails in Spam Folder to Trash Folder. If yes, were i can find a code example or

Re: [Dovecot] Expunge email Plugin

2010-06-29 Thread Alex Baule
mp;value);" ?? 2010/6/29 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. >

Re: [Dovecot] Plugin Handle input messages

2010-06-26 Thread Alex Baule
I will try to do like you said, and i will return later to said the result ! Tks. 2010/6/25 Timo Sirainen > On Mon, 2010-06-21 at 16:43 -0300, Alex Baule wrote: > > if (imail->data.stream != NULL || > >(_mail->uid == 0 && zuser->save_handler ==

Re: [Dovecot] Expunge email Plugin

2010-06-26 Thread Alex Baule
> 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

[Dovecot] Expunge email Plugin

2010-06-21 Thread Alex Baule
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 ?

[Dovecot] Plugin Handle input messages

2010-06-21 Thread Alex Baule
Hi Timo I try to change my plugin to read the input email to increase a header line and one \r\n. But i need help to get this input My plugin is based in zlib plugin. In "static int zlib_permail_get_stream" function, have it. if (imail->data.stream != NULL || (_mail->uid =

Re: [Dovecot] Zlib plugin dovecot 2.0beta4

2010-05-26 Thread Alex Baule
reate_emx(input); } But I do not know if it is correct. If you can tell me where is exactly the way or the point that i must catch the istream input, i do the rest. Tks Timo ! 2010/5/26 Timo Sirainen > On Tue, 2010-05-11 at 16:41 -0300, Alex Baule wrote: > > > But i nee

Re: [Dovecot] [SOLVED] %d is empty in mail_location

2010-05-14 Thread Alex Baule
Add in your auth,conf configuration: auth_default_realm = [your domain] 2010/5/14 Phil Howard > On Mon, May 10, 2010 at 15:21, Phil Howard wrote: > > > I have this in dovecot-postfix.conf: > > > > mail_location = > > > maildir:/home/mail/dnamesum=%12MLd/dname=%Ld/unamesum=%12MLn/uname=%Ln/mail

[Dovecot] Zlib plugin dovecot 2.0beta4

2010-05-11 Thread Alex Baule
Hi Timo... I made the plugin like you say. The header part is saved by dovecot, with o_stream_send , and the body with my function. This implementation, works fine. But i need to get / change some values to create the "link" from header to body. When a email is saved, have the S an W flags, th

[Dovecot] Bug in zlib Plugin (2.0)

2010-05-06 Thread Alex Baule
Hello everyone. I Made some tests in zlib plugin, and in ostream file (ostream-zlib.c) in o_stream_zlib_sendv function, have it: stream->ostream.offset += bytes; In struct mail_save_context, have saved_physical_size and it can be updated, acording with the observation. /* if non-zero,

[Dovecot] Plugin to handle message saved and handle move from tmp to cur/new

2010-05-05 Thread Alex Baule
Hello everyone I need to finish my plugin, but i depends from some stuffs in the save/move process that i can't find how its work. In new zlib plugin (2.0) , the message is saved compressed now, but i dont find how is done the process to write the file to tmp, and move it to the cur or new di

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-05-03 Thread Alex Baule
't see how getting the stream's > fd would help with anything. > > On Tue, 2010-04-20 at 11:54 -0300, Alex Baule wrote: > > Because my plugin will separate the body of the message header. > > > > With the FD I have control over the message to separate it. > >

[Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-30 Thread Alex Baule
Hello Everyone. There is possible to rename the email saved by a plugin, like zlib ? i explain i need to add 1 line in email header, because of that, i want to rewrite the filename to update the S and W flag. Tks !

[Dovecot] zlib plugin dovecot 2.0 - write email

2010-04-26 Thread Alex Baule
Hello Everyone. There is possible to rename the email writed by a plugin, like zlib ? i explain i need to add 1 line in email header, because of that, i want to rewrite the filename to update the S and W flag. Tks !

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-22 Thread Alex Baule
Hi Timo I'm doing the plugin based on what you said. But I'll add a line in the message header, so the S and W (size of email) flags, on the file name has to be changed ... There is a way to do that in the plugin? 2010/4/20 Alex Baule > If I had the file descriptor, I

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-20 Thread Alex Baule
ody to some other file that you create. Use the o_stream_send() > function to write the message header to the ostream (which does > basically the same as write(fd)). I don't see how getting the stream's > fd would help with anything. > > On Tue, 2010-04-20 at 11:54 -0300, A

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-20 Thread Alex Baule
11:40 -0300, Alex Baule wrote: > > > There is a way to get the file descriptor from output used in ostream > zlib > > plugin ? > > No. Why do you need it? You should be writing to ostream, not to its fd. > >

[Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-20 Thread Alex Baule
Hello Everyone... In zlib save mail have it: struct ostream *output; There is a way to get the file descriptor from output used in ostream zlib plugin ? to get in istream is i_stream_get_fd, but don't have o_stream_get_fd..

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-16 Thread Alex Baule
; On Fri, 2010-04-16 at 09:55 -0300, Alex Baule wrote: > > > > > Part of reading I already migrated, only that the piece of writing (the > new > > > part in the plugin) I need to understand some things about the > operation in > > > order to migrate and redo the

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-16 Thread Alex Baule
you explain to me ? Tks again ! 2010/4/16 Timo Sirainen > On Fri, 2010-04-09 at 11:42 -0300, Alex Baule wrote: > > > I developed a plugin based on the zlib plugin, but want to port it to > > dovecot 2.0. > > > > There are some differences in the 2.0 plugin, which

Re: [Dovecot] default domain empty

2010-04-14 Thread Alex Baule
Yes.. This is from auth.conf (dovecot 2.X) # Default realm/domain to use if none was specified. This is used for both # SASL realms and appending @domain to username in plaintext logins. #auth_default_realm = so, if you put in auth_default_realm, your default domain, it will append this to t

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
different from version 1.4 to 2.0. 2010/4/9 Alex Baule > I Dont want the configuration. > > I Want know how is implemented. > > Explain, the functions, the hooks to get write a email > > stuffs like this. > > 2010/4/8 Alex Baule > > Hi Everyone >> >

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
Hi Paschal You do not understand what I want. I developed a plugin based on the zlib plugin, but want to port it to dovecot 2.0. There are some differences in the 2.0 plugin, which I did not quite understand how it works for me to readjust it in my plugin. As in the source code there are not ma

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
I Dont want the configuration. I Want know how is implemented. Explain, the functions, the hooks to get write a email stuffs like this. 2010/4/8 Alex Baule > Hi Everyone > > Someone can explain to me the difference from zlib 1.2.X and 2.0 beta4 ?? > > In zlib from 2

[Dovecot] zlib Plugin Dovecot 2.0

2010-04-08 Thread Alex Baule
Hi Everyone Someone can explain to me the difference from zlib 1.2.X and 2.0 beta4 ?? In zlib from 2.0 beta4, Which part of the plugin is responsible for write the compressed message ?

[Dovecot] Get plugins configuration in dovecot 2.0

2010-03-30 Thread Alex Baule
In 1.X to get configuration Timo said. In v1.x they're in environment variables. So if you have: plugin { foo = bar } getenv("FOO") returns "bar". But, in 2.0 ?! getenv dont work

[Dovecot] What is the difference between the plugin zlib and imap-zlib ?

2010-03-24 Thread Alex Baule
What is the difference between the plugin zlib and imap-zlib ? in dovecot 1.2.X the zlib plugin works with imapimap-zlib is a complement to zlib ?

[Dovecot] Plugin like zlib

2010-03-12 Thread Alex Baule
Hi everyone. I rebuild a plugin, based on zlib plugin. The changes between this plugin and zlib, is the zlib stuffs is replaced by open, read, lseek, close. With "plain-text" files, its works ok. So, my file is encrypt, and the result from decrypt file is different from fread. Like zlib, i read fr

[Dovecot] plugin Again

2010-03-03 Thread Alex Baule
Hello Someone know ho work the istream-concat ? I made a copy of istream-concat, and use to manipulate my encrypted body. But i got some questions about the stream->pos, stream->skip and position of the message and pointer to buffer. My messages have the W= with the email size decrypted, an

[Dovecot] Little Help with Plugin

2010-02-26 Thread Alex Baule
Hi everyone. I Build a plugin to concat my body and header splited Its have 2 "versions". One is with the body without modifications. The second, is with the body with crypto, and this crypto increase a little the size of email. So, without crypto, works fine, but with crypto i got st

[Dovecot] Get some headers Variables

2010-02-10 Thread Alex Baule
Hello Everyone again !! I'm putting more functions in my plugin, and would need to access a value of one variable that is going to put in the header, how can I get this value by dovecot? example, I have the header: X-ThereisMy: yes How can I get this value inside a plugin ? There is something l

[Dovecot] Get plugins configuration

2010-02-09 Thread Alex Baule
Hello everyone There is a way to get configurations in dovecot.conf inside a plugin ?

Re: [Dovecot] Create New Plugin

2010-02-04 Thread Alex Baule
f.d or dovecot.conf, a configuration and read from my plugin to use with the plugin. Exemple: the folder that have my bodys, write this in configuration and get from configuration in dovecot.conf. Tks Again !! 2010/2/3 Timo Sirainen > On 4.2.2010, at 2.23, Alex Baule wrote: > > The

Re: [Dovecot] Create New Plugin

2010-02-03 Thread Alex Baule
Ok...There is a good example to do explicit, it's better because can be compiled separately from dovecot. Tks !! There is a date to the Dovecot 2.0 out as a official release ? I use the 2.0 version to make a my plugin. 2010/2/3 Timo Sirainen > On 3.2.2010, at 14.41, Alex Bau

[Dovecot] Create New Plugin

2010-02-03 Thread Alex Baule
i have a Little question I dont know to much the autoconf/automake...there is a command or something to do, to include my plugin in the Makefile for dovecot compile them when i compile the hole package ?? or i shoud go to the configure and makefile.am and put by hand ? I put my plugin in the

Re: [Dovecot] Plugin

2010-01-27 Thread Alex Baule
0x738) [0x806d628] -> /lib/libc.so.6(__libc_start_main+0xd8) [0xb75d47c8] -> imap [0x805d071] Jan 27 09:52:21 brc dovecot: dovecot: child 24407 (imap) killed with signal 6 (core dumps disabled) Why this happens ? The size of message dont change, it is only splited. 2010/1/20 Timo Sirainen &

[Dovecot] Plugin

2010-01-20 Thread Alex Baule
Hello Everyone... Some time ago, i send some questions about plugins and concat 2 file handles. So, there is another questions about this. Timo Sirainen send to me this modification, in src/lib-storage/index/maildir/maildir-mail.c struct istream *full_input[3]; full_input[0] = i_stream_create_f

[Dovecot] Plugins

2009-12-14 Thread Alex Baule
Hello everyone again. i try to do a plugin... and i see there is a lot of "hook_*" calls in various places There is some documentation about this hooks ? like: hook_mail_storage_created = is calling when the email is and go on Tks.

Re: [Dovecot] Developer Documentation

2009-12-11 Thread Alex Baule
Wow i am stupid ehehehehehe concat the input, not the filedescriptor. Tks again... Now its working ! 2009/12/10 Timo Sirainen > On Thu, 2009-12-10 at 18:10 -0200, Alex Baule wrote: > > do_open(mbox, "/storage/emexis/ > > exemplo.com.br/messages/alex/Mail

Re: [Dovecot] Developer Documentation

2009-12-10 Thread Alex Baule
Timo Sirainen > On Dec 10, 2009, at 11:16 AM, Alex Baule wrote: > > > Ok ... i understand... > > > > this is the last one...lol > > > > in zib plugin i see a implementation of i_stream_create_zlib, this is a > "substitution" to the i_stream_crea

Re: [Dovecot] Developer Documentation

2009-12-10 Thread Alex Baule
AP is more complicated Tks again ! 2009/12/10 Timo Sirainen > On Dec 10, 2009, at 7:33 AM, Alex Baule wrote: > > > Hi Timo... > > > > There is a way to do this with a plugin ? or you pass the zlib-plugin for > > reference ? > > You can do it with a plugin. I mentio

Re: [Dovecot] Developer Documentation

2009-12-10 Thread Alex Baule
i_stream_create_concat()... I will see the zlib-plugin code tks 2009/12/9 Timo Sirainen > On Wed, 2009-12-09 at 23:30 -0200, Alex Baule wrote: > > Let me explain to you > > > > i want to split the email in header and body...my smtp server do this > > for me but, to re

Re: [Dovecot] Developer Documentation

2009-12-09 Thread Alex Baule
s in "read time" is good for me There is no much reason to do that ? yes... i know... but like i say, its like a test to another thinks There is a way to do this ? 2009/12/9 Timo Sirainen > On Tue, 2009-12-08 at 21:42 -0200, Alex Baule wrote: > > I want to include lines

[Dovecot] Developer Documentation

2009-12-09 Thread Alex Baule
Hi Everyone I Try to make a modification in dovecot Maildir system I want to include lines from another file into every email when the user request to read this email. Is Like put some extras itens email. I try to find how to do this but what i understand is, every email is read "on the