Re: sieve match with contain asterisk

2021-07-03 Thread Hardy Flor

Thanks for the hint. But that means the keyword can be within the
subject. I actually only wanted to look for it at the beginning.

Am 03.07.2021 um 00:17 schrieb Robert L Mathews:

Use ":contains" instead of ":matches":

if header :contains "Subject" "*xyz*"

In ":contains", asterisks aren't wildcards and don't need escaping.





sieve match with contain asterisk

2021-07-02 Thread Hardy Flor

Hello,

I want to find a keyword in the subject between two "*".
How do I have to mask the "*" correctly?

I tried:
if header :matches "subject" "\*xyz\**"
if header :matches "subject" "\\*xyz\\**"


Hardy


doveadm save message ...

2015-07-11 Thread Hardy Flor
How can I set the flags for a saved message without search?


Re: Testing SHA512-CRYPT password hashes with doveadm pw -t fails

2015-06-04 Thread Hardy Flor
doveadm pw -t
'{SHA512-CRYPT}$6$8FfoioQWQDR/Vuzu$ynKiO/E6Xf4dMvfx2LsP9KQotqy5cEOEppnEh5Hqe1UpCYAgOwSIJlNb0O65fxdYcRZH3gNFQ7ZOM/2kD/R811'
-p test

You have $ in the password, see man-page of shell ...


Am 04.06.2015 um 05:29 schrieb Felix Zielcke:
 oveadm pw -t 
 {SHA512-CRYPT}$6$8FfoioQWQDR/Vuzu$ynKiO/E6Xf4dMvfx2LsP9KQotqy5cEOEppnEh5Hqe1UpCYAgOwSIJlNb0O65fxdYcRZH3gNFQ7ZOM/2kD/R811
  -p test


Re: Why are here ignore a simple question?

2015-04-11 Thread Hardy Flor
I've also looked at the source code. But my attempt to output the UID 
fails because of the error message:

doveadm-mail save.c: 62: 36: error: dereferencing pointer to incomplete type
in the line:
printf(uid =%s\n, dec2str(save_ctx-dest_mail-uid));


Am 11.04.2015 um 08:46 schrieb Gedalya:
Unfortunately this is not unique. Dovecot's documentation is at all 
times significantly lagging behind the code, this is the MO for this 
project. I guess someone will say contributions are welcome.
There has also been some general discussion about organizing the 
documentation differently, making it more comprehensive and perhaps 
verbose, and my own personal impression that every line on the wiki 
seems to assume you already know everything there is no know about 
dovecot, except the line you're reading right now ;-)

But I must say the documentation is still quite helpful, in its own way.
And nothing will change unless people get into a practical discussion 
about organizing an effort to improve the documentation. 


Re: Why are here ignore a simple question?

2015-04-11 Thread Hardy Flor
I had been on 3/12/2015 pointed to the lack of documentation of doveadm
save. It was in the changelog of 2.2.16.


Am 10.04.2015 um 23:39 schrieb Gedalya:
 On 04/10/2015 05:10 PM, Hardy Flor wrote:

 Am 06.04.2015 um 09:36 schrieb Hardy Flor:
 Hello,

 when I have with doveadm save ... store a message, how do I get the
 guid or uid of this message for the setthe flags?

 Hardy


 Maybe the feature is just not there? This command has just been added
 and is not even on the wiki or man page yet.

 Perhaps in the future doveadm save can provide this as output, but
 until then, if you have some good known criteria about the message you
 have just saved, such as Message-Id you can use that in doveadm
 search, combined with savedsince, this might be reliable enough for
 your needs.

---BeginMessage---

For this no man-page available.

Am 12.03.2015 um 18:30 schrieb Timo Sirainen:

+ doveadm: Added save command to directly save mails to specified
  mailbox (bypassing Sieve).
---End Message---


Why are here ignore a simple question?

2015-04-10 Thread Hardy Flor


Am 06.04.2015 um 09:36 schrieb Hardy Flor:
 Hello,

 when I have with doveadm save ... store a message, how do I get the
 guid or uid of this message for the setthe flags?

 Hardy


Re: doveadm save ...

2015-04-08 Thread Hardy Flor
No one has a suggestion?

Am 06.04.2015 um 09:36 schrieb Hardy Flor:
 Hello,

 when I have with doveadm save ... store a message, how do I get the
 guid or uid of this message for the setthe flags?

 Hardy


doveadm save ...

2015-04-06 Thread Hardy Flor
Hello,

when I have with doveadm save ... store a message, how do I get the
guid or uid of this message for the setthe flags?

Hardy


Re: Deleting empty folders

2015-04-01 Thread Hardy Flor
An administrator should be able to write a small script from my first
post in this thread (to the search of empty mailboxes and the command to
delete), in order to not having to access the files.

Hardy

Am 01.04.2015 um 11:28 schrieb @lbutlr:
 find /path/to/clean -type d -empty -delete 


Re: Deleting empty folders

2015-03-21 Thread Hardy Flor

With
doveadm mailbox status -u ... messages*
There is a list of folders and the number of messages and then with
doveadm mailbox delete -u ... name
to delete.

Am 20.03.2015 um 21:18 schrieb Samuel Williams:

So, along with the problem of lots of folders ending in 1 1 1 1, I'd like
to have a strategy to delete these.

I was trying to understand if it is possible to use
http://linux.die.net/man/1/doveadm-expunge to delete empty folders, but
without also deleting messages? Is this possible and if so what is the
syntax?

Kind regards,
Samuel


Re: Deleting empty folders

2015-03-21 Thread Hardy Flor

Hello Samuel,

with mdbox as Maildir no direct file operations should beperforms. For 
empty mailboxes that will ever happen, the doveadm mailbox delete 
deletes the emails, if required in the mailbox.


Hardy

Am 21.03.2015 um 11:48 schrieb Samuel Williams:

Thanks Hardy. I have 1600 folders to delete.. in the end I did find -type d
-name * 1 -exec rm -r {} \;



Re: location of dovecot.rawlog-directory

2015-03-12 Thread Hardy Flor

I want running servers, not with each new version have to compile.

Am 12.03.2015 um 12:07 schrieb Steffen Kaiser:

Patch rawlog.c and recompile. :)


Re: location of dovecot.rawlog-directory

