Displaying 4 results from an estimated 4 matches for "exclude_head".
Did you mean:
exclude_end
2007 Oct 08
1
API problem (noob)
I'm a bit of a newbie, especially when it comes to dovecot
internals, but nevertheless, I need some help:
I'm working on a dovecot plugin, and I would like to copy
a mail message from the mail store 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...
2009 Apr 03
2
Implementation of editheaders in dovecot
...nt max_chunks = 4;
unsigned int i = 0;
unsigned int cnt = 0;
unsigned int exclude_cnt = 0;
unsigned int include_cnt = 0;
int ret = 0;
#if 1
{/* Test code */
const char * str = "Subject";
const char * str2 = "X-DSPAM: test value\n\n";
array_append(&ra_mail->exclude_headers, &str, 1);
array_append(&ra_mail->include_headers, &str2, 1);
}
#endif
DPRINT("Standard get_stream for mail storage format");
ret = ra_mail->module_ctx.super.get_stream(mail, hdr_size, body_size,
&stream);
include_cnt = array_count(&ra_mail->inclu...
2010 Sep 20
1
replace istream and unref the old one...
...tream" 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(full_input);
//unref the old one.
i_stream_unref(&input);
retur...
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