search for: i_stream_create_header_filter

Displaying 11 results from an estimated 11 matches for "i_stream_create_header_filter".

2007 Oct 08
1
API problem (noob)
...out to a temporary file, less a few headers: static const char *const exclude_headers[] = { "X-DSPAM-Signature" } strcpy(fname, mktemp(fname)); fd = creat(fname, 0600); mail_get_stream(mail, NULL, NULL, &input); output = o_stream_create_fd_file(fd, 0, TRUE); input = i_stream_create_header_filter(input, HEADER_FILTER_EXCLUDE | HEADER_FILTER_NO_CR, exclude_headers, N_ELEMENTS(exclude_headers), null_header_filter_callback, NULL); o_stream_send_istream(output, input); But all I get in the temp file is the message body, i.e. no headers at all. What am I doing wrong h...
2009 Apr 13
0
How can I skip EOH in headers?
...141860, flags=0, keywords=0x0, dest_mail=0x0) at mail-storage.c:763 #5 0x0805960d in deliver_save (namespaces=0x8121c68, storage_r=0xbfbfeb94, mailbox=0x80f2af9 "INBOX", mail=0x8141860, flags=0, keywords=0x0) at deliver.c:234 ... The function mbox_save_get_input_stream calls i_stream_create_header_filter and i_stream_create_concat. The function read_header (istream-header-filter.c) finds EOH for call of i_stream_seek (backtrace B), but my calls of i_stream_create_header_filter and i_stream_create_concat doesn't find EOH (backtrace A). Why? I don't understand. I want to call rarules_...
2010 Nov 16
1
child 23925 killed with signal 6
...self is empty. I know this filter rule does not make a lot of sense, but nevertheless it shouldn't crash the imap process. If there is any additional information you need please ask. --- snip --- Nov 16 11:25:07 imap-mgt dovecot: imap(username): Panic: file istream-header-filter.c: line 520 (i_stream_create_header_filter): assertion failed: (ret < 0) Nov 16 11:25:07 imap-mgt dovecot: imap(username): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x3e81b) [0x7f82a3bc381b] -> /usr/lib/dovecot/libdovecot.so.0(+0x3e876) [0x7f82a3bc3876] -> /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0x7f82a3b9dacf] -...
2010 Sep 21
1
understand the struct message_header_line
Timo... Using the src/lib-mail/test-istream-header-filter.c as example, and following your tips to jump my desired header value, but i need to store the value from the Header filtered. In the Exemple, the callback is this: static void filter_callback(struct message_header_line *hdr, bool *matched, void *context ATTR_UNUSED) { if (hdr != NULL && hdr->name_offset ==
2011 Jan 11
1
Fatal crash during a user search
Well, it looks like it occurred during the search to me... Jan 10 17:05:37 sysvolone dovecot: [ID 583609 mail.crit] imap(user at host.com): Panic: file istream-header-filter.c: line 520 (i_stream_create_header_filter): assertion failed: (ret < 0) Jan 10 17:05:37 sysvolone dovecot: [ID 583609 mail.error] imap(user at host.com): Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0.0.0'default_fatal_finish+0x3c [0xfee7b050] -> /usr/local/lib/dovecot/libdovecot.so.0.0.0'i_internal_fatal_hand...
2010 Sep 20
1
replace istream and unref the old one...
...that do some stuffs with a email. To get the input istream, i use the "get_stream" function, like zlib does. I create a concat_stream, with the full_input[3]; struct istream *full_input[3]; //this like zlib input = imail->data.stream; //first input, using the input full_input[0] = i_stream_create_header_filter(input, HEADER_FILTER_EXCLUDE | HEADER_FILTER_NO_CR, exclude_headers, 1, filter_callback, imail); // second input from another file. full_input[1] = i_stream_create_fd(fd1, 0, TRUE); // finish the input full_input[2] = NULL; // recreating the stream imail->data.stream = i_stream_create_concat(ful...
2013 Oct 15
3
Plugin issue with update from 2.0.19 to 2.1.17
Hello. Probably only Timo can help-me with this. I have a self-made plugin based on the zlib plugin that i use to cryptograph the messages at inbox. As a side-effect of the cryptography, my plugin changes the size of the message, but until 2.0.19 this works well with dovecot index and the W/S flags. But now, i'm going to upgrade to 2.1.17 and now i have these messages on log at my test
2008 May 31
1
Sieve Editheader Extension?
I've done extensive searches, and there is virtually no information about actual implementations of the draft Sieve Editheader Extension (which provides 'addheader' and 'deleteheader' actions): http://www.ietf.org/internet-drafts/draft-ietf-sieve-editheader-11.txt Is anyone currently working on this for Dovecot Sieve? If not, are there any plans to do so? And before I
2006 Jul 19
0
data corruption in delivery agent when forwarding
...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, return_path, &f); input = i_stream_create_header_filter(input, HEADER_FILTER_EXCLUDE | HEADER_FILTER_NO_CR, hide_headers, best regards as ever /k -- Josh "Koshua" Goodall "as modern as tomorrow afternoon" joshua at roughtrade.net...
2009 Jun 22
1
A X-Mailbox header?
Hi all, I'm waiting for the virtual mailbox feature in order to make a single POP3 access to retrieve messages contained in all my mailbox folders. This is because I use webmail and other IMAP clients but my main workstation uses a POP3-only client. I was wondering if there's a way to keep the name of the folder containing each message while retrieving via POP3. I guess this could
2009 Apr 03
2
Implementation of editheaders in dovecot
...ream * header_filter(struct istream * stream, ARRAY_TYPE(const_string) * headers_arr, unsigned int count) { const char * const * headers = NULL; DPRINTF("Func `%s' called", __FUNCTION__); if (count) { headers = (const char **)array_idx(headers_arr, 0); } return i_stream_create_header_filter(stream, HEADER_FILTER_EXCLUDE | HEADER_FILTER_NO_CR | HEADER_FILTER_HIDE_BODY, headers, count, null_header_filter_callback, NULL); } inline static struct istream * create_header_stream(...