search for: message_size

Displaying 20 results from an estimated 21 matches for "message_size".

2008 Feb 01
2
[PATCH] skeleton.c
On 01/02/2008, Conrad Parker <conrad@metadecks.org> wrote: > On 31/01/2008, ogg.k.ogg.k@googlemail.com <ogg.k.ogg.k@googlemail.com> wrote: > > This fixes an off by one bug in the user of snprintf, and returns > > negative if writing the > > header returns negative (otherwise we'd just get a short write, losing > > the error). > > This patch
2009 Apr 03
2
Implementation of editheaders in dovecot
...uffer, data, data_size); (gdb) p data $4 = (const unsigned char *) 0x15 <Address 0x15 out of bounds> (gdb) p data_size $5 = 1 /////////////////////////////////////////My code///////////////////////////////////////////////////////// static int rarules_get_stream(struct mail * mail, struct message_size * hdr_size, struct message_size * body_size, struct istream ** stream_r) { struct rarules_mail * ra_mail = RARULES_MAIL_CONTEXT(mail); struct istream * stream = NULL; struct istream ** chunks = NULL; const unsigned int max_chunks =...
2012 May 12
2
Quota, message is never send?
I think i have quota setup correctly, but finally time arrived to check that ;) opensuse:/etc/dovecot # doveadm quota get -u luuk Quota name Type Value Limit % User quota STORAGE 571973 716800 79 User quota MESSAGE 45555 - 0 It seems i am at 79% of my quota so, i added a line to conf.d/90-quota.conf, to get a wraning when quota exceeds 10%: .... plugin { quota_warning = storage=95%%
2006 May 17
1
maildir-tags
Hello, I configured my MTA to store messages in maildirs with a tag "S=$message_size", so quota calculations can be done without stat()ing the message file. However, I have a lot old messages, than haven't been stored with this tag. Is it possible to configure dovecot so that it will rename each file adding this messagesize-tag if it is not found in a file already? Yo...
2008 Feb 12
4
[PATCH] skeleton.c
...there, > though my patch may not be optimal. > > As an example of an off by one bug: > > On the first run through the code, message_header_fields will be NULL, > so _ogg_calloc will be called. Assume header_key and header_value > are both "X", so strlen of each is 1. message_size will then by 6, and a > block of 6 bytes is callocated. > Then snprintf is called with a byte limit of message_size+1 (7, one more > than the allocated size), with the string "X: X\r\n", 6 characters and a > terminating NULL. 7 bytes will be written, overwrite. yup, you'r...
2016 Mar 04
2
questions regarding zlib plugin
Hi, faced with a current space problem on our dovecot 2.2.18 server, I thought about using the zlib plugin. My questions: - is it really as simple as adding the options to the conf files as described in the docs :) ? http://wiki2.dovecot.org/Plugins/Zlib - As this just compresses new messages; dose anybody has a sort of simple cron or whatever script or best practice how to compress existing
2009 Apr 13
0
How can I skip EOH in headers?
...streams[2] = NULL; ret = i_stream_create_concat(streams); i_stream_unref(&filter); filter = ret; } It's my callback for get_stream: --------------------------------------- static int rarules_get_stream(struct mail *mail, struct message_size *hdr_size, struct message_size *body_size, struct istream **stream_r) { struct rarules_mail *m = RA_MAIL_CONTEXT(mail); struct istream *stream = NULL; unsigned int deleted = 0; unsigned int added =...
2013 Mar 07
3
[PATCH 0/3] protocol: Abstract out socket operations.
I've been taking a long hard look at the protocol layer. It has evolved over a long time without any particular direction, and the result is, to say the least, not very organized. These patches take a first step at cleaning up the mess by abstracting out socket operations from the rest of the code. The purpose of this is to allow us to slot in a different connection layer under the
2004 Oct 22
1
[PATCH] support OEM encoding in NTLM messages
...uct ntlm_auth_request { /* requested: */ int ntlm2_negotiated; + int unicode_negotiated; const unsigned char *challenge; /* received: */ @@ -141,6 +142,7 @@ mech_ntlm_auth_continue(struct auth_requ (struct ntlmssp_request *)data; const struct ntlmssp_challenge *message; size_t message_size; + uint32_t flags; if (!ntlmssp_check_request(ntlm_request, data_size, &error)) { if (verbose) { @@ -154,8 +156,9 @@ mech_ntlm_auth_continue(struct auth_requ message = ntlmssp_create_challenge(request->pool, ntlm_request, &message_size); - request->ntlm2_nego...
2005 Jun 03
2
POP3 download problem
Hi All I am experiencing a mail download problem with dovecot's pop3 protocol. We use outlook XP 2002 mail clients and I have setup a mail system with pop accounts on a Fedora 2 installation using dovecot. Some of the clients download email fine but others do not download email and also do not give any error messages. I have enabled the "verbose" options in the
2019 Aug 22
0
Trying to install Mailcrypt, receive completely blank emails
...any logs - the logs show the mail as being received and I can see the mail in the user at domain /cur folder. If I try to Postcat any of these messages I get:/ postcat '1*********2.M**********3.(host),S=633,W=649:2,S' *** ENVELOPE RECORDS 1*********2.M*********3.(host),S=633,W=649:2,S *** message_size: YPTED postcat: fatal: invalid size record: YPTED??? */Within a minute or so I receive the email in the Outlook Inbox - except it is completely empty of anything. There is no TO / FROM/ SUBJECT / Body or even Routing information. See screencaps from Outlook/* <http://dovecot.2317879.n4.nabble...
2004 Oct 07
0
[PATCH] fix NTLM2 endianness buglet
...dovecot-1.0-test46/src/auth/mech-ntlm.c --- dovecot-1.0-test46/src/auth/mech-ntlm.c 2004-09-28 23:45:46.000000000 +0400 +++ dovecot-1.0-test46/src/auth/mech-ntlm.c 2004-10-04 21:41:48.000000000 +0400 @@ -154,7 +154,8 @@ message = ntlmssp_create_challenge(auth->pool, request, &message_size); - auth->ntlm2_negotiated = message->flags & NTLMSSP_NEGOTIATE_NTLM2; + auth->ntlm2_negotiated = + read_le32(&message->flags) & NTLMSSP_NEGOTIATE_NTLM2; auth->challenge = message->challenge; mech_init_auth_client_reply(&reply); -------------- next part...
2005 Aug 24
0
thunderbird pop3 delete bug workaround
...m == client->last_deleted)) + { + client->tbirdbug++; + } + else + { + client_send_line(client, "-ERR Message is deleted."); + return NULL; + } } } @@ -109,6 +116,7 @@ client->deleted_count++; client->deleted_size += client->message_sizes[msgnum]; client_send_line(client, "+OK Marked to be deleted."); + client->last_deleted = msgnum; return TRUE; } ----------------------------------------------------------------------- 'This mail automatically becomes portable when carried.' ---------------------...
2010 Aug 31
13
[PATCH v2] Add progress bars
This is an updated and extended version of the original patch: https://www.redhat.com/archives/libguestfs/2010-August/msg00163.html This adds OCaml and Perl bindings (both tested), support for progress bars in virt-resize, and adds progress notifications to a number of the simpler commands. Still to do is to add progress messages to more commands. There are still a few commands which would be
2015 May 26
2
maildir, how to always add size tags to filename (,S=).
...ays add the size tag to the filename when using maildir format. We are using dovecot 2.2.9 (whatever comes from ubuntu 14.04 LTS). We are using dovecot in conjunction with exim with maidirsize file enabled and maildir quotas. For example exim has following configuration: maildir_tag = ,S=$message_size Which adds the size to the filename of the message. This has enormous (orders of magnitude) performance benefit as to calculate quota one does not need to stat every single file (only getents for each directory). I have wrote a script that adds the size tag retrospectively to files it didn't...
2019 Dec 01
2
Mail-crypt won't encrypt emails
Hi, (Reposting as my previous post got zero replies.) We're running Dovecot 2.2.36 and we need to set up the mail-crypt plugin to encrypt all incoming and outgoing emails. Outgoing emails seem to get encrypted fine but the incoming ones don't. We tried everything including this config: mail_attribute_dict = file:%h/Maildir/dovecot-attributes mail_plugins = $mail_plugins mail_crypt
2003 Jul 07
2
Date sort-order ignoring timezone, and a few Q's.
...for some type of size instead of ,S= but I haven't traced far enough to work out what exactly W/virtual_size means, am I right in guessing that it might be 'wire size' i.e. message-size-with-CRLF-line-endings? (If so, use_crlf in exim.conf can be augmented with "maildir_tag = ,W=$message_size" to help keep overheads to a minimum). And, one final question: for a dual-stack machine to listen on both IPv6 and IPv4 sockets, is the currently preferred option simply to start two instances of Dovecot with their own dovecot.conf containing different *_listen parameters? --Stu
2004 Sep 30
1
[PATCH] NTLM2 support
...ntlmssp_v1_response(hash, auth->challenge, + ntlm_response); ret = memcmp(ntlm_response, client_response, NTLMSSP_RESPONSE_SIZE) == 0; @@ -145,6 +154,7 @@ mech_ntlm_auth_continue(struct auth_requ message = ntlmssp_create_challenge(auth->pool, request, &message_size); + auth->ntlm2_negotiated = message->flags & NTLMSSP_NEGOTIATE_NTLM2; auth->challenge = message->challenge; mech_init_auth_client_reply(&reply); diff -urpNX /usr/share/dontdiff dovecot-1.0-test46.vanilla/src/lib-ntlm/ntlm-encrypt.c dovecot-1.0-test46/src/lib-ntlm/ntlm-...
2008 May 02
2
Truncated emails in Dovecot (v1.0.13)
Odd situation started recently whereby emails that are delivered into a maildir folder are being truncated when read. The emails are delivered via Exim and I can see the emails are complete when I look inside them. However, when viewing the emails via Thunderbird or a webmail client, they are truncated. *** START 'dovecot -n' *** # 1.0.13: /etc/dovecot/dovecot.conf base_dir:
2007 Nov 15
1
imap process consuming 100% CPU (Dovecot 1.0.3)
...0 body->physical_size++; > > 111 > > 112 body->virtual_size = body->physical_size + missing_cr_count; > > 113 i_assert(body->virtual_size >= body->physical_size); > > 114 } > > 115 > > 116 void message_size_add(struct message_size *dest, > > (dbx) dump > > message_get_body_size(input = 0x2004aabc, body = 0x2002827c, has_nuls = (nil)), line 107 in "message-size.c" > > last_cr = 0 > > missing_cr_count = 83389 > > msg = "dd" > > i = 4095 > > s...