Log mail access

2015-05-20 Thread Philipp Brüll
Hello, is it somehow possible to log the access to a mail? The log entry should be written, if a user fetches a mail via imap or pop3. It would be convenient for debugging. I've checked the Logging-Wiki and the docs for the mail_log plugin, but they seem to log any event but mail access. Best

Re: stacking istreams and ostreams

2014-12-12 Thread Philipp Brüll
Well, I've found the bug. I've got confused with the stream-stacking function pointers. The encryption istream was stacked on top of the parent and the ostream below the parent. That caused this very confusing bug. Best, Philipp Am 11.12.2014 um 12:16 schrieb Philipp Brüll: Hello, I'm

Re: stacking istreams and ostreams

2014-12-12 Thread Philipp Brüll
into dovecot's architecture can help. Kind regards, Philipp Am 12.12.2014 um 15:25 schrieb Philipp Brüll: Well, I've found the bug. I've got confused with the stream-stacking function pointers. The encryption istream was stacked on top of the parent and the ostream below the parent. That caused

stacking istreams and ostreams

2014-12-11 Thread Philipp Brüll
Hello, I'm developing an encryption plugin for dovecot and ran into a problem with the stacking of i/o-streams. The encryption i/o-streams are working fine on any kind of mail the test suite is passing through them. But as soon as the zlib plugin is enabled the logs show an cache error: failed:

[Dovecot] Finding memory leaks

2014-03-12 Thread Philipp Brüll
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I try to find a memory leak in a dovecot plugin that I develop. In order to find it, it would be helpful to print the total amount of memory that is currently allocated. This print could than spread over the source code and the memory

[Dovecot] Finding memory leaks

2014-03-12 Thread Philipp Brüll
Hello, I try to find a memory leak in a dovecot plugin that I develop. In order to find it, it would be helpful to print the total amount of memory that is currently allocated. This print could than spread over the source code and the memory consumption can be tracked. I've tried

Re: [Dovecot] Order of istream and ostream chains

2014-02-12 Thread Philipp Brüll
On 11/02/14 21:32, Timo Sirainen wrote: On 12.2.2014, at 2.27, Philipp Brüll philippbru...@gmail.com wrote: I'm creating a scrambler plugin, that adds an istream and an ostream to the stream-chain for the mail input/output. It works well until the zlib plugin is added to the configuration

[Dovecot] Order of istream and ostream chains

2014-02-11 Thread Philipp Brüll
Hi, I'm creating a scrambler plugin, that adds an istream and an ostream to the stream-chain for the mail input/output. It works well until the zlib plugin is added to the configuration. The scrambler should run before the zlib and encrypt the mail before it's compressed. Since, the plugin

Re: [Dovecot] Order of istream and ostream chains

2014-02-11 Thread Philipp Brüll
On 11/02/14 21:32, Timo Sirainen wrote: On 12.2.2014, at 2.27, Philipp Brüll philippbru...@gmail.com wrote: I'm creating a scrambler plugin, that adds an istream and an ostream to the stream-chain for the mail input/output. It works well until the zlib plugin is added to the configuration

[Dovecot] Plugin architecture

2014-02-06 Thread Philipp Brüll
Hi, I'm currently developing a scrambler plugin which should be used to store the mails encrypted on the disk. It uses a special ostream for encryption and an istream for decryption. The idea is, that if a mail arrives via LMTP it goes through the ostream and is written encrypted to disk.

Re: [Dovecot] Accessing plain text password from memory

2013-12-17 Thread Philipp Brüll
Hi Timo, thanks for the answer. I'm working on a plug in with an similar architecture. Is there also a way to pass that plain password to a mail filter script? Obviously, the %w option as mail filter script argument does not work. Kind regards, Philipp On 13/12/13 15:47, Timo Sirainen

[Dovecot] Plugin development - ostream and index cache size

2013-12-11 Thread Philipp Brüll
Hi, I'm new to this list, so first thanks for the dovecot tool! So far, it has been great to work with. Currently, I'm developing a scrambler plugin for dovecot, that should stores the mails encrypted. To do that, I've created the scrambler_ostream and scrambler_istream that does the