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......
On Tue, 2010-04-20 at 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100420/84295981/attachment-0002.bin>
Because my plugin will separate the body of the message header. With the FD I have control over the message to separate it. Do you have any suggestions for this separation? I do not quite understand how the struct ostream works. Tks Timo. 2010/4/20 Timo Sirainen <tss at iki.fi>> On Tue, 2010-04-20 at 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. > >
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 !
Reasonably Related Threads
- Rewrite the ostream output method, to save messages in another directory.
- Doveadm
- 2.3.3: Panic: file ostream-zlib.c: line 37 (o_stream_zlib_close): assertion failed
- Bug in zlib Plugin (2.0)
- WG: on High Load using IMAPSYNC : Panic: file ostream-lzma.c: line 147: unreached. Dovecot 2.2.12 with zlib/XZ compression