2015-03-12 Thread Hardy Flor
When I set in the home-variable in the userdb-section on my request 
directory and not used the home-dirctory in the configuration, have what 
can be expected for other effects?


Re: v2.2.16 released

2015-03-12 Thread Hardy Flor

For this no man-page available.

Am 12.03.2015 um 18:30 schrieb Timo Sirainen:

+ doveadm: Added save command to directly save mails to specified
  mailbox (bypassing Sieve).


location of dovecot.rawlog-directory

2015-03-12 Thread Hardy Flor
How is it possible to have the dovecot.rawlog-directory outside the 
mail_location? A link to another directory is not because it is checked 
in rawlog.c S_ISDIR to directory.


Re: Deduplicate Public Folder

2015-03-11 Thread Hardy Flor

use the -o for doveadm:

doveadm -o mail_location=mdbox:/path to shared box:LAYOUT=fs ...


Am 10.03.2015 um 21:06 schrieb Bobber:
How do you perform the doveadm deduplicate command on public folders? 
If I specify a user, nothing is found.  Using -A also doesn't seem to 
work.





Re: rawlog with -i not worked

2015-03-11 Thread Hardy Flor
When I change the option 'i' to the letter 'a' is everything as 
designed. Why is 'i' at this location the problem?




diff -Nurb dovecot-2.2.16rc1/src/util/rawlog.c 
dovecot-2.2.16rc1.build/src/util/rawlog.c

--- dovecot-2.2.16rc1/src/util/rawlog.c 2015-03-04 13:49:28.0 +0100
+++ dovecot-2.2.16rc1.build/src/util/rawlog.c   2015-03-11 
11:31:46.090201199 +0100

@@ -362,7 +362,7 @@
int c;

