Displaying 20 results from an estimated 28 matches for "mail_get_first_header".
2011 Jun 10
1
Explain about (mail_get_first_header(mail, "From", &header)
Hi Timo...
Inside my plugin, i use the (mail_get_first_header(mail, "From",
&header) function, to get the email From to put in some Blacklist.
Looking in the header under this mail, we have 2 "From" fields.
Using the function above, i get the Second "From", but my MTA (exim)
look in to The First From, in the First Line, in...
2007 Apr 26
2
SEGV with Dovecot v1.0.0 Deliver and cmusieve v1.0.1 and vacation
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have a small Sieve script that tries to use vacation that segfaults.
The script is the one from http://wiki.dovecot.org/LDA/Sieve.
When I change the email address (I changed the local part into "skai"),
hence, vacation is skipped, the mail is delivered without any problem.
==== script start
require ["fileinto",
2007 Sep 29
3
plugin problem
...1.
There are some API changes that warranted an update of the plugin.
Also, I wanted the dspam_plugin to be able to handle pristine mails
for dspam retraining, as opposed to the signature based retraining.
Question:
How can I retrieve the full unix path for a specific mail?
The original code uses mail_get_first_header() to retrieve the
signature header. I need something like mail_get_mail_file_path(&path)
which I then could pass on to dspam. Is there some such function
available?
Thanks in advance
/Lars
2015 Jun 19
0
crash dovecot 2.2.18
...(+0x707be) [0x7f9298c437be] ->
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f9298bf11aa] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0x2bd9a) [0x7f9298ee2d9a] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0x98f8b) [0x7f9298f4ff8b] ->
/usr/lib/dovecot/libdovecot-storage.so.0(index_mail_get_first_header+0xb9)
[0x7f9298f502c9] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_get_first_header+0x38)
[0x7f9298ee3d18] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xabfa2)
[0x7f9298f62fa2] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xac1e2)
[0x7f9298f631e2] -> /usr/lib/dovecot/libdovec...
2007 Oct 01
2
plugin advice needed
I'm working on a dovecot plugin.
What's the easiest way to read a specific
mail header like "To" or "From"?
Cheers
/Lars
2005 Oct 27
1
dovecot-lda cvs
I am using dovecot-lda from cvs (checked out on september the 21st) and
dovecot 1.0alpha2 (not yet upgraded ok).
I have a strange feeling about "redirect" feature.
Let's see two sieve scripts examples:
# ex1
require ["fileinto", "vacation"];
if header :is ["blabla"] "blabla" { fileinto "blabla"; }
redirect
2006 Jul 19
0
data corruption in delivery agent when forwarding
....2.1 mail-send.c
--- mail-send.c 11 Jun 2006 11:10:55 -0000 1.1.2.1
+++ mail-send.c 19 Jul 2006 09:28:18 -0000
@@ -116,16 +116,17 @@
struct smtp_client *smtp_client;
FILE *f;
const unsigned char *data;
+ const char *return_path;
size_t size;
int ret;
+ return_path = mail_get_first_header(mail, "Return-Path");
+
input = mail_get_stream(mail, NULL, NULL);
if (input == NULL)
return -1;
- smtp_client = smtp_client_open(forwardto,
- mail_get_first_header(mail, "Return-Path"),
- &f);
+ smtp_client = smtp_client_open(forwardto, r...
2010 Feb 10
1
Get some headers Variables
Hello Everyone again !!
I'm putting more functions in my plugin, and would need to access a value of
one variable that is going to put in the header, how can I get this value by
dovecot?
example, I have the header:
X-ThereisMy: yes
How can I get this value inside a plugin ?
There is something like getHeaderVar("X-ThereisMy") ?
2016 Dec 15
0
imap Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0 on Fedora 24
...so.0(+0x91ab2) [0x7ff01e98cab2] -> /usr/lib64/dovecot/libdovecot.so.0(+0x91bad) [0x7ff01e98cbad] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7ff01e925f41] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xaa1ed) [0x7ff01ecc01ed] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_get_first_header+0xd2) [0x7ff01ecc0652] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_first_header+0x3d) [0x7ff01ec4c88d] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xbe717) [0x7ff01ecd4717] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xbe952) [0x7ff01ecd4952] -> /usr/lib64/dovecot/libdo...
2007 Aug 15
2
deliver assertion failure
...ssertion failed: (ret != -1)
- Last output repeated twice -
Raw backtrace:
/usr/libexec/dovecot/deliver(i_syslog_panic_handler+0x2b) [0x493125]
-> /usr/libexec/dovecot/deliver(i_fatal+0) [0x492b17]
-> /usr/libexec/dovecot/deliver [0x44f7cf]
-> /usr/libexec/dovecot/deliver(index_mail_get_first_header+0x30) [0x44fb9b]
-> /usr/libexec/dovecot/deliver(mail_get_first_header+0x3a) [0x47ca3d]
-> /usr/libexec/dovecot/deliver(deliver_get_return_address+0x21) [0x41453b]
-> /usr/lib/dovecot/lda/lib90_cmusieve_plugin.so(cmu_sieve_run+0x14b) [0x2b3687f194a1]
-> /usr/lib/dovecot/lda/lib90_cm...
2010 Aug 08
1
Dovecot 2.0.rc4 core dumped with Alpine 2.00
...eader+0x2c) [0xa2fe8c] -> /usr/local/Dovecot-2.0.rc4/lib/dovecot/libdovecot-storage.so.0(index_mail_parse_headers+0x102) [0x1f40d2] -> /usr/local/Dovecot-2.0.rc4/lib/dovecot/libdovecot-storage.so.0(+0x6571a) [0x1f471a] -> /usr/local/Dovecot-2.0.rc4/lib/dovecot/libdovecot-storage.so.0(index_mail_get_first_header+0x3d) [0x1f4a6d] -> /usr/local/Dovecot-2.0.rc4/lib/dovecot/libdovecot-storage.so.0(mail_get_first_header+0x25) [0x1ab2a5] -> /usr/local/Dovecot-2.0.rc4/lib/dovecot/libdovecot-storage.so.0(+0x61a31) [0x1f0a31] -> /usr/local/Dovecot-2.0.rc4/lib/dovecot/libdovecot-storage.so.0(index_mail_get_...
2006 Apr 11
1
dspam plugin
...--signature=(<E4>Z
Apr 11 00:04:41 uberserver dspam[1361]: Unable to determine the
destination user
Apr 11 00:04:41 uberserver dspam[1361]: DSPAM agent misconfigured: aborting
The line with the correct signature showing up is simply outputing
'signature' after:
signature = mail_get_first_header(mail, SIGHEADERLINE);
The 'working with signature' that shows the corrupted signature is right
before call_dspam is called, and it outputs siglist->sig:
...
syslog(LOG_INFO, "working with signature %s ", siglist->sig );
if ((*enh_error = call_dspam (siglist...
2009 Aug 11
1
dovecot-1.2.3 (managesieve) crash with backtrace
...che_lookup_iter_init+0x55) [0x80bbc05] ->
imap(mail_cache_field_exists+0xaf) [0x80bc51f] ->
imap(mail_cache_field_want_add+0x48) [0x80bcd98] ->
imap(index_mail_parse_header_init+0x1c3) [0x80a4a33] ->
imap(index_mail_parse_headers+0x60) [0x80a4c40] -> imap [0x80a500f] ->
imap(index_mail_get_first_header+0x22) [0x80a5372] ->
imap(mail_get_first_header+0x25) [0x80b0a85] ->
/usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so [0xb7e72bfb] ->
/usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so [0xb7e72f95] ->
/usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so [0xb7e73494] ->
imap(cmd...
2015 Dec 29
2
LMTP crashes on Debian with dovecot backports from rename-it.nl
...so.0(+0x8366e) [0x7f58fce4f66e] ->
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f58fcdf8a3e] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0x3cc75) [0x7f58fd107c75] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0xabeda) [0x7f58fd176eda] ->
/usr/lib/dovecot/libdovecot-storage.so.0(index_mail_get_first_header+0xba)
[0x7f58fd17723a] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_get_first_header+0x38)
[0x7f58fd108cd8] ->
/usr/lib/dovecot/modules/lib20_mail_log_plugin.so(+0x1b5c)
[0x7f58fb16cb5c] ->
/usr/lib/dovecot/modules/lib20_mail_log_plugin.so(+0x22e9)
[0x7f58fb16d2e9] ->
/usr/lib/dovec...
2007 Aug 04
3
A few dovecot 1.1 bugs - sort, flag reset and etc.
...ot/imap
[0x80be82f] -> /usr/libexec/dovecot/imap [0x809849b] ->
/usr/libexec/dovecot/imap(mail_cache_lookup_iter_init+0x6c)
[0x809857c] -> /usr/libexec/dovecot/imap(mail_cache_lookup_headers+0xf7)
[0x8098c77] -> /usr/libexec/dovecot/imap [0x8091ac7] ->
/usr/libexec/dovecot/imap(index_mail_get_first_header+0x17)
[0x8091dff] -> /usr/libexec/dovecot/imap(mail_get_first_header+0x12)
[0x80b054a] -> /usr/libexec/dovecot/imap [0x8093b5a] ->
/usr/libexec/dovecot/imap [0x8093cee] -> /usr/libexec/dovecot/imap
[0x8093eff] -> /usr/libexec/dovecot/imap(bsearch_insert_pos+0x40)
[0x80bd794] -> /u...
2007 Sep 25
1
deliver w/quotas - MDN after accept mail?
I'm testing deliver with sendmail and fs quotas.
On an over quota condition, deliver accepts the mail, deletes it, then
issues a MDN immediately.
Is there a way to get deliver to soft fail like procmail does with a 400
error and queue the mail, then let sendmail handle the MDN, following
it's "confTO_QUEUEWARN" and "confTO_QUEUERETURN" ?
Thanks,
Ken
--
Ken
2006 Sep 23
2
Need to detect event: a user move a message to a “spam folder” (for antispam filter)
I?m writing an immune system based antispam filter.
I need to detect when a user move a message to her spam folder (to
inform the filter). I
I found ?cmd_copy? in imap library so I detect the copy event. But at
this level I wasn?t able to find info about which mail and which user
copy this message.
My question is:
Were I can find user Info to know how is moving this message
2006 Oct 04
1
fix: LDA logging
...+++ 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);
kw = strarray_length(keywords) == 0 ? NULL :
@@ -117,10 +120,14 @@
ret = -1;
mailbox_keywords_free(t, &kw);
- if (ret < 0)
+ if (ret < 0) {
+ i_info("failed to delive...
2016 Aug 19
2
Crash on opening mailbox
...out>
#7 index_mail_get_raw_headers (mail=mail at entry=0x7d7e80, field=field at entry=0x7f328d663446 "Message-Id", value_r=value_r at entry=0x7ffc6c9df540) at index-mail-headers.c:656
_mail = <optimized out>
headers = {0x7e41f0 "0B~", 0x7f328d88b2d8 <mail_get_first_header at got.plt> ""}
value = 0x1001 <error: Cannot access memory at address 0x1001>
headers_ctx = 0x7f328d59a380 <static_system_pool>
data = <optimized out>
field_idx = 20
dest = <optimized out>
i = <optimized out>...
2017 May 22
0
core from 2.2.29.1
.../dovecot/libdovecot-storage.so.0(mail_cache_decision_state_update+0xac) [0xb769ff8c] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_cache_lookup_headers+0x7f) [0xb76a23bf] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xb2898) [0xb7686898] -> /usr/lib/dovecot/libdovecot-storage.so.0(index_mail_get_first_header+0xbf) [0xb768723f] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_get_first_header+0x45) [0xb7601e95] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xb4fc1) [0xb7688fc1] -> /usr/lib/dovecot/libdovecot-storage.so.0(+
0xb518f) [0xb768918f] -> /usr/lib/dovecot/libdovecot-storage.so.0(ind...