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/Maildir/body_test", &fd1); >

Re: [Dovecot] Developer Documentation

2009-12-10 Thread Timo Sirainen
On Thu, 2009-12-10 at 18:10 -0200, Alex Baule wrote: > do_open(mbox, "/storage/emexis/ > exemplo.com.br/messages/alex/Maildir/body_test", &fd1); > fdp[0] = fd; > fdp[1] = fd1; > > input = i_stream_create_fd(fd, 0, TRUE); > input = i_stream_create_fd(fd1, 0, TRUE); > input =

Re: [Dovecot] Developer Documentation

2009-12-10 Thread Alex Baule
Hi Timo For tests i do it: In src/lib-storage/index/maildir/maildir-mail.c In the final of function maildir_open_mail i change the i_stream_create_fd to this: --- origin -- int fd = -1; . . . . . if (fd == -1) { *deleted_r = TRUE; return NULL; } i

Re: [Dovecot] Developer Documentation

2009-12-10 Thread 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_create_fd , right ? > > So, i need to do every think like in istream-zlib.c (cl

Re: [Dovecot] Developer Documentation

2009-12-10 Thread Alex Baule
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_create_fd , right ? So, i need to do every think like in istream-zlib.c (close, destroy, read, seek, stat and sync) to swap the original functi

Re: [Dovecot] Developer Documentation

2009-12-10 Thread 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 mention zlib plugin, because it works in a similar way by reading gzipped maildir files. > I can made this in t

Re: [Dovecot] Developer Documentation

2009-12-10 Thread Alex Baule
Hi Timo... There is a way to do this with a plugin ? or you pass the zlib-plugin for reference ? I can made this in the same monent the i_stream_create_fd() open the email in maildir, and make a extra i_stream_create_fd() to my file.. then put this 2 streams (email + myfile) in i_stream_create

Re: [Dovecot] Developer Documentation

2009-12-09 Thread 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 read again in dovecot, i need to "point" the email > to this two files. > > This division in two parts is more like a tes

Re: [Dovecot] Developer Documentation

2009-12-09 Thread Alex Baule
Let me explain to you i want to split the email in header and body...my smtp server do this for me but, to read again in dovecot, i need to "point" the email to this two files. This division in two parts is more like a test... and if the dovecot can join again this two files in "read time

Re: [Dovecot] Developer Documentation

2009-12-09 Thread Timo Sirainen
On Tue, 2009-12-08 at 21:42 -0200, Alex Baule wrote: > I want to include lines from another file into every email when the user > request to read this email. Why do you want this? Why not add the extra contents on the SMTP server side when the mail is being delivered? signature.asc Description:

[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

Re: [Dovecot] Searching the Archives (was: Re: dovecot developer documentation)

2008-05-25 Thread Timo Sirainen
On Wed, 2008-05-21 at 23:49 -0400, John Simpson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 2008-05-15, at 0645, Karsten Bräckelmann wrote: > > > > Also, dovecot.org offers list access by IMAP. :) > > > > See http://dovecot.org/mailinglists.html > > how would somebody who has

Re: [Dovecot] Searching the Archives (was: Re: dovecot developer documentation)

2008-05-22 Thread Kenneth Porter
On Wednesday, May 21, 2008 11:49 PM -0400 John Simpson <[EMAIL PROTECTED]> wrote: how would somebody who has an existing mailing list (managed by ezmlm-idx) set up IMAP access to their list archives like this? That would make a nice HOWTO for the wiki. I'd also like to see the answer for a m

Re: [Dovecot] Searching the Archives (was: Re: dovecot developer documentation)

2008-05-21 Thread John Simpson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2008-05-15, at 0645, Karsten Bräckelmann wrote: Also, dovecot.org offers list access by IMAP. :) See http://dovecot.org/mailinglists.html how would somebody who has an existing mailing list (managed by ezmlm- idx) set up IMAP access to their

Re: [Dovecot] dovecot developer documentation

2008-05-15 Thread Timo Sirainen
On May 15, 2008, at 10:25 AM, Piotr Wadas wrote: I want to create some specific plugin for dovecot v1.1 (rc5). Where can I find some developer documentation ? Unfortunately I haven't had time to write much yet. http://wiki.dovecot.org/Design has something. Can I build my plugin separately

[Dovecot] Searching the Archives (was: Re: dovecot developer documentation)

2008-05-15 Thread Karsten Bräckelmann
On Thu, 2008-05-15 at 09:25 +0200, Piotr Wadas wrote: > [...] AFAIK there's no search for mailing list archives > available, to let me search for some older guidance in > this case :( You can use google, by adding site:dovecot.org to the search. The dovecot list is one of the last fine mailing li

[Dovecot] dovecot developer documentation

2008-05-15 Thread Piotr Wadas
Hello, I want to create some specific plugin for dovecot v1.1 (rc5). Where can I find some developer documentation ? Can I build my plugin separately, or do I need to rebuild dovecot again ? I'm looking into code, and analyzing some simple plugins, but hooks documentation or any hints you could