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 fly", but i dont find exactly where... i didnt find some "read" to do this. Some one can help me to do this ? Tks !
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? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091209/9c9cf30f/attachment-0002.bin>
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" 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 <tss at iki.fi>> 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? > >
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 functions ? I try to do a way to save some space in disc, spliting the head and body in 2 files....because sometimes the users have the same email (Cc/CCb). Doing this, i will use 1 body to various headers.... In delivery by SMTP is easy, split in 2 and write the files... but in IMAP is more complicated.... Tks again ! 2009/12/10 Timo Sirainen <tss at iki.fi>> 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 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_concat()... > > Right. > >