search for: mail_save_context

Displaying 20 results from an estimated 20 matches for "mail_save_context".

2012 May 29
4
per-mailbox message limits
...ster_imap; extern struct mail_search_register *mail_search_register_human; struct mail_storage_module_register mail_storage_module_register = { 0 }; struct mail_module_register mail_module_register = { 0 }; @@ -1620,22 +1621,28 @@ ctx->dest_mail = mail; } int mailbox_save_begin(struct mail_save_context **ctx, struct istream *input) { struct mailbox *box = (*ctx)->transaction->box; + struct mailbox_status status; int ret; if (mail_index_is_deleted(box->index)) { mailbox_set_deleted(box); return -1; } if (!(*ctx)->copying_via_save) (*ctx)->saving = TRUE; - if...
2012 Mar 31
1
Problem compiling dovecot-antispam on Ubuntu 11.10 using Doveot 2.0.13
...spam package is compiled for dovecot 2.0.15. So, i'm trying to compile a new dovecot antispam plugin. I followed dovecot wiki but i'm running into this error : Successfully compiled dspam.c (plugin). mailbox.c: In function 'antispam_save_begin': mailbox.c:138:12: error: 'struct mail_save_context' has no member named 'copying_via_save' mailbox.c: In function 'antispam_save_finish': mailbox.c:174:12: error: 'struct mail_save_context' has no member named 'copying_via_save' Failed to compile mailbox.c (plugin)! Any hint please ? Regards, -- Guillaum...
2013 Dec 11
1
Plugin development - ostream and index cache size
...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 encryption and that I hook in the mail storage process. The scrambler_ostream is stacked on top of the output stream of the mail_save_context (mail_save_context->data.output) and the scrambler_istream is attached to the input stream when the virtual function istream_opened in the mail_private struct is called. Basically, the encrypt/decrypt works, but during the process the data size changes slightly. And when I'm doing a FETC...
2012 Jan 17
1
Antispam plugin not compatible with Dovecot 2.1
Here is what I get when I try to compile the antispam plugin agaisnt Dovecot 2.1 ************** mailbox.c: In function 'antispam_save_begin': mailbox.c:138:12: error: 'struct mail_save_context' has no member named 'copying' mailbox.c: In function 'antispam_save_finish': mailbox.c:174:12: error: 'struct mail_save_context' has no member named 'copying' Failed to compile mailbox.c (plugin)! gmake[3]: *** [mailbox.plugin.o] Error 1 ************** The othe...
2008 Jul 18
2
quota vs. antispam issue
Can you help me maybe? I don't see the bug. QUOTA=maildir QUOTA_RULE='*:storage=100M' MAIL_PLUGINS="antispam quota" MAIL_PLUGIN_DIR=/home/johannes/Projects/dovecot/antispam gdb --args /home/johannes/Projects/dovecot/dovecot-1.1/src/imap/imap GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later
2013 Nov 27
1
dovecot-antispam plugin problem with multiple messages
Hi With dovecot 2.2.5, and dovecot-antispam built from a recent HEAD pull, when copying multiple messages to or from a Spam folder, the plugin sends multiple copies of the first message to the backend. I've tried this with the pipe and spool2dir backends. For example with the spool2dir backend, via IMAP doing A COPY 1:3 Spam yields 3 copies of message id 1 in the dir: dev:imap-8.1 rplatel
2010 Jun 21
1
Plugin Handle input messages
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 == 0 && zuser->save_handler == NULL)) { return
2016 Dec 01
2
Implementing secondary quota w/ "Archive" namespace
On Thu, Nov 24, 2016 at 9:10 PM, Mark Moseley <moseleymark at gmail.com> wrote: > On Thu, Nov 24, 2016 at 10:52 AM, Timo Sirainen <tss at iki.fi> wrote: > >> On 24 Nov 2016, at 9.33, Mark Moseley <moseleymark at gmail.com> wrote: >> > >> > On Wed, Nov 23, 2016 at 6:05 PM, Timo Sirainen <tss at iki.fi> wrote: >> > >> >> On
2012 Dec 13
5
dovecot-lda (2.1.12) segfaults
We uograded our dovecot from version 2.1.10 -> 2.10.12, but within the first hour of use, dovecot-lda would segfault during delivery. This left a lock file lying around causing the user's mail readers to hang; much hilarity ensues. All further deliveries to the same user will result in a crash. The only thing that fixes this condition is to blow away the user's INBOX cache index.
2008 Jul 11
1
Dovecot-1.1.1 with quota and antispam plugin - segmentation fault
Hello! I have port-built dovecot-1.1.1 on freebsd 6.3 i386 box. There is signal 11 on imap child occurs every time when i'm trying to send email. In fact, email is sending to MTA correctly, but when message moving to Sent folder segmentation error appears. I built dovecot and antispam plugin with -g3 -O0 -pipe With GDB I recieve next: GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software
2010 May 06
1
Bug in zlib Plugin (2.0)
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, overrides the physical size that should be saved. for example when using zlib plugin, this would contain the mail's uncompressed size. */ uoff_t saved_physical_size; in file zli...
2010 Sep 15
1
imap processing spinning on the CPU
...ymbol table info available. #8 0x00003a10 in cmd_copy (cmd=0x80e820) at cmd-copy.c:66 search_ctx = (struct mail_search_context *) 0x403900 src_trans = (struct mailbox_transaction_context *) 0x403230 srcset_ctx = { str = 0x282d0, first_uid = 0, last_uid = 4294967295 } save_ctx = (struct mail_save_context *) 0x0 mail = (struct mail *) 0x81bc20 src_uidset = (string_t *) 0x282d0 copy_count_r = (unsigned int *) Cannot access memory at address 0x0 -- Daniel J. Luke +========================================================+...
2011 Jan 19
1
Rewrite the mailbox copy functions works in imap but don't work in doveadm import command
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); struct mail_private *_mail = (struct mail_private *)mail; union mail_module_context *zmail = EMEXIS_MAIL_CONTEXT(_mail); struct istream *input;...
2008 Feb 13
1
How to log uid and keywords of delivered mail?
...0xcbd48f] -> /usr/local/libexec/dovecot/deliver(deliver_save+0x192) [0x80559ea] -> /usr/local/lib/dovecot/lda/lib90_cmusieve_plugin.so [0xaa16bf] -> /usr/local/lib/dovecot/lda/lib90_cmusieve_plugin.so [0xaaea0d] -> /usr/local/lib/dovecot/lda/lib9 static int mail_log_save_finish(struct mail_save_context *ctx, struct mail *dest_mail) { struct mail_log_mailbox *lbox = MAIL_LOG_CONTEXT(ctx->transaction->box); int ret; ret = lbox->super.save_finish(ctx, dest_mail); if (ret < 0) { return ret; } if (dest_mail != NULL) { const char...
2004 Apr 23
2
Envelope From changed - why?
Hi there. I am evaluating Dovecot as an IMAP server. I noticed on thing which irritates me. When a user saves a message to an IMAP folder with the Dovecot server, the envelope From line is changed to the address of that user, instead of keeping the From line of the original message. How can I have the original envelope From line preserved when saving messages? -- Tom -- Tom Alsberg -
2014 Dec 11
2
stacking istreams and ostreams
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: Cached message size larger than expected (214 > 206, box=INBOX, UID=1) I've already
2008 Feb 20
1
(message_parser_parse_next_block): assertion, failed: (ctx->input->eof)
...c:544 _data_stack_cur_id = 4 ret = 0 #9 0x000000000043a9f8 in maildir_save_cancel (_ctx=0x62f048) at maildir-save.c:554 ctx = (struct maildir_save_context *) 0x62f048 #10 0x000000000046bf99 in mailbox_save_cancel (_ctx=0x61e108) at mail-storage.c:736 ctx = (struct mail_save_context *) 0x62f048 #11 0x00000000004147a1 in cmd_append_finish (ctx=0x61e0c8) at cmd-append.c:137 __PRETTY_FUNCTION__ = "cmd_append_finish" #12 0x0000000000414f21 in cmd_append_continue_message (cmd=0x61e048) at cmd-append.c:364 client = (struct client *) 0x60d200 ctx =...
2010 Oct 10
1
Dovecot 2.0 lock upgrade assertion failure
...il-deliver.c:219 open_ctx = {user = 0x1ce6980, lda_mailbox_autocreate = false, lda_mailbox_autosubscribe = false} box = (struct mailbox *) 0x1aa2af0 trans_flags = <value optimized out> t = (struct mailbox_transaction_context *) 0x0 save_ctx = (struct mail_save_context *) 0x0 kw = (struct mail_keywords *) 0x0 error = MAIL_ERROR_NONE mailbox_name = 0x407ba1 "INBOX" errstr = <value optimized out> changes = {pool = 0x1cd3fb0, uid_validity = 1233133548, saved_uids = { arr = {buffer = 0x1cd3fd0, element_size...
2010 Mar 14
2
Dovecot 2.0beta3: Crash with mail_log plugin enabled
...ext *) 0x642310 mail_txn = (struct notify_mail_txn *) 0x0 #13 0x00007f5c7880c1e3 in notify_copy (ctx=0x667ed0, mail=0x6636f8) at notify-storage.c:113 ret = <value optimized out> #14 0x00007f5c79e4e29a in mailbox_copy (_ctx=0x7fffffffd7a0, mail=0x6636f8) at mail-storage.c:1330 ctx = (struct mail_save_context *) 0x667ed0 box = (struct mailbox *) 0x65cc98 keywords = (struct mail_keywords *) 0x67b300 ret = <value optimized out> #15 0x0000000000409631 in cmd_copy (cmd=0x650f38) at cmd-copy.c:66 client = (struct client *) 0x6507d8 dest_ns = <value optimized out> dest_storage = <value op...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...uot;mail-storage.h" #include <sys/time.h> +#include <stdlib.h> /* APPLE - catenate */ /* Don't allow internaldates to be too far in the future. At least with Maildir they can cause problems with incremental backups since internaldate is @@ -32,6 +39,21 @@ struct mail_save_context *save_ctx; unsigned int count; + /* APPLE - catenate */ + struct { + struct ostream *output; /* to pipe; input is from pipe */ + struct istream *literal_input; + uoff_t literal_size; + string_t *literal_url; + unsigned int parts; + + /* also, + msg_size is the cumulative size of the mes...