Displaying 9 results from an estimated 9 matches for "save_begin".
2012 May 29
4
per-mailbox message limits
...*mail_search_register_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)...
2010 Sep 28
0
Doubts with email copying
Hi Timo.....
Trying to resolve my problem with the references in copying a email between
Folders (when i move from inbox -> sent for example), i got some doubt.
My plugin create a new ostream in v->save_begin, and i start a function from
my library to create the reference, but when the email is been copying, the
new email don't pass in this function, and i don't start my function to
create a reference.
My doubt is, if copying a email is a "copy + paste", why the s->save_begin
it...
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
2010 Jul 13
1
mailbox_storage_vfuncs: mailbox_open -> ? in 2.0
...h dovecot internals is
in the subject. What happened to mailbox_open? Did it disappear? Did it
get renamed?
It appears that I am needing to override some methods:
if (need_folder_hook) {
/* override save_init to override want_mail, we need that */
box->v.save_begin = antispam_save_begin;
box->v.save_finish = antispam_save_finish;
box->v.transaction_begin =
antispam_mailbox_transaction_begin;
box->v.transaction_commit =
antispam_mailbox_transaction_commit;
box->v.transaction_rollback =...
2014 Jun 02
0
Dovecot 2.1.13: some questions about the mail-filter plugin
Looking at mail_filter_mailbox_allocated() of src/plugins/mail-filter/mail-filter-plugin.c:
if ((class_flags & MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS) == 0 &&
(class_flags & MAIL_STORAGE_CLASS_FLAG_BINARY_DATA) != 0 &&
muser->out_socket_path != NULL)
v->save_begin = mail_filter_mail_save_begin;
it seems that a backend with MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS unset and MAIL_STORAGE_CLASS_FLAG_BINARY_DATA set is expected by the plugin.
Technically, this would thus exclude the mbox backend, since its flag configuration seems to be exactly the opposite:
str...
2010 Oct 23
2
[stava@telcotec.se: [stava: antispam problem]]
Hi All,
I've built the dovecot-antispam-plugin from hg.dovecot.org and installed it.
I've turned on debugging with "mail_debug = yes" in dovecot.conf and restarted
dovecot. However, the antispam plugin module gets loaded by dovecot, but then
nothing, i.e. when moving mail from Inbox to Spam and vice versa, I see nothing.
How do I get debug messages from the
2017 Aug 30
2
Segmentation fault with doveadm search
Hi,
We have a Ubuntu 14.04 server with dovecot 2.2.9
If I try to run
/usr/bin/doveadm search -u email at exmaple.com mailbox Junk savedbefore 30d
It will dump a core file.
We have a similar config on an other server and there is no problem there.
Any ideas how to prevent the core dump?
root at triws2:~# gdb --args doveadm search -u email at example.com mailbox Junk savedbefore 30d
Reading
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
2017 Aug 30
2
Segmentation fault with doveadm search
..._deinit = 0x7ffff76e5b80 <fail_mailbox_search_deinit>,
search_next_nonblock = 0x7ffff76e5ae0 <fail_mailbox_search_next_nonblock>,
search_next_update_seq = 0x7ffff76e5af0 <fail_mailbox_search_next_update_seq>, save_alloc = 0x7ffff76e5b00 <fail_mailbox_save_alloc>,
save_begin = 0x7ffff69cfea0 <quota_save_begin>,
save_continue = 0x7ffff76e5b30 <fail_mailbox_save_continue>,
save_finish = 0x7ffff69cfe30 <quota_save_finish>,
save_cancel = 0x7ffff76e5b50 <fail_mailbox_save_cancel>,
copy = 0x7ffff69cfd30 <quota_copy>, transaction_...