search for: mail_storage_set_error

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

2008 Sep 21
2
antispam plugin signature-log backend with v1.1.2
...ure-log.c: In function ?backend_start?: signature-log.c:54: error: incompatible type for argument 2 of ?dict_init? signature-log.c:54: error: too few arguments to function ?dict_init? signature-log.c: In function ?backend_handle_mail?: signature-log.c:97: error: incompatible type for argument 2 of ?mail_storage_set_error? signature-log.c:97: error: too few arguments to function ?mail_storage_set_error? signature-log.c:128: error: incompatible type for argument 2 of ?mail_storage_set_error? signature-log.c:128: error: too few arguments to function ?mail_storage_set_error? make: *** [signature-log.o] Error 1 Thanks,...
2012 May 29
4
per-mailbox message limits
..._index_is_deleted(box->index)) { mailbox_set_deleted(box); return -1; } if (!(*ctx)->copying_via_save) (*ctx)->saving = TRUE; - if (box->v.save_begin == NULL) { + mailbox_get_status(box, STATUS_MESSAGES, &status); + if (status.messages >= MAX_MSGS_PER_MAILBOX) { + mail_storage_set_error(box->storage, MAIL_ERROR_NOSPACE, + "Mailbox full: Too many messages"); + ret = -1; + } else if (box->v.save_begin == NULL) { mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE, "Saving messages not supported"); ret = -1; } else { re...
2009 Jun 15
1
Dovecot Antispam plugin
Timo, Christian has reported an error to me on dovecot 1.0.7, where the following code: 199 if (i_stream_read_data(mailstream, &beginning, &size, 5) < 0 || 200 size < 5) { 201 ret = -1; 202 mail_storage_set_error(t->box->storage, 203 ME(NOTPOSSIBLE) 204 "Failed to read mail beginning"); 205 goto failed_to_copy; 206 } 207 208 /* "From "? skip line */ 209 if (...
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
2016 Aug 16
3
[patch] Improved error checking for the dovecot-antispam-plugin
Hi, Hopefully this is the right channel for such a patch. I have a minor enhancement to submit for the antispam plugin http://hg.dovecot.org/dovecot-antispam-plugin It adds minimal error checking for the sendmail_binary, otherwise the reported error in case of a missing binary or one with missing permissions is generic and not useful. Thanks, Robert -- http://robert.muntea.nu/
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,
2015 Sep 03
1
Mailbox can't be created
...o. I'd maybe try recompiling Dovecot or something. > dovecot sources 2.2.18 (src/lib-storage/fail-mailbox.c): static int fail_mailbox_create(struct mailbox *box, const struct mailbox_update *update ATTR_UNUSED, bool directory ATTR_UNUSED) { mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE, "Mailbox can't be created"); return -1; } -- Paulo Matos
2003 Apr 05
0
maildir_copy_with_hardlinks doesn't work
...le fix follows. --- src/lib-storage/index/maildir/maildir-copy.c 19 Feb 2003 21:32:21 -0000 1.21 +++ src/lib-storage/index/maildir/maildir-copy.c 5 Apr 2003 09:23:34 -0000 @@ -113,7 +113,7 @@ ret2 = index_messageset_deinit(ctx); if (ret2 < 0) ret = -1; - else { + else if (ret2 == 0) { mail_storage_set_error(src->box.storage, "Some of the requested messages no longer exist."); ret = -1; -- fuyuki
2014 Jun 26
1
Bug in quota_get_status
Hi, the configuration option lmtp_rcpt_check_quota = yes didn't work, so I traced down the problem: quota_get_status (quota_storage.c:89) calls quota_test_alloc (quota.c:1352) with size = 0 bytes, which leads always to a FALSE result in quota_is_over (quota.c:1305). I've fixed the function quota_is_over by considering ctx->bytes_over and ctx->count_over. See the included
2006 Apr 19
0
[patch] Re: Test migration (IMAP copy) and INTERNALDATE?]
..._set_critical(STORAGE(ctx->mbox->storage), + "utime(%s) failed: %m", new_path); + } + } + } else { ret = -1; if (ENOSPACE(errno)) { mail_storage_set_error(STORAGE(ctx->mbox->storage), @@ -332,18 +343,6 @@ t_push(); path = t_strconcat(ctx->tmpdir, "/", ctx->files->basename, NULL); - if (ctx->received_date != (time_t)-1) { - /* set the received_date by modifying mtime */ - b...
2016 Nov 28
6
Antispam plugin: insufficent error messages
...ntext *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_storage_set_error(t->box->storage, ME(NOTPOSSIBLE) "antispam signature not found"); return -1; /* <-- HERE */ } else { return 0; } } while (signatures[1]) signatures++; item = i_new(struct siglist, 1); item->next = *list; item-&g...
2012 Sep 05
1
Trouble implementing Antispam plug-in for Dovecot
...from Inbox to "Junk" directory: "[CANNOT] antispam plugin not configured" That exact phrase appears only once in a Google search ( http://dovecot-antispam.sourcearchive.com/documentation/1.1plus-p20090218.git.g28075fa/mailtrain_8c-source.html ): if (!hamaddr || !spamaddr) { mail_storage_set_error(t->box->storage, ME(NOTPOSSIBLE) "antispam plugin not configured"); return -1; } Based on the surrounding source code, which I realize may be old, it seems that Ham and Spam addresses are required, or similar. I am using the following configuration options: /etc/dovecot...
2016 Dec 17
0
Antispam plugin: insufficent error messages
...list **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_storage_set_error(t->box->storage, > ME(NOTPOSSIBLE) > "antispam signature not found"); > return -1; /* <-- HERE */ > } else { > return 0; > } > } > > while (signatures[1]) > signatures++; > > item =...
2013 Aug 01
1
Antispam folder names
Is there anywhere a collection of folder names for the antispam_trash and antispam_spam configuration? Our problem is that in academia, you have a vast amount of different clients, and some, like Microsoft, use language-specific folder names *on the server*. So we're now collecting folder names to better handle the rare cases. Two more problems: 1. We needed to fix UTF-8 handling in the
2016 Aug 18
3
[patch] Improved error checking for the dovecot-antispam-plugin
...ons is generic and not useful. >> >> Thanks, >> >> Robert > > Robert, I like that you did this. > > Beyond that and without even looking at the actual code, I'm curious why > you: > > + if (access(cfg->binary, F_OK) == -1) > + { > + mail_storage_set_error(storage, MAIL_ERROR_TEMP, "mail_sendmail > file does not exist"); > > instead of finding a way to include the value of cfg->binary in the > error message string. > > This might not be needed if it's really obvious from the config file > what the path to the exe...
2008 Aug 20
3
Dovecot & (Al)pine - resaving messages to Inbox
I have a x86 Linux box running Fedora 4. Up until 2008 I was using pine 4.64 and Dovecot 0.99.x. In early 2008 I transitioned to Alpine 1.10, and didn't notice any major changes. I upgraded to Dovecot 1.0.15 this past weekend. My dovecot -n settings are at the bottom of the email. I've noticed a change since Dovecot was upgraded. I used to reorder items within my INBOX in al/pine by
2008 Jan 25
3
symbolic links to root node
Hello, I have a question about the way Dovecot limits file system access. Currently we're using Dovecot 1.0.5 (Solaris 10). In some cases users have a symbolic link like "z: -> /" in their mail directory. As a result there are log entries like Jan 25 13:30:31 imap1 dovecot: [ID 107833 mail.error] IMAP(xyz):
2015 Aug 27
4
Mailbox can't be created
Hi, I have setup postfix master.cf to use dovecot-lda to deliver (using -m) all messages to PreInbox: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -a ${recipient} -d ${user}@${nexthop} -m PreINBOX And enabled lda_mailbox_autocreate. The message I have now it: Aug 27 10:02:29 lda(): Info:
2009 Jun 13
3
dovecot-antispam plugin and "Failed to call dspam" message
Hi, I had this working until I recently upgraded Dovecot, and now I'm getting a message back from Thunderbird of "Failed to call dspam." when I attempt to move a message into one of the designated spam folders. However, I know from looking at the dspam system.log file, the retraining actually happens - so it -does- appear to be calling dspam. It appears that the 'move'
2009 Feb 03
4
Dovecot-antispam does not work
Hi, I have installed dovecot-antispam and configured it this way (as in the doc) with the dspam exe: protocol imap { mail_plugins = antispam mail_plugin_dir = /usr/lib64/dovecot/imap } plugin { # For dovecot-antispam: antispam_signature = X-DSPAM-Signature antispam_trash = trash;Trash;Deleted Items antispam_spam = SPAM;Junk #antispam_unsure = unsure