master_service = master_service_init(rawlog, 0,
-argc, argv, +f:obit);
+argc, argv, +f:obat);
while ((c = master_getopt(master_service))  0) {
switch (c) {
case 'f':
@@ -376,7 +376,7 @@
case 'b':
flags |= RAWLOG_FLAG_LOG_BOUNDARIES;
break;
-   case 'i':
+   case 'a':
flags |= RAWLOG_FLAG_LOG_IP_IN_FILENAME;
break;
case 't':
@@ -390,7 +390,7 @@
argv += optind;

if (argc  1)
-   i_fatal(Usage: rawlog [-f in|out] [-i] [-b] [-t] 
binary arguments);
+   i_fatal(Usage: rawlog [-f in|out] [-a] [-b] [-t] 
binary arguments);


master_service_init_log(master_service, rawlog: );
master_service_init_finish(master_service);


Am 09.03.2015 um 18:53 schrieb Hardy Flor:


Without -i everything is wonderful, a coredump is with the -i 
parameter created




dec2str ...

2015-03-11 Thread Hardy Flor
a very stupid question: What reason is there for an output with printf 
until dec2str to convert the numeric value to a string and not to use 
the format identifier %d or u%?


Re: rawlog with -i not worked

2015-03-10 Thread Hardy Flor

This option was added at Mon Jul 21 10:53:19 2014 +0300

http://hg.dovecot.org/dovecot-2.2/diff/fbf434ad2485/src/util/rawlog.c

Hardy


Am 10.03.2015 um 08:38 schrieb Steffen Kaiser:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 9 Mar 2015, Hardy Flor wrote:

I have the rawlog enabled according to the 
manual:http://wiki2.dovecot.org/Debugging/Rawlog


Without -i everything is wonderful, a coredump is with the -i 
parameter created


- -i is: v2.0 and older
don't expect a bugfix ;-)

- -- Steffen Kaiser
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBVP6fkHz1H7kL/d9rAQLDNAgAnI7XBMpegoYcxCRdOFRMk5nbVMbZjLUD
sLQInTa6ggBvxVy+1iSS9U1R8//BqgvIum7Sgy6kAjzk59Vjtr5i5a+cCBv/+3aj
KBAylmaf008/zD6lPJQ5B0fjVYdJB+vx/px6e14FgAuDZb52yqC0hh3Ychs1xDmN
xdcZePg5MSAooaXLLdQ6PzKhwmeSclYFHaIzkbnqZvPCXHYjbs37bVCmSP+HHo8p
16MmwuyKZQ3YpAh+TK/k0k16Vb5Lle/5tTbPZE2U0QT/gvPaYCp+FS4eZOiRjjai
GUgnABcxSNUeXnpFTWArXHatKXuxI/tp8BQxVYJaYFIGv0nDwCbUlw==
=9iHQ
-END PGP SIGNATURE-


Re: v2.2.16 release candidate released

2015-03-09 Thread Hardy Flor

This easy to correct errors is unfortunately still exists.
I once hung my solution, but I can only test on a system.


# dovecot --version
2.2.16.rc1
# doveadm -f table mailbox status messages guid -u flor_hardy *
mailbox   messages guid
Trash 060a619171f66fd5403584b126f5b
Entwürfe 062a619171f66fd5403584b126f5b
INBOX 061a619171f66fd5403584b126f5b

diff -Nubr src.org/doveadm/doveadm-print-table.c src/doveadm/doveadm-print-table.c
--- src.org/doveadm/doveadm-print-table.c	2015-01-29 17:01:15.0 +0100
+++ src/doveadm/doveadm-print-table.c	2015-03-09 11:53:34.041973877 +0100
@@ -46,6 +46,22 @@
 	thdr-flags = hdr-flags;
 }
 
+static size_t utf8len(const char *s)
+{
+  size_t len = 0;
+  while(*s)
+len += (*(s++)0xC0)!=0x80;
+  return len;
+}
+
+static size_t utf8correction(const char *s)
+{
+  size_t len = 0;
+  while(*s)
+len += (*(s++)0xC0)==0x80;
+  return len;
+}
+
 static void doveadm_calc_header_length(void)
 {
 	struct doveadm_print_table_header *headers;
@@ -64,7 +80,7 @@
 	for (line = 0; line  line_count; line++) {
 		for (i = 0; i  hdr_count; i++) {
 			value = values[line*hdr_count + i];
-			len = value == NULL ? 0 : strlen(value);
+			len = value == NULL ? 0 : utf8len(value);
 			if (headers[i].min_length  len)
 headers[i].min_length = len;
 			if (headers[i].max_length  len) {
@@ -123,9 +139,9 @@
 	hdr = array_idx(ctx-headers, ctx-hdr_idx);
 
 	if ((hdr-flags  DOVEADM_PRINT_HEADER_FLAG_RIGHT_JUSTIFY) == 0)
-		printf(%-*s, (int)hdr-length, value);
+		printf(%-*s, (int)(hdr-length+utf8correction(value)), value);
 	else
-		printf(%*s, (int)hdr-length, value);
+		printf(%*s, (int)(hdr-length+utf8correction(value)), value);
 
 	if (++ctx-hdr_idx == array_count(ctx-headers)) {
 		ctx-hdr_idx = 0;
---BeginMessage---
In calculating the column width multi-byte characters (eg umlauts, utf8) 
not properly analyzed:


Username mailboxmessages guid
sh_berger Spam   0 a7b32818c14e5b54bf556ad9a53c
sh_berger Entwürfe  0 a4b32818c14e5b54bf556ad9a53c
sh_berger Papierkorb 0 a6b32818c14e5b54bf556ad9a53c
---End Message---


rawlog with -i not worked

2015-03-09 Thread Hardy Flor

Hello,

I have the rawlog enabled according to the 
manual:http://wiki2.dovecot.org/Debugging/Rawlog


Without -i everything is wonderful, a coredump is with the -i parameter 
created




service imap-postlogin {
  executable = script-login -d rawlog -i
  user = vmail
}

GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/lib/dovecot/rawlog...(no debugging symbols 
found)...done.

[New LWP 29312]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
Core was generated by `/usr/lib/dovecot/rawlog -i 
/usr/lib/dovecot/script-login'.

Program terminated with signal 11, Segmentation fault.
#0  0x7f66bd2fe6c7 in master_instance_list_find_by_name () from 
/usr/lib/dovecot/libdovecot.so.0

(gdb) bt full
#0  0x7f66bd2fe6c7 in master_instance_list_find_by_name () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#1  0x7f66bd300ea5 in master_service_parse_option () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#2  0x7f66bd300fd4 in master_getopt () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#3  0x00401e15 in main ()
No symbol table info available.
(gdb)


Re: v2.2.16 release candidate released

2015-03-08 Thread Hardy Flor
Instead of deleting it, it should be marked deleted by renaming only. 
If it is then required, so it can be recovered. This directory can be 
deleted by another control process that searches the mbox files for 
references.




What has become of the question that attachments are not only saved as 
separate files? (mdbox-files over 2 MB from 17.03.2014)




Am 07.03.2015 um 17:33 schrieb Timo Sirainen:
... When mail is deleted, the hard link is deleted. If the link count 
had been 2, the original attachment file was deleted also.


Re: Rebuilding SIS attachment links from log

2015-03-04 Thread Hardy Flor

I use this script for review. For a correct result Dovecot should not run.

#!/bin/bash

attdir=/var/files/attachments
maildir=/var/mail

cd $attdir || exit 1
find -type f -printf %P\n | grep -v hashes | sort -u 
$maildir/attachments.s

cd $maildir || exit 2
rm $maildir/files.ok $maildir/files.fail 2/dev/null
for f in $(find -type f -name m.* -printf %P\n); do
  doveadm dump -t dbox $f | egrep ^msg.ext-ref | while read z; do
set -- $z
while [ -n $1 ]; do
  if [[ $1 == */* ]]; then
test -r $attdir/$1  echo $1 $maildir/files.ok || echo 
$1 $maildir/files.fail

  fi
  shift
done
  done
done
sort -u $maildir/files.ok $maildir/files.s
diff -Nu $maildir/attachments.s $maildir/files.s | tee 
$maildir/files.diff | egrep ^\-




Am 03.03.2015 um 22:08 schrieb Daniel Miller:
This seems simple enough...I'm just not script wizard.  If someone can 
throw together a starting point I can test and tweak it from there.  
It seems to me:


1.  Read /var/mail/mail.err or specified logfile
2.  For each failed: 
read(/var/mail/attachments/aa/bb/attachmentHash-userHash line,

a. Confirm /var/mail/attachments/aa/bb/hashes/attachmentHash exists
i. If attachmentHash is missing display such for possible 
backup searching.

b. create link attachmentHash-userHash to hashes/attachmentHash
3.  Continue to end of file

Can this be done via pure BASH?  Need sed/awk as well?



Re: IP drop list

2015-03-01 Thread Hardy Flor
fail2ban blocked dynamically addresses for a period of time. It has a 
module for dovecot.


I wonder if there is an easy way to provide dovecot a flat text file 
of ipv4 #'s which should be ignored or dropped?


I have accumulated 45,000+ IPs which routinely try dictionary and 
12345678 password attempts. The file is too big to create firewall 
drops, and I don't want to compile with wrappers *if* dovecot has an 
easy ability to do this. If dovecot could parse a flat text file of 
IPs and drop connections it would sure put a dent in these attempts.


Re: mdbox attachment errors

2015-02-27 Thread Hardy Flor
copy file f6f4f3b882bf3488af632389d4aaba8adc332b12 from backup to 
/var/mail/attachments/f6/f4/hashes/f6f4f3b882bf3488af632389d4aaba8adc332b12 
and create hardlink to 
/var/mail/attachments/f6/f4/f6f4f3b882bf3488af632389d4aaba8adc332b12-60ab750a1aa4b554da169db5accb



Am 26.02.2015 um 21:17 schrieb Daniel Miller:

Getting some errors like:

Feb 26 12:19:43 bubba dovecot: imap(dmil...@amfes.com): Error: 
read(attachments-connector(/var/mail/amfes.com/dmiller/mdbox/storage/m.7089)) 
failed: 
read(/var/mail/attachments/f6/f4/f6f4f3b882bf3488af632389d4aaba8adc332b12-60ab750a1aa4b554da169db5accb[base64:18 
b/l]) failed: 
open(/var/mail/attachments/f6/f4/f6f4f3b882bf3488af632389d4aaba8adc332b12-60ab750a1aa4b554da169db5accb) 
failed: No such file or directory (uid=19555, box=Sent)
Feb 26 12:19:43 bubba dovecot: imap(dmil...@amfes.com): Disconnected: 
Internal error occurred. Refer to server log for more information. 
[2015-02-26 12:19:43] in=159 out=1003


Browsing to the ../attachments/f6/f4 folder, I find no files but a 
hashes folder, which has a f6f4f3b882bf3488af632389d4aaba8adc332b12 
file of size that feels appropriate for the expected PDF attachment.




Re: btrfs for mail_attachment_dir

2015-02-25 Thread Hardy Flor

I have posted this in the German-debian forum:

https://debianforum.de/forum/viewtopic.php?f=9t=154096


The result was that it still does not work. I have the kernel with 
version 3.13.33



According to [0] (and the links in there), this problem has been long 
solved.


[0]http://en.wikipedia.org/wiki/Btrfs#File_system_tree



btrfs for mail_attachment_dir

2015-02-25 Thread Hardy Flor

Hello,

I don't find  any indication, that no btrfs for then filesystem for the 
path in mail_attachment_dir is to be used. but btrfs has a big problem 
with hard links in the same directory.

Nuisance is the only deal with a different file system?

Hardy


incorrect column width for multi-byte characters by'doveadm -f table'

2014-12-03 Thread Hardy Flor
In calculating the column width multi-byte characters (eg umlauts, utf8) 
not properly analyzed:


Username mailboxmessages guid
sh_berger Spam   0 a7b32818c14e5b54bf556ad9a53c
sh_berger Entwürfe  0 a4b32818c14e5b54bf556ad9a53c
sh_berger Papierkorb 0 a6b32818c14e5b54bf556ad9a53c


call postlogin script with doveadm exec

2014-08-07 Thread Hardy Flor

Hello,

how is a call to the imap-postloginscriptes possible when starting with 
doveadm exec imap?


In the imap-login-post script will set the ACL_GROUP.

Hardy


BUG: dovecot -n writes no usable configuration file

2014-07-16 Thread Hardy Flor

Hello,

For testing, I wanted to make create a small configuration file of 
dovecot. This created file but did not work imap-postLogin. It missing 
the lines:


unix_listener imap-postlogin {
}

in the section service imap-postLogin.

Hardy


Panic: file mail-index.c: line 650 (mail_index_close): assertion failed: (index-open_count 0)

2014-07-14 Thread Hardy Flor

Hello,

I'm use the virtual plugin for list all unread messages in the public 
namespace.
Every time the connection is terminated with this error message when I 
select the virtual/projekte mailbox. Do not show any emails.


The version is build today from source 2.2.13.auto+102

Hardy

*** dovecot-virtual ***
!INBOX
Projekte/*
  unseen
**


*** part of dovecot -n ***
# 2.2.13 (fd0616d553b0): /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.5 ext4

namespace {
  list = children
  location = mdbox:/var/mail/projekte/:INDEXPVT=/var/mail/user/%n/projekte
  prefix = Projekte/
  separator = /
  subscriptions = no
  type = public
}
*

GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/lib/dovecot/imap...(no debugging symbols 
found)...done.

Attaching to program: /usr/lib/dovecot/imap, process 6839
ptrace: Kein passender Prozess gefunden.
[New LWP 6839]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
Core was generated by `dovecot/imap imap-postlogin'.
Program terminated with signal 6, Aborted.
#0  0x7f38fc37c475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x7f38fc37c475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f38fc37f6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7f38fc742395 in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#3  0x7f38fc7423fe in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#4  0x7f38fc6fa96e in i_panic () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#5  0x7f38fca6a1e1 in mail_index_close () from 
/usr/lib/dovecot/libdovecot-storage.so.0

No symbol table info available.
#6  0x7f38fca5c46c in index_storage_mailbox_close () from 
/usr/lib/dovecot/libdovecot-storage.so.0

No symbol table info available.
#7  0x7f38fca2fb8d in mailbox_close () from 
/usr/lib/dovecot/libdovecot-storage.so.0

No symbol table info available.
#8  0x7f38fb0f600d in ?? () from 
/usr/lib/dovecot/modules/lib20_virtual_plugin.so

No symbol table info available.
#9  0x7f38fb0f61b0 in virtual_backend_box_open () from 
/usr/lib/dovecot/modules/lib20_virtual_plugin.so

No symbol table info available.
#10 0x7f38fb0f7860 in virtual_storage_sync_init () from 
/usr/lib/dovecot/modules/lib20_virtual_plugin.so

No symbol table info available.
#11 0x7f38fca30703 in mailbox_sync_init () from 
/usr/lib/dovecot/libdovecot-storage.so.0

No symbol table info available.
#12 0x7f38fca30827 in mailbox_sync () from 
/usr/lib/dovecot/libdovecot-storage.so.0

No symbol table info available.
#13 0x7f38fca5afd0 in index_storage_get_status () from 
/usr/lib/dovecot/libdovecot-storage.so.0

No symbol table info available.
#14 0x7f38fb0f5458 in ?? () from 
/usr/lib/dovecot/modules/lib20_virtual_plugin.so

No symbol table info available.
#15 0x7f38fbb1b794 in ?? () from 
/usr/lib/dovecot/modules/lib01_acl_plugin.so

No symbol table info available.
#16 0x7f38fca31a30 in mailbox_get_status () from 
/usr/lib/dovecot/libdovecot-storage.so.0

No symbol table info available.
#17 0x0041eb4b in imap_status_get ()
No symbol table info available.
#18 0x00414329 in cmd_status ()
No symbol table info available.
#19 0x0041849c in command_exec ()
No symbol table info available.
#20 0x004174e0 in ?? ()
No symbol table info available.
#21 0x00417574 in ?? ()
No symbol table info available.
---Type return to continue, or q return to quit---
#22 0x00417855 in client_handle_input ()
No symbol table info available.
#23 0x00417c02 in client_input ()
No symbol table info available.
#24 0x7f38fc7538be in io_loop_call_io () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#25 0x7f38fc7548cb in io_loop_handler_run_internal () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#26 0x7f38fc753949 in io_loop_handler_run () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#27 0x7f38fc7539c8 in io_loop_run () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#28 0x7f38fc6ffe13 in master_service_run () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#29 0x0040c238 in main ()
No symbol table info 

Re: imap(hardy): Panic: file istream-tee.c: line 138 (i_stream_tee_read): assertion failed: (last_high_offset == input-v_offset + size)

2014-07-12 Thread Hardy Flor

Am 04.07.2014 14:34, schrieb Timo Sirainen:

On 4.7.2014, at 10.59, Hardy Flor hf...@gmx.de wrote:


Dovecot version is 2.2.13-auto+84


Am 03.07.2014 17:47, schrieb Timo Sirainen:

On 3.7.2014, at 15.52, Hardy Flor hf...@gmx.de wrote:


I'm copy with imapsync (on the new server with dovecot) with a single user all 
mails from a old server to the new server.

The error-message ist after 20-30 minutes in the log, and I must restart the 
imapsync. The next mail is normal store on the destination box.

What Dovecot version? Can you get a gdb backtrace? 
http://dovecot.org/bugreport.html

gdb_bt.txtdovecot.conf

This should fix it: http://hg.dovecot.org/dovecot-2.2/rev/dffc6dd2be0d

Many thanks, with the change it worked.


Re: [Dovecot] mdbox-files over 2 MB

2014-07-12 Thread Hardy Flor

Am 17.03.2014 07:38, schrieb Hardy Flor:

Hello,

I received an e-mail, this includes 9 forwarding, each with a file. 
These files are not removed from the e-mail and stored in the 
attachments-directory, although they are larger than 16 KB. For all 
files the Content-Transfer-Encoding: base64 is set.

The email is stored in completely in m.0034

- doveconf:

# 2.2.12: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4
mail_attachment_dir = /var/mail/attachments
mail_attachment_hash = %{md5}
mail_attachment_min_size = 16 k
mail_location = mdbox:/var/mail/user/%n
mdbox_rotate_interval = 1 weeks
mdbox_rotate_size = 2 M

- directory:

root@xxx:/var/mail/user/xxx/storage# ls -al
...
-rw--- 1 vmail mail 14433784 Mär 16 13:51 m.0034
...
Has this really not a solution? I've found some e-mails where the 
attachments are not stored separately.


Re: imap(hardy): Panic: file istream-tee.c: line 138 (i_stream_tee_read): assertion failed: (last_high_offset == input-v_offset + size)

2014-07-04 Thread Hardy Flor

Dovecot version is 2.2.13-auto+84


Am 03.07.2014 17:47, schrieb Timo Sirainen:

On 3.7.2014, at 15.52, Hardy Flor hf...@gmx.de wrote:


I'm copy with imapsync (on the new server with dovecot) with a single user all 
mails from a old server to the new server.

The error-message ist after 20-30 minutes in the log, and I must restart the 
imapsync. The next mail is normal store on the destination box.

What Dovecot version? Can you get a gdb backtrace? 
http://dovecot.org/bugreport.html


GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/lib/dovecot/imap...(no debugging symbols 
found)...done.
Attaching to program: /usr/lib/dovecot/imap, process 27504
ptrace: Kein passender Prozess gefunden.
[New LWP 27504]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
Core was generated by `dovecot/imap'.
Program terminated with signal 6, Aborted.
#0  0x7fc66e1c0475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x7fc66e1c0475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7fc66e1c36f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7fc66e585df5 in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#3  0x7fc66e585e5e in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#4  0x7fc66e53e93e in i_panic () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#5  0x7fc66e595a21 in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#6  0x7fc66e58ed18 in i_stream_read () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#7  0x7fc66e58f63d in i_stream_read_data () from 
/usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#8  0x7fc66e57800e in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#9  0x7fc66e579517 in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#10 0x7fc66e5798a9 in message_parser_parse_next_block () from 
/usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#11 0x7fc66e8931cf in index_mail_cache_parse_continue () from 
/usr/lib/dovecot/libdovecot-storage.so.0
No symbol table info available.
#12 0x7fc66e88f2a3 in index_attachment_save_continue () from 
/usr/lib/dovecot/libdovecot-storage.so.0
No symbol table info available.
#13 0x0040ced1 in _start ()
No symbol table info available.
(gdb)
# 2.2.13 (0343869d47cf): /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.5 ext4
auth_debug = yes
auth_debug_passwords = yes
auth_master_user_separator = *
auth_mechanisms = plain login
auth_username_format = %Ln
auth_verbose = yes
auth_verbose_passwords = plain
base_dir = /var/run/dovecot/
default_vsz_limit = 512 M
dict {
  acl = mysql:/etc/dovecot/conf.d/dovecot-dict-sql.conf.ext
}
first_valid_uid = 999
hostname = ptb-mail
last_valid_uid = 65533
mail_attachment_dir = /var/files/attachments
mail_attachment_hash = %{md5}
mail_attachment_min_size = 16 k
mail_debug = yes
mail_gid = vmail
mail_location = mdbox:/var/mail/user/%n:LAYOUT=fs
mail_plugins = acl listescape virtual
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave duplicate
mdbox_rotate_size = 200 B
namespace {
  list = children
  location = mdbox:/var/mail/projekte/:INDEXPVT=/var/mail/user/%n/projekte
  prefix = Projekte/
  separator = /
  subscriptions = no
  type = public
}
namespace {
  list = children
  location = mdbox:/var/mail/user/%%n:INDEXPVT=/var/mail/user/%n/shared/%%u
  prefix = Benutzer/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  hidden = no
  inbox = yes
  list = yes
  location = 
  mailbox Archiv {
auto = subscribe
special_use = \Archive
  }
  mailbox Entwürfe {
auto = subscribe
special_use = \Drafts
  }
  mailbox Papierkorb {
auto = subscribe
special_use = \Trash
  }
  mailbox Sent Messages {
special_use = \Sent
  }
  mailbox Spam {
auto = subscribe
special_use = \Junk
  }
  mailbox gesendet {
auto = subscribe
special_use = \Sent
  }
  mailbox sent {
special_use = \Sent
  }
  mailbox trash {
special_use = \Trash

imap(hardy): Panic: file istream-tee.c: line 138 (i_stream_tee_read): assertion failed: (last_high_offset == input-v_offset + size)

2014-07-03 Thread Hardy Flor

Hello,

I'm copy with imapsync (on the new server with dovecot) with a single 
user all mails from a old server to the new server.


The error-message ist after 20-30 minutes in the log, and I must restart 
the imapsync. The next mail is normal store on the destination box.


Hardy


Re: [Dovecot] mdbox-files not approximately 2 MB

2014-06-27 Thread Hardy Flor
Depending on a defined mail extent a new file should be created. 
However, I am not clear what is used as this Mail extent.
Does the application use the entire contents of a mail (including 
attachments), or only the mail contents without the actual attachment?




Am 17.03.2014 07:29, schrieb Hardy Flor:
there are copies with different size in 3 mailboxes of the user 
sequentially about 3800 emails.

why not something 2MB files?

- doveconf:

# 2.2.12: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4
mail_attachment_dir = /var/mail/attachments
mail_attachment_hash = %{md5}
mail_attachment_min_size = 16 k
mail_location = mdbox:/var/mail/user/%n
mdbox_rotate_interval = 1 weeks
mdbox_rotate_size = 2 M

- directory:

root@xxx:/var/mail/user/xxx/storage# ls -al
insgesamt 76532
drwx--S--- 2 vmail mail 4096 Mär 16 13:52 .
drwx--S--- 6 vmail mail 4096 Mär 16 12:10 ..
-rw--- 1 vmail mail74360 Mär 16 12:39 dovecot.map.index
-rw--- 1 vmail mail25204 Mär 16 13:52 dovecot.map.index.log
-rw--- 1 vmail mail63544 Mär 16 12:39 dovecot.map.index.log.2
-rw--- 1 vmail mail  2092921 Mär 16 12:15 m.0001
-rw--- 1 vmail mail  2086746 Mär 16 12:15 m.0002
-rw--- 1 vmail mail  2084182 Mär 16 12:15 m.0003
-rw--- 1 vmail mail  2096826 Mär 16 12:15 m.0004
-rw--- 1 vmail mail  1882666 Mär 16 12:15 m.0005
-rw--- 1 vmail mail  1903965 Mär 16 12:15 m.0006
-rw--- 1 vmail mail  2091169 Mär 16 12:15 m.0007
-rw--- 1 vmail mail  2086396 Mär 16 12:15 m.0008
-rw--- 1 vmail mail   507205 Mär 16 12:16 m.0009
-rw--- 1 vmail mail  2031456 Mär 16 12:17 m.0010
-rw--- 1 vmail mail  2095697 Mär 16 12:17 m.0011
-rw--- 1 vmail mail  1689071 Mär 16 12:17 m.0012
-rw--- 1 vmail mail  2092124 Mär 16 12:17 m.0013
-rw--- 1 vmail mail  1950602 Mär 16 12:17 m.0014
-rw--- 1 vmail mail  2092215 Mär 16 12:17 m.0015
-rw--- 1 vmail mail  2087463 Mär 16 12:17 m.0016
-rw--- 1 vmail mail  2079795 Mär 16 12:17 m.0017
-rw--- 1 vmail mail  2014121 Mär 16 12:17 m.0018
-rw--- 1 vmail mail  2081893 Mär 16 12:17 m.0019
-rw--- 1 vmail mail  2092088 Mär 16 12:17 m.0020
-rw--- 1 vmail mail  2090508 Mär 16 12:17 m.0021
-rw--- 1 vmail mail  1929296 Mär 16 12:17 m.0022
-rw--- 1 vmail mail  2067685 Mär 16 12:17 m.0023
-rw--- 1 vmail mail  1745743 Mär 16 12:20 m.0024
-rw--- 1 vmail mail   866452 Mär 16 12:20 m.0025
-rw--- 1 vmail mail   296379 Mär 16 12:20 m.0026
-rw--- 1 vmail mail   433541 Mär 16 12:39 m.0027
-rw--- 1 vmail mail92526 Mär 16 12:39 m.0028
-rw--- 1 vmail mail19094 Mär 16 12:39 m.0029
-rw--- 1 vmail mail   106837 Mär 16 12:39 m.0030
-rw--- 1 vmail mail   162012 Mär 16 12:39 m.0031
-rw--- 1 vmail mail   412080 Mär 16 13:51 m.0032
-rw--- 1 vmail mail  1715868 Mär 16 13:51 m.0033
-rw--- 1 vmail mail 14433784 Mär 16 13:51 m.0034
-rw--- 1 vmail mail 3280 Mär 16 13:51 m.0035
-rw--- 1 vmail mail 6308 Mär 16 13:51 m.0036
-rw--- 1 vmail mail   534274 Mär 16 13:51 m.0037
-rw--- 1 vmail mail   378719 Mär 16 13:51 m.0038
-rw--- 1 vmail mail   458528 Mär 16 13:51 m.0039
-rw--- 1 vmail mail   192504 Mär 16 13:51 m.0040
-rw--- 1 vmail mail  1277766 Mär 16 13:51 m.0041
-rw--- 1 vmail mail33417 Mär 16 13:51 m.0042
-rw--- 1 vmail mail   142866 Mär 16 13:51 m.0043
-rw--- 1 vmail mail   113529 Mär 16 13:51 m.0044
-rw--- 1 vmail mail55888 Mär 16 13:51 m.0045
-rw--- 1 vmail mail   673504 Mär 16 13:51 m.0046
-rw--- 1 vmail mail   430738 Mär 16 13:51 m.0047
-rw--- 1 vmail mail   218494 Mär 16 13:51 m.0048
-rw--- 1 vmail mail96165 Mär 16 13:51 m.0049
-rw--- 1 vmail mail 8370 Mär 16 13:51 m.0050
-rw--- 1 vmail mail29251 Mär 16 13:51 m.0051
-rw--- 1 vmail mail   394680 Mär 16 13:51 m.0052
-rw--- 1 vmail mail   674892 Mär 16 13:51 m.0053
-rw--- 1 vmail mail  1076919 Mär 16 13:51 m.0054
-rw--- 1 vmail mail   258806 Mär 16 13:51 m.0055
-rw--- 1 vmail mail60069 Mär 16 13:51 m.0056
-rw--- 1 vmail mail   297891 Mär 16 13:51 m.0057
-rw--- 1 vmail mail92772 Mär 16 13:51 m.0058
-rw--- 1 vmail mail   129272 Mär 16 13:51 m.0059
-rw--- 1 vmail mail56073 Mär 16 13:51 m.0060
-rw--- 1 vmail mail   528260 Mär 16 13:51 m.0061
-rw--- 1 vmail mail29468 Mär 16 13:51 m.0062
-rw--- 1 vmail mail 3250 Mär 16 13:51 m.0063
-rw--- 1 vmail mail96445 Mär 16 13:51 m.0064
-rw--- 1 vmail mail   337663 Mär 16 13:51 m.0065
-rw--- 1 vmail mail   187505 Mär 16 13:51 m.0066
-rw--- 1 vmail mail98839 Mär 16 13:51 m

remove unreferenced files from mail_attachment_dir

2014-06-27 Thread Hardy Flor

Hello,

I restore a backup from all users (mail_location ...) the 
mail_attachment_dir backup was  not from the same time.


How can I the unreferenced files from mail_attachment_dir?

Hardy


Re: [Dovecot] mdbox-files over 2 MB

2014-05-05 Thread Hardy Flor

Is there really no one with this problem?


[Dovecot] purgewith doveadm without user (public mailbox)

2014-03-17 Thread Hardy Flor

Hello,

how I can in a public mailbox (mdbox), without user associated, the 
command 'doveadm purge ...' can run?


[Dovecot] mdbox-files not approximately 2 MB

2014-03-17 Thread Hardy Flor

Hello,

there are copies with different size in 3 mailboxes of the user 
sequentially about 3800 emails.

why not something 2MB files?

After the big file m.0034 with 14MB follow very many small ...

- doveconf:

# 2.2.12: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4
mail_attachment_dir = /var/mail/attachments
mail_attachment_hash = %{md5}
mail_attachment_min_size = 16 k
mail_location = mdbox:/var/mail/user/%n
mdbox_rotate_interval = 1 weeks
mdbox_rotate_size = 2 M

- directory:

root@xxx:/var/mail/user/xxx/storage# ls -al
insgesamt 76532
drwx--S--- 2 vmail mail 4096 Mär 16 13:52 .
drwx--S--- 6 vmail mail 4096 Mär 16 12:10 ..
-rw--- 1 vmail mail74360 Mär 16 12:39 dovecot.map.index
-rw--- 1 vmail mail25204 Mär 16 13:52 dovecot.map.index.log
-rw--- 1 vmail mail63544 Mär 16 12:39 dovecot.map.index.log.2
-rw--- 1 vmail mail  2092921 Mär 16 12:15 m.0001
-rw--- 1 vmail mail  2086746 Mär 16 12:15 m.0002
-rw--- 1 vmail mail  2084182 Mär 16 12:15 m.0003
-rw--- 1 vmail mail  2096826 Mär 16 12:15 m.0004
-rw--- 1 vmail mail  1882666 Mär 16 12:15 m.0005
-rw--- 1 vmail mail  1903965 Mär 16 12:15 m.0006
-rw--- 1 vmail mail  2091169 Mär 16 12:15 m.0007
-rw--- 1 vmail mail  2086396 Mär 16 12:15 m.0008
-rw--- 1 vmail mail   507205 Mär 16 12:16 m.0009
-rw--- 1 vmail mail  2031456 Mär 16 12:17 m.0010
-rw--- 1 vmail mail  2095697 Mär 16 12:17 m.0011
-rw--- 1 vmail mail  1689071 Mär 16 12:17 m.0012
-rw--- 1 vmail mail  2092124 Mär 16 12:17 m.0013
-rw--- 1 vmail mail  1950602 Mär 16 12:17 m.0014
-rw--- 1 vmail mail  2092215 Mär 16 12:17 m.0015
-rw--- 1 vmail mail  2087463 Mär 16 12:17 m.0016
-rw--- 1 vmail mail  2079795 Mär 16 12:17 m.0017
-rw--- 1 vmail mail  2014121 Mär 16 12:17 m.0018
-rw--- 1 vmail mail  2081893 Mär 16 12:17 m.0019
-rw--- 1 vmail mail  2092088 Mär 16 12:17 m.0020
-rw--- 1 vmail mail  2090508 Mär 16 12:17 m.0021
-rw--- 1 vmail mail  1929296 Mär 16 12:17 m.0022
-rw--- 1 vmail mail  2067685 Mär 16 12:17 m.0023
-rw--- 1 vmail mail  1745743 Mär 16 12:20 m.0024
-rw--- 1 vmail mail   866452 Mär 16 12:20 m.0025
-rw--- 1 vmail mail   296379 Mär 16 12:20 m.0026
-rw--- 1 vmail mail   433541 Mär 16 12:39 m.0027
-rw--- 1 vmail mail92526 Mär 16 12:39 m.0028
-rw--- 1 vmail mail19094 Mär 16 12:39 m.0029
-rw--- 1 vmail mail   106837 Mär 16 12:39 m.0030
-rw--- 1 vmail mail   162012 Mär 16 12:39 m.0031
-rw--- 1 vmail mail   412080 Mär 16 13:51 m.0032
-rw--- 1 vmail mail  1715868 Mär 16 13:51 m.0033
-rw--- 1 vmail mail 14433784 Mär 16 13:51 m.0034
-rw--- 1 vmail mail 3280 Mär 16 13:51 m.0035
-rw--- 1 vmail mail 6308 Mär 16 13:51 m.0036
-rw--- 1 vmail mail   534274 Mär 16 13:51 m.0037
-rw--- 1 vmail mail   378719 Mär 16 13:51 m.0038
-rw--- 1 vmail mail   458528 Mär 16 13:51 m.0039
-rw--- 1 vmail mail   192504 Mär 16 13:51 m.0040
-rw--- 1 vmail mail  1277766 Mär 16 13:51 m.0041
-rw--- 1 vmail mail33417 Mär 16 13:51 m.0042
-rw--- 1 vmail mail   142866 Mär 16 13:51 m.0043
-rw--- 1 vmail mail   113529 Mär 16 13:51 m.0044
-rw--- 1 vmail mail55888 Mär 16 13:51 m.0045
-rw--- 1 vmail mail   673504 Mär 16 13:51 m.0046
-rw--- 1 vmail mail   430738 Mär 16 13:51 m.0047
-rw--- 1 vmail mail   218494 Mär 16 13:51 m.0048
-rw--- 1 vmail mail96165 Mär 16 13:51 m.0049
-rw--- 1 vmail mail 8370 Mär 16 13:51 m.0050
-rw--- 1 vmail mail29251 Mär 16 13:51 m.0051
-rw--- 1 vmail mail   394680 Mär 16 13:51 m.0052
-rw--- 1 vmail mail   674892 Mär 16 13:51 m.0053
-rw--- 1 vmail mail  1076919 Mär 16 13:51 m.0054
-rw--- 1 vmail mail   258806 Mär 16 13:51 m.0055
-rw--- 1 vmail mail60069 Mär 16 13:51 m.0056
-rw--- 1 vmail mail   297891 Mär 16 13:51 m.0057
-rw--- 1 vmail mail92772 Mär 16 13:51 m.0058
-rw--- 1 vmail mail   129272 Mär 16 13:51 m.0059
-rw--- 1 vmail mail56073 Mär 16 13:51 m.0060
-rw--- 1 vmail mail   528260 Mär 16 13:51 m.0061
-rw--- 1 vmail mail29468 Mär 16 13:51 m.0062
-rw--- 1 vmail mail 3250 Mär 16 13:51 m.0063
-rw--- 1 vmail mail96445 Mär 16 13:51 m.0064
-rw--- 1 vmail mail   337663 Mär 16 13:51 m.0065
-rw--- 1 vmail mail   187505 Mär 16 13:51 m.0066
-rw--- 1 vmail mail98839 Mär 16 13:51 m.0067
-rw--- 1 vmail mail 5294 Mär 16 13:51 m.0068
-rw--- 1 vmail mail28276 Mär 16 13:51 m.0069
-rw--- 1 vmail mail67950 Mär 16 13:52 m.0070
-rw--- 1 vmail mail   704457 Mär 16 13:52 m.0071

[Dovecot] Panic: file mail-index-map.c: line 547 (mail_index_map_lookup_seq_range): assertion failed: (first_uid 0)

2014-03-11 Thread Hardy Flor

Version: 2.2.12
OS: Debian wheezy x86_64

2014 Mar 11 20:06:53 ptb-test imap(flor_hardy): Panic: file mail-index-map.c: line 
547 (mail_index_map_lookup_seq_range): assertion failed: (first_uid  0)
2014 Mar 11 20:06:53 ptb-test imap(flor_hardy): Fatal: master: service(imap): 
child 2760 killed with signal 6 (core dumped)

GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or laterhttp://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/lib/dovecot/imap...Reading symbols from 
/usr/lib/debug/usr/lib/dovecot/imap...done.
done.
[New LWP 2760]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
Core was generated by `dovecot/imap'.
Program terminated with signal 6, Aborted.
#0  0x7f32d28b4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x7f32d28b4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f32d28b76f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7f32d2c78345 in default_fatal_finish (type=optimized out, 
status=status@entry=0) at failures.c:193
backtrace = 0x186d768 /usr/lib/dovecot/libdovecot.so.0(+0x6b34f) [0x7f32d2c7834f] 
- /usr/lib/dovecot/libdovecot.so.0(+0x6b3ae) [0x7f32d2c783ae] - 
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f32d2c31e8e] - /usr/lib/d...
#3  0x7f32d2c783ae in i_internal_fatal_handler (ctx=0x7fff8d12aa30, 
format=optimized out, args=optimized out) at failures.c:657
status = 0
#4  0x7f32d2c31e8e in i_panic (format=format@entry=0x7f32d2fbc098 file %s: line 
%d (%s): assertion failed: (%s)) at failures.c:267
ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0}
args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 
0x7fff8d12ab20, reg_save_area = 0x7fff8d12aa60}}
#5  0x7f32d2fa03b2 in mail_index_map_lookup_seq_range (map=optimized out, 
first_uid=0, last_uid=optimized out,
first_seq_r=optimized out, last_seq_r=optimized out) at 
mail-index-map.c:549
__FUNCTION__ = mail_index_map_lookup_seq_range
#6  0x7f32d2fa856d in tview_lookup_seq_range (view=0x18a6850, first_uid=0, 
last_uid=0, first_seq_r=0x18a79e0, last_seq_r=0x18a79e0)
at mail-index-transaction-view.c:178
tview = 0x18a6850
rec = optimized out
seq = optimized out
__FUNCTION__ = tview_lookup_seq_range
#7  0x7f32d2fb17c2 in mail_index_lookup_seq (view=optimized out, 
uid=optimized out, seq_r=seq_r@entry=0x18a79e0)
at mail-index-view.c:522
No locals.
#8  0x7f32d2f809b4 in index_mail_get_pvt (_mail=_mail@entry=0x18a78a0) at 
index-mail.c:158
No locals.
#9  0x7f32d2f81082 in index_mail_get_pvt (_mail=0x18a78a0) at 
index-mail.c:152
mail = 0x18a78a0
#10 index_mail_get_flags (_mail=0x18a78a0) at index-mail.c:177
mail = 0x18a78a0
rec = optimized out
flags = MAIL_ANSWERED
pvt_flags_mask = optimized out
#11 0x7f32d18371a4 in mail_log_append_mail_message_real (desc=0x7f32d1837504 
save, event=MAIL_LOG_EVENT_SAVE, mail=0x18a78a0,
ctx=0x18c62f0) at mail-log-plugin.c:297
muser = optimized out
msg = 0x18c6308
text = 0x186d310
size = 224891
#12 mail_log_append_mail_message (desc=0x7f32d1837504 save, 
event=MAIL_LOG_EVENT_SAVE, mail=0x18a78a0, ctx=0x18c62f0)
at mail-log-plugin.c:335
_data_stack_cur_id = 3
#13 mail_log_append_mail_message (ctx=0x18c62f0, mail=0x18a78a0, 
event=MAIL_LOG_EVENT_SAVE, desc=0x7f32d1837504 save)
at mail-log-plugin.c:320
muser = optimized out
#14 0x7f32d1c3c51b in notify_contexts_mail_save (mail=mail@entry=0x18a78a0) 
at notify-plugin.c:63
ctx = 0x1886fc0
mail_txn = optimized out
#15 0x7f32d1c3d4b0 in notify_save_finish (ctx=optimized out) at 
notify-storage.c:145
lbox = optimized out
dest_mail = 0x18a78a0
#16 0x7f32d2f64582 in mailbox_save_finish (_ctx=_ctx@entry=0x189a280) at 
mail-storage.c:2073
ctx = 0x18a9590
t = 0x18ab220
keywords = 0x0
pvt_flags = MAIL_SEEN
copying_via_save = false
ret = optimized out
__FUNCTION__ = mailbox_save_finish
#17 0x0040cef1 in cmd_append_continue_message (cmd=0x189a120) at 
cmd-append.c:858
lit_offset = 228081
client = 0x1899540
ctx = 0x189a228
ret = optimized out
#18 0x004183cc in command_exec (cmd=0x189a120) at imap-commands.c:158
hook = 0x18760f0
ret = optimized out
#19