search for: mailbox_transaction_context

Displaying 20 results from an estimated 46 matches for "mailbox_transaction_context".

2008 Oct 29
3
antispam plugin claims "antispam signature not found"
Hi, I am trying to setup the antispam plugin using the direct dspam backend. I have set antispam_signature = X-DSPAM-Signature in dovecot.conf and in all mails I have signature lines like X-DSPAM-Signature: 1,49084a24139132188715614 but still, if I try to move a mail into the spam folder, i get the IMAP error message "antispam signature not found". I thought it might have to do
2008 Apr 01
2
Wrong UIDs returned from mailbox_transaction_commit_get_uids()
Hi, Wrong UIDs are returned from mailbox_transaction_commit_get_uids() in dovecot-1.1.rc3. The problem is in: int mailbox_transaction_commit(struct mailbox_transaction_context **t) { uint32_t tmp; return mailbox_transaction_commit_get_uids(t, &tmp, &tmp, &tmp); } It should be: int mailbox_transaction_commit(struct mailbox_transaction_context **t) { uint32_t tmp1, tmp2, tmp3; return mailbox_transaction_commit_get_uids(t, &tmp1, &tm...
2007 Dec 11
1
dovecot deliver errors
...<DA>\016\b" str = (string_t *) 0x80ee120 #3 0x0805979f in deliver_save (namespaces=0x80f7a90, storage_r=0xbfb088e8, mailbox=0x80ded98 "INBOX", mail=0x8107a48, flags=0, keywords=0x0) at deliver.c:222 box = (struct mailbox *) 0x810be58 t = (struct mailbox_transaction_context *) 0x0 kw = (struct mail_keywords *) 0x0 error = MAIL_ERROR_NONE mailbox_name = 0x80eda80 "INBOX" ret = 0 #4 0x0805ac15 in main (argc=5, argv=Cannot access memory at address 0x4 ) at deliver.c:954 error_string = <value optimized out>...
2010 Oct 10
1
Dovecot 2.0 lock upgrade assertion failure
...=<value optimized out>) at maildir-sync-index.c:332 mbox = (struct maildir_mailbox *) 0x1aa2af0 time_diff = <value optimized out> ret = 0 #10 0x00007fe8060ce0b2 in maildir_transaction_save_commit_pre (_ctx=0x1d47a40) at maildir-save.c:984 _t = (struct mailbox_transaction_context *) 0x1d0bd80 sync_flags = <value optimized out> ret = <value optimized out> __FUNCTION__ = "maildir_transaction_save_commit_pre" #11 0x00007fe8060c9213 in index_transaction_index_commit ( index_trans=0x1afbad0, result_r=0x7fff71f8d090) at index-tran...
2008 Oct 06
2
Dovecot 1.1.4 crash
...qbox = (struct quota_mailbox *) 0x100422d0 qt = (struct quota_transaction_context *) 0x10032f60 #2 0x0048c90c in mailbox_transaction_commit_get_uids (_t=0x5, uid_validity_r=0x7fff7f70, first_saved_uid_r=0x10009f90, last_saved_uid_r=0x1006e6b0) at mail-storage.c:689 t = (struct mailbox_transaction_context *) 0x4 #3 0x00413430 in cmd_copy (cmd=0x100160c0) at cmd-copy.c:141 client = (struct client *) 0x10015e18 storage = (struct mail_storage *) 0x10015730 destbox = (struct mailbox *) 0x10042090 t = (struct mailbox_transaction_context *) 0x0 search_arg = (struct...
2008 Jan 26
2
dovecot HEAD, assertion failed after 7193:e5af14239137 changeset
...py (client=0x86fe3180, destbox=0x7ee22028, t=0x876b3300, search_args=0x84d55068, src_uidset_r=0x52fe, copy_count_r=0x0) at cmd-copy.c:66 ---Type <return> to continue, or q <return> to quit--- search_ctx = (struct mail_search_context *) 0x876b3700 src_trans = (struct mailbox_transaction_context *) 0x876b3500 keywords = (struct mail_keywords *) 0x0 keywords_list = (const char * const *) 0x87c890e8 mail = (struct mail *) 0x7ee27028 copy_count = 1 srcset_ctx = {str = 0x83e872f0, first_uid = 0, last_uid = 4294967295} src_uidset = (string_t *) 0...
2010 May 20
1
Patch for logging variables
...map-expunge.c 2010-05-19 16:26:31.529833893 -0600 *************** *** 5,18 **** #include "mail-search-build.h" #include "imap-expunge.h" ! int imap_expunge(struct mailbox *box, struct mail_search_arg *next_search_arg) { struct mail_search_context *ctx; struct mailbox_transaction_context *t; struct mail *mail; struct mail_search_args *search_args; bool expunges = FALSE; if (mailbox_is_readonly(box)) { /* silently ignore */ return 0; --- 5,21 ---- #include "mail-search-build.h" #include "imap-expunge.h" ! int imap_expunge(struct client *...
2006 Dec 10
2
segfault in RC15
...ne. Reading symbols from /usr/libexec/ld-elf.so.1...done. #0 maildir_save_file_get_path (_t=0x80d72c0, seq=37) at maildir-save.c:242 242 i_assert(seq >= ctx->first_seq); (gdb) bt full #0 maildir_save_file_get_path (_t=0x80d72c0, seq=37) at maildir-save.c:242 _t = (struct mailbox_transaction_context *) 0x80d72c0 seq = 37 ctx = (struct maildir_save_context *) 0x0 mf = (struct maildir_filename *) 0x80d72c0 #1 0x80682ca in maildir_mail_get_virtual_size (_mail=0x80e9440) at maildir-mail.c:145 mail = (struct index_mail *) 0x80e9440 mbox = (struct maildir_mai...
2010 May 19
1
logging
I am looking through the logging options and wondering if there are a couple of things that we can do 1. Logouts don't seem to show the IP address of the logout, we typically see multiple sessions at a time and wondering if there is a way to tie the logouts to an IP 2. POP logouts show the number of messages retrieved/deleted but I don't see a way to do this with IMAP, is there a logout
2010 Apr 03
1
dovecot 2 beta4 errors & core dumps
..._FUNCTION__ = "index_transaction_rollback" #7 0xb7cdaaea in quota_mailbox_transaction_rollback (ctx=0x80b2a90) at quota-storage.c:112 qt = (struct quota_transaction_context *) 0x80a9628 #8 0xb7ef03f0 in mailbox_transaction_rollback (_t=0x808d780) at mail- storage.c:1155 t = (struct mailbox_transaction_context *) 0x6aeb #9 0xb7cda323 in quota_mailbox_sync_cleanup (qbox=0x808d6c0) at quota- storage.c:246 No locals. #10 0xb7cda4df in quota_mailbox_sync_notify (box=0x808d340, uid=0, sync_type=<value optimized out>) at quota-storage.c:274 qbox = (struct quota_mailbox *) 0x808d6c0 i = <value op...
2006 Feb 03
0
rquotad (NFS) quota plugin
...x; + } + + static int + rquotad_quota_transaction_commit(struct quota_transaction_context *ctx) + { + i_free(ctx); + return 0; + } + + static void + rquotad_quota_transaction_rollback(struct quota_transaction_context *ctx) + { + i_free(ctx); + } + + static int + rquotad_quota_try_alloc(struct mailbox_transaction_context *ctx __attr_unused__, + struct quota *_quota __attr_unused__, + struct mail *mail __attr_unused__) + { + return 1; + } + + static void + rquotad_quota_alloc(struct mailbox_transaction_context *ctx __attr_unused__, + struct quota *quota __attr_unused__, + struct mail *mail __attr...
2008 Apr 19
2
mailtrain with dovecot antispam plugin
Hello all, and Johannes if you're around, I was trying to set up the "new" antispam plugin with the mailtrain backend, and i was trying to use the sendmail binary that's part of a qmail system. The message wouldn't get sent and i kept getting exit error 100 from the /var/qmail/bin/sendmail binary. To try to figure out what was happening, i mean a fake sendmail program,
2009 Apr 07
2
Segfault in dovecot 1.2rc2 with quota + public namespace enabled
...er=0x0) at quota-storage.c:482 No locals. #2 0xb7db98d8 in quota_transaction_begin (box=0x9771440) at quota.c:739 user = (struct mail_user *) 0x0 #3 0xb7dbfdee in quota_mailbox_transaction_begin (box=0x9771440, flags=MAILBOX_TRANSACTION_FLAG_HIDE) at quota-storage.c:87 t = (struct mailbox_transaction_context *) 0x977bac0 qt = <value optimized out> #4 0xb7daf55e in fts_transaction_begin (box=0x9771440, flags=MAILBOX_TRANSACTION_FLAG_HIDE) at fts-storage.c:937 fbox = (struct fts_mailbox *) 0x978ac80 t = <value optimized out> #5 0x080b38ae in mailbox_transaction_begin...
2006 Oct 04
1
fix: LDA logging
...Durham DH1 3LE : : Phone: +44 191 334 2752 U.K. : -------------- next part -------------- --- deliver.c.rc7+ 2006-09-25 10:36:59.885645000 +0100 +++ deliver.c 2006-10-04 18:01:31.910181000 +0100 @@ -103,12 +103,15 @@ struct mailbox *box; struct mailbox_transaction_context *t; struct mail_keywords *kw; + const char *str; int ret = 0; box = mailbox_open_or_create_synced(storage, mailbox); if (box == NULL) return -1; + str = mail_get_first_header(mail, "Message-ID"); + t = mailbox_transaction_begin(box, MAILBOX_TRANSACTION_FLAG_EXTERNAL);...
2010 Sep 15
1
imap processing spinning on the CPU
...symbol table info available. #6 0x000ecc58 in mail_storage_copy () No symbol table info available. #7 0x000f5b80 in mailbox_copy () No symbol 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...
2016 Nov 28
6
Antispam plugin: insufficent error messages
...dspam was called. It's hard to study the source code, because there are hardly any comments. I have been able to trace the problem to function signature_extract_to_list() in signature.c. There, -1 is returned: int signature_extract_to_list(const struct signature_config *cfg, struct mailbox_transaction_context *t, struct mail *mail, struct siglist **list, enum classification wanted) { const char *const *signatures; struct siglist *item; signatures = get_mail_headers(mail, cfg->signature_hdr); if (!signatures || !signatures[0]) { if (!cfg->signature_nosig_ignore) { mail_...
2008 Oct 09
5
Panic 1.1.4
...0 _data_stack_cur_id = 4 name = <value optimized out> #18 0x0805a142 in cmd_copy (cmd=0x80fb9c8) at cmd-copy.c:66 client = (struct client *) 0x80fa548 storage = (struct mail_storage *) 0x80fb108 destbox = (struct mailbox *) 0x810f358 t = (struct mailbox_transaction_context *) 0x810ff00 search_arg = <value optimized out> messageset = 0x80ffac0 "737" mailbox = 0x80ffac8 "Trash" src_uidset = <value optimized out> msg = <value optimized out> sync_flags = <value optimized out>...
2016 Dec 17
0
Antispam plugin: insufficent error messages
...hard to study the source code, because there are hardly any comments. > > I have been able to trace the problem to function signature_extract_to_list() > in signature.c. There, -1 is returned: > > int signature_extract_to_list(const struct signature_config *cfg, > struct mailbox_transaction_context *t, > struct mail *mail, struct siglist **list, > enum classification wanted) > { > const char *const *signatures; > struct siglist *item; > > signatures = get_mail_headers(mail, cfg->signature_hdr); > if (!signatures || !signatures[0]) { > if (...
2008 Jul 08
3
antispam plugin, amavis and sa-learn
Hello, I would like to use the Dovecot antispam plugin to train SpamAssassin via sa-learn. I compiled the plugin and got it to work with the sendmail backend, which I tested by having it send a message to me. As I'm calling SpamAssassin with amavisd-new, I have a system-wide Bayes db, maintained by the amavis user. As expected, the antispam plugin calls the configured binary as the mail user
2008 Feb 13
1
How to log uid and keywords of delivered mail?
Hi, I?d like to extend the mail_log plugin to log the uid and keywords of a mail delivered by LDA. The keywords are set by the sieve plugin. I added a mail_log_save_finish() function hook listed below. However, the uid of the mail is always zero and trying to get the keywords results in assertion failure, probably because the message is not committed yet: Feb 13 08:07:42 ha-test1 deliver(test1