Re: Reading config-value from file does not work.

2019-11-08 Thread Jakobus Schürz via dovecot
Ping

Am 18.09.19 um 15:39 schrieb Jakobus Schürz via dovecot:
>
> Hi guys!
>
> In
> https://doc.dovecot.org/configuration_manual/config_file/config_file_syntax/
> i ca see this:
>
>
> Reading value from file
>
> It’s possible to read the value for a setting from a file:
>
> key = 
> The value is read exactly as the entire contents of the file. This
> includes all the whitespace and newlines. The paths are relative to
> the currently parsed config file’s directory, similar to how !include
> works. The file is read immediately whenever parsing the configuration
> file, so if it changes afterwards it requires a configuration reload
> to see the changes. This functionality is especially useful for
> reading SSL certificates and keys.
>
> So i thought it's a good idea, to write the password for dnpass for my
> ldap in this notation in my config
>
> dnpass = 
> /etc/dovecot/private/dnpass contains only this
> myVerYSecretLdApPAssworD
>
> no space, no newline.
>
> But dovecot cannot authenticate on the ldap-host.
> I also tried
> dnpass =  dnpass = 
> Then i tried a file
> /etc/dovecot/conf.d/00-dnpass.conf
> with
> dnpass = myVerYSecretLdApPAssworD
>
> It should be included with dovecot.conf
>
> !include conf.d/*.conf
>
> The only notation that works is the line
>
> dnpass = myVerYSecretLdApPAssworD
>
> in /etc/dovecot/dovecot-ldap-userdb.conf.ext
>
> I thought it's a good idea to write it in an extra file, so i have to
> manipulate only one small file with ansible, when i renew the password.
>
> Is it a bug or does it work as designed, and the doc is wrong?
>
> thank you
>
> Jakob


Re: dovecot ignores users sieve-script

2019-11-08 Thread Jakobus Schürz via dovecot


Am 07.11.19 um 17:01 schrieb Stephan Bosch:
>
> Op 7-11-2019 om 13:30 schreef Jakobus Schürz via dovecot:
>> Hi there!
>>
>> I recognized that dovecot ignores users sieve-script. The global and the
>> post-sieve-scripts are working, but users sievescript is ignored.
>>
>> You can see the sieve trace-files last lines
>>
>>    65:   finishing match with result: not matched
>>    65: jump if result is true
>>    65:   not jumping
>>    65: jumping to line 67
>>    67: jumping to line 77
>>    ## Finished executing script 'global'
>>        ## Started executing script 'junk'
>>     2: header test
>>     2:   starting `:contains' match with `i;ascii-casemap' comparator:
>>     2:   extracting `X-Spam' headers from message
>>     2:   finishing match with result: not matched
>>     2: jump if result is false
>>     2:   jumping to line 6
>>    ## Finished executing script 'junk'
>>
>> Between global and junk-Script should sieve run users sieve script.
>>
>> Before the Upgrade to 2.3.8 sieve was working correct. Now ALL messages
>> go to INBOX, no one is filtered anymore.
>>
>> compiling the sievescript with
>>
>> sudo -u vmail sievec sievefilter.sieve
>>
>> gives no errormessage...
>>
>> My users sievefilter is:
>>
>> /var/mail/jakobus.schuerz/sieve/sievefilter.sieve
>>
>> This directory contains:
>> lrwxrwxrwx 1 vmail vmail    17 Nov  7 12:44 jakobus.schuerz.sieve ->
>> sievefilter.sieve
>> -rw--- 1 vmail vmail 36834 Nov  7 13:25 jakobus.schuerz.svbin
>> -rw--- 1 vmail vmail 45588 Nov  7 11:43 sievefilter.sieve
>
> Can you enable mail_debug and check the logs?

I had logs enabled "mail_debug = true", but lda did not write to journal...

So i changed the config for protocol lda (before log_path and
info_log_path where empty after = )

protocol lda {
  # Space separated list of plugins to load (default is global
mail_plugins).
  mail_plugins = $mail_plugins quota sieve acl
  log_path = /var/log/dovecot/lda-errors.log
  info_log_path = /var/log/dovecot/lda.log

}

and checked these logfiles. So I could find out, that i made a
config-change in my LDAP, and now the username/email changed for sieve
settings...

Could fix it.


But why is no debug-output in journal, when these to log-path settings
are empty? Then it should go to rsyslog and then to journal...


jakob



dovecot ignores users sieve-script

2019-11-07 Thread Jakobus Schürz via dovecot
Hi there!

I recognized that dovecot ignores users sieve-script. The global and the
post-sieve-scripts are working, but users sievescript is ignored.

You can see the sieve trace-files last lines

  65:   finishing match with result: not matched
  65: jump if result is true
  65:   not jumping
  65: jumping to line 67
  67: jumping to line 77
  ## Finished executing script 'global'
 
 
  ## Started executing script 'junk'
   2: header test
   2:   starting `:contains' match with `i;ascii-casemap' comparator:
   2:   extracting `X-Spam' headers from message
   2:   finishing match with result: not matched
   2: jump if result is false
   2:   jumping to line 6
  ## Finished executing script 'junk'

Between global and junk-Script should sieve run users sieve script.

Before the Upgrade to 2.3.8 sieve was working correct. Now ALL messages
go to INBOX, no one is filtered anymore.

compiling the sievescript with

sudo -u vmail sievec sievefilter.sieve

gives no errormessage...

My users sievefilter is:

/var/mail/jakobus.schuerz/sieve/sievefilter.sieve

This directory contains:
lrwxrwxrwx 1 vmail vmail    17 Nov  7 12:44 jakobus.schuerz.sieve ->
sievefilter.sieve
-rw--- 1 vmail vmail 36834 Nov  7 13:25 jakobus.schuerz.svbin
-rw--- 1 vmail vmail 45588 Nov  7 11:43 sievefilter.sieve

The dovecot conf dump:

# 2.3.8 (9df20d2db): /etc/dovecot/dovecot.conf

# Pigeonhole version 0.5.8 (b7b03ba2)
# OS: Linux 4.19.0-6-amd64 x86_64 Debian 10.1 # Hostname:
mail.mydomain.example
auth_mechanisms = plain login cram-md5 digest-md5
auth_socket_path = /var/run/dovecot/auth-userdb
disable_plaintext_auth = no
first_valid_uid = 1000
imap_capability = +XDOVECOT +SPECIAL-USE
imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags delay-newmail
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = *, ::1
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
tls=%k
login_trusted_networks = 127.0.0.1/8 192.168.0.0/24 192.168.1.0/24
172.17.0.0/24 172.18.0.0/24
mail_gid = vmail
mail_home =  /var/mail/%u
mail_location =
maildir:~/Maildir:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/Maildir/%u:CONTROL=/var/lib/dovecot/db/control/Maildir/%u
mail_plugins = zlib quota acl listescape mail_log notify virtual fts
fts_lucene
mail_privileged_group = vmail
mail_server_admin = mailto:user@mydomain.example
mail_shared_explicit_inbox = yes
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 index ihave duplicate mime foreverypart
extracttext imapsieve vnd.dovecot.imapsieve
namespace Geteilt {
hidden = no
inbox = no
list = children
location =
maildir:/var/mail/%%u/Maildir:LAYOUT=fs:INDEXPVT=/var/lib/dovecot/db/indexes/shared/%u/%%u
prefix = Geteilt/%%n/
separator = /
subscriptions = no
type = shared
}
namespace History {
hidden = no
inbox = no
list = children
location =
maildir:/var/mail/archiv/%u/:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/archiv/%u:CONTROL=/var/lib/dovecot/db/control/archiv/%u
mailbox Archiv {
auto = subscribe
special_use = \Archive
}
prefix = Archiv/
separator = /
subscriptions = no
type = private
}
namespace Synoptic {
hidden = no
ignore_on_failure = no
list = children
location =
virtual:/var/mail/virtual/synoptic:INDEX=/var/lib/dovecot/db/indexes/virtual/synoptic/%u
mailbox AKTUELL {
auto = subscribe
special_use = \All
}
mailbox Markierte {
auto = subscribe
special_use = \Flagged
}
mailbox Neue {
auto = subscribe
}
mailbox Rechnungen {
auto = subscribe
}
mailbox WICHTIG {
auto = subscribe
}
prefix = Synoptic/
separator = /
subscriptions = no
}
namespace Tulln {
list = children
location =
maildir:/var/mail/public/tulln:SUBSCRIPTIONS=subscriptions/%u:LAYOUT=fs:INDEXPVT=/var/lib/dovecot/db/indexes/public/tulln/%u
mailbox Familie {
auto = subscribe
}
mailbox Versicherungen {
auto = subscribe
}
mailbox familyextracard {
auto = subscribe
}
prefix = Tulln/
separator = /
subscriptions = no
type = public
}
namespace inbox {
hidden = no
inbox = yes
location = mailbox "Deleted Messages" {
auto = no
autoexpunge = 30 days
special_use = \Trash
}
mailbox Drafts {
auto = no
special_use = \Drafts
}
mailbox Entwürfe {
auto = no
special_use = \Drafts
}
mailbox "Gelöschte Elemente" {
auto = no
autoexpunge = 30 days
special_use = \Trash
}
mailbox "Gelöschte Objekte" {
auto = no
autoexpunge = 30 days
special_use = \Trash
}
mailbox Gesendet {
auto = no
special_use = \Sent
}
mailbox "Gesendete Elemente" {
auto = no
special_use = \Sent
}
mailbox "Gesendete Objekte" {
auto = no
special_use = \Sent
}
mailbox Junk {
auto = subscribe
autoexpunge = 30 days
special_use = \Junk
}
mailbox Mistkübel {
auto = no
autoexpunge = 30 days
special_use = \Trash
}
mailbox Papierkorb {
auto = no
autoexpunge = 30 days
special_use = \Trash
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox 

Reading config-value from file does not work.

2019-09-18 Thread Jakobus Schürz via dovecot
Hi guys!

In
https://doc.dovecot.org/configuration_manual/config_file/config_file_syntax/
i ca see this:


Reading value from file

It’s possible to read the value for a setting from a file:

key = 

Re: LMTP Post login script for acl_groups

2019-08-28 Thread Jakobus Schürz via dovecot
I think, i had the same problem as you.

When dovecot runs lmtp, no user is logged in, so there is no user from
which you can get groups. So i think, my solution is (not really sure,
if this is right, it's a long time ago, i played around) this transport
in exim for local delivery

dovecot_delivery: 
  debug_print = "T: dovecot_delivery_pipe for $local_part@$domain
translates to GET_LOCAL_MAIL"
  driver = pipe   
  command = /usr/lib/dovecot/deliver -d "GET_LOCAL_MAIL"
  message_prefix =
  message_suffix =
  delivery_date_add
  envelope_to_add 
  return_path_add 
  log_output
  user = MAILUSER
  group = MAILUSER

I have a really sophisticated setup with ldap... so GET_LOCAL_MAIL and
MAILUSER are makros which get the email-adress and the mailuser for the
receiving emailadress.

GET_LOCAL_MAIL could be $local_part@$domain
MAILUSER is vmail in my setup, the user who owns all mailboxes

/usr/lib/dovecot/deliver is an alternative for the lmtp-delivery.


HTH

Jakob




Re: acl_groups in LDAP

2019-02-05 Thread Jakobus Schürz via dovecot
Am 05.02.19 um 08:23 schrieb Christian Rößner via dovecot:
> Hi,
>
> I found a 9 year old thread 
> (https://www.dovecot.org/list/dovecot/2010-October/054407.html) concerning 
> acl_groups in OpenLDAP. In this thread someone asked, if it is possible to 
> provide ACLs as multi value in OpenLDAP. I know that Dovecot expects 
> acl_groups as a comma separated list, so currently I do this with a single 
> value. Did the code change a little bit and accepts multi values now?
>
> Would be nice to have attributes like:
>
> ACLAttribute: group1
> ACLAttribute: group2
> ...
>
> Instead of:
>
> ACLAttribute: group1,group2
>
> Thanks in advance
This sounds good!

Or do you know, how to build an overlay for openldap, which produces the
list for acl_groups?


jakob



Re: acl_groups from LDAP issue

2019-02-04 Thread Jakobus Schürz
Hi Aki!

The command didn't work. The protected mailbox is not shown.

It's not the big problem, when doveadm does not show the public mailbox.
The problem is, i have a sieve-filter, which puts some emails to this
mailboxes... and the sieve-filter does not work too... the same problem
"permission denied" in case of not knowing the acl_groups from ldap... 
The sievefilter is a global-filter not a users sievefilter...

how can i handle global mail-filtering for all users into one public
mailbox?

lg jakob

Am 04.02.19 um 13:44 schrieb Aki Tuomi:
> Well, you don't have postlogin scripts when running doveadm. Those are 
> executed by *-login and usually execute the actual protocol handler.
>
> Try 
>
> env ACL_GROUPS=whatever doveadm mailbox list -u test.user
>
> Aki
>
>> On 04 February 2019 at 14:39 Jakobus Schürz  
>> wrote:
>>
>>
>> Hi!
>>
>> I have some trouble with userdb, ldap an extrafields for acl_groups.
>>
>> There is a script in python, which fetches the groups and sets the
>> environment-variable ACL_GROUPS to this groups.
>> It works when i log in to imap (thunderbird for example shows my  public
>> folders which are protected by acl_groups).
>>
>> But when it try
>>
>> doveadm mailbox list -u user.name
>>
>> the mailboxes are not listed and with -Dv i get "permission denied, no
>> lookup rights".
>>
>> in my dovecot-ldap-userdb.conf.ext is
>>
>> hosts = ldap.server.example
>> dn = cn=service_id,ou=mailserver,ou=system,ou=services,dc=server,dc=example
>> dnpass = protectedpassword12345
>> tls = yes
>> tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
>> tls_require_cert = demand
>> ldap_version = 3
>> base = ou=users,dc=server,dc=example
>> deref = always
>> scope = subtree
>> user_attrs =
>> =home={ldap:dcMailMessageStore},system_groups_user=%u,allow_all_users=yes,=acl_groups=%{env:ACL_GROUPS}
>> user_filter =
>> (&(objectClass=posixAccount)(uid=%u)(!(sn=NoLogin))(|(memberof=cn=perm-app-mymail_admins,ou=mymail,ou=apps,ou=services,dc=schuerz,dc=at)(memberof=cn=perm-app-mymail_users,ou=mymail,ou=apps,ou=services,dc=schuerz,dc=at)))
>>
>>
>> when i change acl_groups=%{env:ACL_GROUPS} to acl_gropus=mygroup, the
>> doveadm mailbox list command shows my public mailbox
>>
>>
>> So how do i get my acl_groups from the postlogin-script output into
>> userdb-query?
>>
>> Even, when i do on the shell
>>
>> ACL_GROUPS=mygroup doveadm mailbox list -u user.name
>>
>> the ACL_GROUPS Environment is ignored by the doveadm-command...
>>
>>
>> thank you
>>
>>
>> jakob
>>


acl_groups from LDAP issue

2019-02-04 Thread Jakobus Schürz
Hi!

I have some trouble with userdb, ldap an extrafields for acl_groups.

There is a script in python, which fetches the groups and sets the
environment-variable ACL_GROUPS to this groups.
It works when i log in to imap (thunderbird for example shows my  public
folders which are protected by acl_groups).

But when it try

doveadm mailbox list -u user.name

the mailboxes are not listed and with -Dv i get "permission denied, no
lookup rights".

in my dovecot-ldap-userdb.conf.ext is

hosts = ldap.server.example
dn = cn=service_id,ou=mailserver,ou=system,ou=services,dc=server,dc=example
dnpass = protectedpassword12345
tls = yes
tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
tls_require_cert = demand
ldap_version = 3
base = ou=users,dc=server,dc=example
deref = always
scope = subtree
user_attrs =
=home={ldap:dcMailMessageStore},system_groups_user=%u,allow_all_users=yes,=acl_groups=%{env:ACL_GROUPS}
user_filter =
(&(objectClass=posixAccount)(uid=%u)(!(sn=NoLogin))(|(memberof=cn=perm-app-mymail_admins,ou=mymail,ou=apps,ou=services,dc=schuerz,dc=at)(memberof=cn=perm-app-mymail_users,ou=mymail,ou=apps,ou=services,dc=schuerz,dc=at)))


when i change acl_groups=%{env:ACL_GROUPS} to acl_gropus=mygroup, the
doveadm mailbox list command shows my public mailbox


So how do i get my acl_groups from the postlogin-script output into
userdb-query?

Even, when i do on the shell

ACL_GROUPS=mygroup doveadm mailbox list -u user.name

the ACL_GROUPS Environment is ignored by the doveadm-command...


thank you


jakob



Re: Log sync error

2018-12-10 Thread Jakobus Schürz

Am 11.09.18 um 21:19 schrieb Jakobus Schürz:
> Hi there!
>
> I get a lot of errormessages. My dovecot is: dovecot-core
> 2:2.3.2.1-1~stretch from Debian stable.
>
> I found this: https://www.dovecot.org/list/dovecot/2013-July/091648.html
>
> So the bug came back...
>

This Problem was also solved, when i solved the problem, that dovecot
marked every mail as \Recent and Unseen which was moving to another mailbox.
The solution was i my case:

Removing the INDEXPVT from mail_location

mail_location = 
maildir:/var/mail/%u/Maildir:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/Maildir/%u:INDEXPVT=/var/lib/dovecot/db/indexes/Maildir/%u:CONTROL=/var/lib/dovecot/db/control/Maildir/%u

so that it looked like

mail_location = 
maildir:/var/mail/%u/Maildir:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/Maildir/%u:CONTROL=/var/lib/dovecot/db/control/Maildir/%u

This is for completeness.


BR

Jakob




Re: BUG: sieve does not set seen-Flag [SOLVED]

2018-12-09 Thread Jakobus Schürz
Hello!

I think i got it. This weekend i setup a totally new Mailserver for
testing purpose.
First to the default-setup and used a file for userdb.
Then I activated ldap-authentication.
Moving emails around does not changed the \Seen-state (how it should be)
Then i copied my 10-mail.conf to the new server. And moving a message to
an other folder sets it as \Recent and unseen... So the bug must be in
this file...

My setup uses separat directories for INDEX anc CONTROL in
/var/lib/dovecot... and INDEXPVT for shared boxes and even the INBOX...

Then I removed all the separate INDEX, CONTROL an INDEXPVT-options for
mail_location so thant only

mail_location = maildir:/var/mail/%u/Maildir:LAYOUT=fs

was left. And moving messages arround let them stay unseen.

Then i added INDEX, CONTROL and INDEXPVT step by step and tested the
setup...

At least i had again

mail_location = 
maildir:/var/mail/%u/Maildir:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/Maildir/%u:INDEXPVT=/var/lib/dovecot/db/indexes/Maildir/%u:CONTROL=/var/lib/dovecot/db/control/Maildir/%u

Moving messages with INDEXPVT in the config sets messages again to
\Recent and unseen in the new Folder. Without INDEXPVT an unseen message
stays unseen...

So i think, the problem is solved.


Bye jakob



Re: BUG: sieve does not set seen-Flag

2018-12-06 Thread Jakobus Schürz

Am 07.12.18 um 08:10 schrieb Noel Butler:
>
> On 07/12/2018 16:44, Aki Tuomi wrote:
>
>>
>> On 6.12.2018 6.54, Noel Butler wrote:
>>>
>>> On 06/12/2018 07:29, Jakobus Schürz wrote:
>>>
>>>  that all and every Flag is set, except \Seen... I tried to
>>> figure out, whats happening here...
>>>
>>> Paste what your sieve file contains now (no, I'm not going back over
>>> this thread - its becoming as long as war and peace, and you may
>>> have changed it since then)
>>>
>>>
>>> Please understand me right... It is nice for you, if dovecot
>>> does, what you expect... It is nice. But here it does not work
>>> correctly. dovecot makes a big mistake. And i try to give as
>>> much information, as i'm possible to give...
>>>
>>> I doubt its dovecot, since no one else has reported this problem
>>> that I can see - without going back to find the start of the thread.
>>>
>>> my dovecot does not copy the Seen-flag. It ignores it. But WHY.
>>> Fucking WHY???
>>>
>>> Mind your tongue if you want help here, despite frustrations (man I
>>> must be getting old and mellowing), no one here has to do shit for
>>> you, the fact it works for everyone else, indicates there is a
>>> problem with your configuration and yours alone - somewhere, and
>>> because you're the only one experiencing this, it may be harder to
>>> trace the origin of.
>>>
>>>
>>> -- 
>>>
>>> Kind Regards,
>>>
>>> Noel Butler
>>>
>>> This Email, including any attachments, may contain legally
>>> privileged information, therefore remains confidential and subject
>>> to copyright protected under international law. You may not
>>> disseminate, discuss, or reveal, any part, to anyone, without the
>>> authors express written authority to do so. If you are not the
>>> intended recipient, please notify the sender then delete all copies
>>> of this message including attachments, immediately. Confidentiality,
>>> copyright, and legal privilege are not waived or lost by reason of
>>> the mistaken delivery of this message. Only PDF
>>> <http://www.adobe.com/> and ODF
>>> <http://en.wikipedia.org/wiki/OpenDocument> documents accepted,
>>> please do not send proprietary formatted documents
>>>
>>
>> I finally had some time to try this out, and wasn't able to reproduce
>> the problem with 2.3.4 and 0.5.4.
>>
>> I tried both Sieve and IMAPSieve, but I wonder if this is something
>> particular in your environment or settings, so I have to ask you to
>> post your `doveconf -n` once more.
>>
>> Aki
>>
>
> Did he ever tell us what this is on, I saw stretch somewhere in thread
> so I gather its debian, but is it on real hardware, or rpi, has he
> tried using the source, who knows what happens when distros butcher
> things up into 70 different sub packages :)
>
Hi. sorry for my anger a few days ago...
And Aki... i reviewd the thread... you never asked me before for dovecot
-n. It is the first time.
I also wrote, that i use the packages from the dovecot-repo for debian.
So i was thinking, it is clear, which version i use. It's not
debian-repo, it is dovecot-repo, which i got from the dovecot-release-notes.

My anger was, i wrote details, logmessages, behaviour... again and
again... and i got the every similar message "for me it works"... and "i
dont want to read the whole thread"... so i was angry, how often again i
should post the same again...

Great sorry for my tongue.

My hardware is a rented virtual server from a cloudprovider in germany,
where i have full permissions on it. The filesystem is ext4.
I atteched my dovecot -n

The mails all are stored in maildir in /var/mail.
There is an extra dir /var/lib/dovecot/db... where index and control are
in separate directories.

The owner and group from all of this directories are all vmail:vmail
The permissions are 0700 (only vmail is allowed to read/write/execute in
this directories)

And again... it's independed from MUA: When i move a message to another
folder, the message in the new folder is shown as recent and unseen. I
posted - i think - 3 times the logs from the copy/expunge-task, where
the "flags()" is empty on copy, but expunge from the original folder
shows the correct flags. If you want... i can do it a 4th time ;-)

I also asked for a possibility (which i do not know) to turn up the
debug-level more than i have now, to see, what happens, that i can post
it. maybe it is a permission-problem. I don't know.
Maybe ther

Re: BUG: sieve does not set seen-Flag

2018-12-05 Thread Jakobus Schürz


Am 05.12.18 um 22:19 schrieb Ralph Seichter:
> * Jakobus Schürz:
>
>> Does it matter, if the keyword-files do not match?
> Possibly. The keyword files define flag<->letter mappings. You have
> shown two files with mappings (let's call them A and B) with A being a
> subset of B. If a file is moved from A to B, all is fine. What happens
> if a file is moved from B to A is for Aki to know. ;-)
>
>> 0 $label3
>> 1 NonJunk
>> 2 Junk
>> 3 redirected
>> 4 $label2
>> 5 $label4
>> 6 Seen
> This does not look right to me. AFAIK, "Seen" should not appear in this
> list, because it is one of the predefined flags, but that is also a
> subject I'd like to hear the Dovecot authors talk about.
>
> -Ralph
>
> P.S.: Unrelated: Please do not top-post, and definitely do not quote the
> complete message history every time you reply. Thanks.
Ok. I use dovecot as a service... i did nothing, which is not said in
the official dovecot doku... so... Seen is in this file... Dovecot must
write it down there... because i did it not... i work with thunderbird,
gmail and horde... so dovecot must wrote it itself...


Re: BUG: sieve does not set seen-Flag

2018-12-05 Thread Jakobus Schürz
Ok. I told you, that all and every Flag is set, except \Seen... I tried
to figure out, whats happening here... And my dovecot is not working as
it is designed...

It's nice to see, that dovecot is working for you... but here it is not
working as it should...
Changing to cyrus? What should i do? Where i can find debug-infos?

Please understand me right... It is nice for you, if dovecot does, what
you expect... It is nice. But here it does not work correctly. dovecot
makes a big mistake. And i try to give as much information, as i'm
possible to give...
Nice to hear, that your dovecot copies the Seen-Flag... my dovecot does
not copy the Seen-flag. It ignores it. But WHY. Fucking WHY???

Are there some posibilities to turn up log level? more than i know? How
can i get more debug-level? That are the informations, i need to know..
It is useless for me, when i know, that dovecot works for you. My
dovecot does not its job. And i need to know, how i can debug this shit.
I hope, you understand me. If your dovecot works as expected... it's
nice for you... it does not help me. I need definitly other informations...


Jakob

Am 05.12.18 um 22:18 schrieb Larry Rosenman:
> We've all shown the way it should work, and what DOES work for us. 
> There appears to be  different about your setup.
>
> I've showed you my spam sieve filter that does set \Seen.  
>
> I deliver my mail via dovecot LMTP to mbox formatted files. 
>
> What's different in your setup?
>
> Those \Seen flags are visible in ALL the clients I use (Outlook,
> Outlook Android, Gmail Android, Neomutt).
>
>
>
> On Wed, Dec 5, 2018 at 3:15 PM Jakobus Schürz
> mailto:wertsto...@nurfuerspam.de>> wrote:
>
> Hello!
> is anybody else here??? Are my informations to much? Am I alone
> with this fucking shit? Are my informations to less??? Why do I
> have the feeling, nobody else is interesting in this problem?
>
>
> Jakob
>
> Am 05.12.18 um 11:37 schrieb Jakobus Schürz:
>>
>> What really strange is:
>>
>> There is a seen message
>>
>> 1544001025.M268344P5000.mymail,S=2804,W=2861:2,S
>>
>> Shown in Thunderbird as seen. Then i move this message to INBOX,
>> and the logs say:
>>
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Debug: Mailbox INBOX: Mailbox 
>> opened because: UID move
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Debug: imapsieve: mailbox 
>> INBOX: MOVE event
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Error: Log synchronization 
>> error at seq=22,offset=31692 for 
>> /var/lib/dovecot/db/indexes/Maildir/user.name/INBOX/dovecot.index 
>> <http://user.name/INBOX/dovecot.index>: Append with UID 861, but next_uid = 
>> 862
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Warning: fscking index file 
>> /var/lib/dovecot/db/indexes/Maildir/user.name/INBOX/dovecot.index 
>> <http://user.name/INBOX/dovecot.index>
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Debug: sieve: Pigeonhole 
>> version 0.5.4 (60b0f48d) initializing
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Debug: sieve: Sieve imapsieve 
>> plugin for Pigeonhole version 0.5.4 (60b0f48d) loaded
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Debug: sieve: Sieve Extprograms 
>> plugin for Pigeonhole version 0.5.4 (60b0f48d) loaded
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Debug: imapsieve: Static 
>> mailbox rule [1]: mailbox=`INBOX/Junk' from=`*' causes=(COPY) => 
>> before=`file:/etc/dovecot/sieve/report-spam.sieve' after=(none)
>> Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name 
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: Debug: imapsieve: Static 
>> mailbox rule [2]: mailbox=`*' from=`INBOX/Junk' causes=(COPY) => 
>> before=`file:/etc/dovecot/sieve/report-ham.sieve' after=(none)
>> *Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name
>> <http://user.name>)<5276><+eYG4kJ85DMuffon>: copy from
>> INBOX/Arbeiten/bla: box=INBOX, uid=861,
>> msgid=
>> <mailto

Re: BUG: sieve does not set seen-Flag

2018-12-05 Thread Jakobus Schürz
Hello!
is anybody else here??? Are my informations to much? Am I alone with
this fucking shit? Are my informations to less??? Why do I have the
feeling, nobody else is interesting in this problem?


Jakob

Am 05.12.18 um 11:37 schrieb Jakobus Schürz:
>
> What really strange is:
>
> There is a seen message
>
> 1544001025.M268344P5000.mymail,S=2804,W=2861:2,S
>
> Shown in Thunderbird as seen. Then i move this message to INBOX, and
> the logs say:
>
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Debug: Mailbox INBOX: Mailbox opened 
> because: UID move
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Debug: imapsieve: mailbox INBOX: 
> MOVE event
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Error: Log synchronization error at 
> seq=22,offset=31692 for 
> /var/lib/dovecot/db/indexes/Maildir/user.name/INBOX/dovecot.index: Append 
> with UID 861, but next_uid = 862
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Warning: fscking index file 
> /var/lib/dovecot/db/indexes/Maildir/user.name/INBOX/dovecot.index
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Debug: sieve: Pigeonhole version 
> 0.5.4 (60b0f48d) initializing
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Debug: sieve: Sieve imapsieve plugin 
> for Pigeonhole version 0.5.4 (60b0f48d) loaded
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Debug: sieve: Sieve Extprograms 
> plugin for Pigeonhole version 0.5.4 (60b0f48d) loaded
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Debug: imapsieve: Static mailbox 
> rule [1]: mailbox=`INBOX/Junk' from=`*' causes=(COPY) => 
> before=`file:/etc/dovecot/sieve/report-spam.sieve' after=(none)
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: Debug: imapsieve: Static mailbox 
> rule [2]: mailbox=`*' from=`INBOX/Junk' causes=(COPY) => 
> before=`file:/etc/dovecot/sieve/report-ham.sieve' after=(none)
> *Dec 05 10:22:23 mymail dovecot[24019]:
> imap(user.name)<5276><+eYG4kJ85DMuffon>: copy from INBOX/Arbeiten/bla:
> box=INBOX, uid=861,
> msgid=,
> from=user.n...@bla.com, subject=TEST006, flags=()*
> Dec 05 10:22:23 mymail dovecot[24019]: 
> imap(user.name)<5276><+eYG4kJ85DMuffon>: expunge: box=INBOX/Arbeiten/bla, 
> uid=16, msgid=, 
> from=user.n...@bla.com, subject=TEST006, flags=(\Seen)
>
> The fat line shows, that the copied message has no flags. The next
> line shows, that the expunged message has the \Seen-Flag... That is
> strange. Do YOU have any idea, what can cause this?
>
> The filename in the new folder is:
>
> 1544001025.M268344P5000.mymail,S=2804,W=2861:2,
>
>
> Then I deactivated the actions on COPY (the two lines above the fat
> line) and moved this message back:
>
> Dec 05 10:29:52 mymail dovecot[5621]: 
> imap(user.name)<5646>: Debug: Mailbox INBOX/Arbeiten/bla: 
> Mailbox opened because: UID move
> Dec 05 10:29:52 mymail dovecot[5621]: 
> imap(user.name)<5646>: Debug: acl vfile: file 
> /var/mail/user.name/Maildir/Arbeiten/bla/dovecot-acl not found
> Dec 05 10:29:52 mymail dovecot[5621]: 
> imap(user.name)<5646>: Debug: imapsieve: mailbox 
> INBOX/Arbeiten/bla: MOVE event
> Dec 05 10:29:52 mymail dovecot[5621]: 
> imap(user.name)<5646>: Error: Log synchronization error at 
> seq=2,offset=20716 for 
> /var/lib/dovecot/db/indexes/Maildir/user.name/Arbeiten/bla/dovecot.index: 
> Append with UID 18, but next_uid = 19
> Dec 05 10:29:52 mymail dovecot[5621]: 
> imap(user.name)<5646>: Warning: fscking index file 
> /var/lib/dovecot/db/indexes/Maildir/user.name/Arbeiten/bla/dovecot.index
> *Dec 05 10:29:52 mymail dovecot[5621]:
> imap(user.name)<5646>: copy from INBOX:
> box=INBOX/Arbeiten/bla, uid=18,
> msgid=,
> from=user.n...@bla.com, subject=TEST006, flags=()*
> Dec 05 10:29:52 mymail dovecot[5621]: 
> imap(user.name)<5646>: expunge: box=INBOX, uid=861, 
> msgid=, 
> from=user.n...@bla.com, subject=TEST006, flags=(\Seen)
>
> The fat line again shows, that the message has no flags set (but i
> klicked it in thunderbird, and it was shown as seen, before i moved
> it. Filenamebehaviour is as before. The file in the copy-destination
> has no S for seen...
>
> Is there a posibility, that there is a connection to the "Log
> synchronization error"? On each and every move-Action, at the
> beginning the logs s

Re: BUG: sieve does not set seen-Flag

2018-12-05 Thread Jakobus Schürz
What really strange is:

There is a seen message

1544001025.M268344P5000.mymail,S=2804,W=2861:2,S

Shown in Thunderbird as seen. Then i move this message to INBOX, and the
logs say:

Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Debug: Mailbox INBOX: Mailbox opened because: UID move
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Debug: imapsieve: mailbox INBOX: MOVE event
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Error: Log synchronization error at seq=22,offset=31692 for 
/var/lib/dovecot/db/indexes/Maildir/user.name/INBOX/dovecot.index: Append with 
UID 861, but next_uid = 862
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/user.name/INBOX/dovecot.index
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Debug: sieve: Pigeonhole version 0.5.4 (60b0f48d) initializing
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Debug: sieve: Sieve imapsieve plugin for Pigeonhole version 0.5.4 (60b0f48d) 
loaded
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Debug: sieve: Sieve Extprograms plugin for Pigeonhole version 0.5.4 (60b0f48d) 
loaded
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Debug: imapsieve: Static mailbox rule [1]: mailbox=`INBOX/Junk' from=`*' 
causes=(COPY) => before=`file:/etc/dovecot/sieve/report-spam.sieve' after=(none)
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
Debug: imapsieve: Static mailbox rule [2]: mailbox=`*' from=`INBOX/Junk' 
causes=(COPY) => before=`file:/etc/dovecot/sieve/report-ham.sieve' after=(none)
*Dec 05 10:22:23 mymail dovecot[24019]:
imap(user.name)<5276><+eYG4kJ85DMuffon>: copy from INBOX/Arbeiten/bla:
box=INBOX, uid=861,
msgid=,
from=user.n...@bla.com, subject=TEST006, flags=()*
Dec 05 10:22:23 mymail dovecot[24019]: imap(user.name)<5276><+eYG4kJ85DMuffon>: 
expunge: box=INBOX/Arbeiten/bla, uid=16, 
msgid=, 
from=user.n...@bla.com, subject=TEST006, flags=(\Seen)

The fat line shows, that the copied message has no flags. The next line
shows, that the expunged message has the \Seen-Flag... That is strange.
Do YOU have any idea, what can cause this?

The filename in the new folder is:

1544001025.M268344P5000.mymail,S=2804,W=2861:2,


Then I deactivated the actions on COPY (the two lines above the fat
line) and moved this message back:

Dec 05 10:29:52 mymail dovecot[5621]: imap(user.name)<5646>: 
Debug: Mailbox INBOX/Arbeiten/bla: Mailbox opened because: UID move
Dec 05 10:29:52 mymail dovecot[5621]: imap(user.name)<5646>: 
Debug: acl vfile: file /var/mail/user.name/Maildir/Arbeiten/bla/dovecot-acl not 
found
Dec 05 10:29:52 mymail dovecot[5621]: imap(user.name)<5646>: 
Debug: imapsieve: mailbox INBOX/Arbeiten/bla: MOVE event
Dec 05 10:29:52 mymail dovecot[5621]: imap(user.name)<5646>: 
Error: Log synchronization error at seq=2,offset=20716 for 
/var/lib/dovecot/db/indexes/Maildir/user.name/Arbeiten/bla/dovecot.index: 
Append with UID 18, but next_uid = 19
Dec 05 10:29:52 mymail dovecot[5621]: imap(user.name)<5646>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/user.name/Arbeiten/bla/dovecot.index
*Dec 05 10:29:52 mymail dovecot[5621]:
imap(user.name)<5646>: copy from INBOX:
box=INBOX/Arbeiten/bla, uid=18,
msgid=,
from=user.n...@bla.com, subject=TEST006, flags=()*
Dec 05 10:29:52 mymail dovecot[5621]: imap(user.name)<5646>: 
expunge: box=INBOX, uid=861, 
msgid=, 
from=user.n...@bla.com, subject=TEST006, flags=(\Seen)

The fat line again shows, that the message has no flags set (but i
klicked it in thunderbird, and it was shown as seen, before i moved it.
Filenamebehaviour is as before. The file in the copy-destination has no
S for seen...

Is there a posibility, that there is a connection to the "Log
synchronization error"? On each and every move-Action, at the beginning
the logs show this error (i reported also yesterday and month before!)

jakob

Am 05.12.18 um 09:24 schrieb Jakobus Schürz:
> Does it matter, if the keyword-files do not match?
>
> In one of the two folders is the content of dovecot-keywords
>
> 0 $label3
> 1 Junk
> 2 NonJunk
>
> in the other folder:
>
> 0 $label3
> 1 NonJunk
> 2 Junk
> 3 redirected
> 4 $label2
> 5 $label4
> 6 Seen
>
> As i said, i use $labes[1-4] from thunderbird.
> And i use as MUA Thunderbird, Androids Gmail-App, Horde webmail,
> somtimes samsungs mail-app on android, k9mail on android (not now), and
> evolution from gnome.
> But... the Filename loses the S, when copying the file to another fol

Re: BUG: sieve does not set seen-Flag

2018-12-05 Thread Jakobus Schürz
Does it matter, if the keyword-files do not match?

In one of the two folders is the content of dovecot-keywords

0 $label3
1 Junk
2 NonJunk

in the other folder:

0 $label3
1 NonJunk
2 Junk
3 redirected
4 $label2
5 $label4
6 Seen

As i said, i use $labes[1-4] from thunderbird.
And i use as MUA Thunderbird, Androids Gmail-App, Horde webmail,
somtimes samsungs mail-app on android, k9mail on android (not now), and
evolution from gnome.
But... the Filename loses the S, when copying the file to another folder
with all of the mailclients. As i showed you.

I also deactivated all of the sievescripts in dovecot (i have some
before, some after, the two for setting and removing Junk and \seen as
described at the begin of this thread, and user-sieve-scripts), and
dovecot again sets a moved message to unread and recent...

I also tested it for another user. The same.

And it is ONLY the Seen-Flag, which does not work on setting it via
sieve. Or maybe, setting a message as \Recent removes the \Seen-Flag? 
And dovecot sets every new message in a folder to \Recent, independend
where it comes from???
Sorry, I'm not a programmer ;-)

But i try to describe it as good as possible, what i can see on my machine.

Hopefully i have time to setup a second mailserver for testing-purpose,
to test, what's going on. Is it the rest of kopano, which shits into my
dovecot, or some misconfiguration, or the ldap-connection?

There is exim4, which pipes the emails to /usr/lib/dovecot/deliver

But when i move emails around from one imap-folder to another one, there
is no exim...

The other thing is (as shown in a mail before), i have rspamd, to which
i pipe messages, when i move them from Junk to anywhere - learning ham,
and move them from anywhere to Junk - learning spam. This process only
sends a copy of the already moved message to rspamc...

The filesystem has read/write permissions for vmail:vmail, which i user
for the mailboxes and dovecot-process...

For me, it looks like when dovecot copys or put a message to a folder,
it sets it default to unseen and recent. Is there maybe an option, which
has influence for this behaviour?

And i do not move messages directly on filesystem with cp, mv or other
filesystemtools.

Jakob

Am 05.12.18 um 01:21 schrieb Ralph Seichter:
> * Jakobus Schürz:
>
>> 1543935543.M447415P13997.mymail,S=726,W=748:2,Sa
>>
>> Then i move this email to another IMAP-Folder, and then there is the
>> filename
>>
>> 1543935543.M447415P13997.mymail,S=726,W=748:2,
>>
>> As expected, the seen-flag disappeared... the same as thunderbird
>> shows.
> And what about the "dovecot-keywords" files in both folders? Do they
> match? The letter "a" seems to indicates that there is at least one
> non-standard flag defined in the source folder's keywords. By the way,
> can I assume you move messages only by using Thunderbird/IMAP and not by
> manipulating the file system?
>
> Here's how things look on my server:
>
>   # On arrival (UNSEEN)
>   1543968031.M941319P5841.foo,S=1390,W=1422:2,
>   # After reading (SEEN)
>   1543968031.M941319P5841.foo,S=1390,W=1422:2,S
>   # After being moved to another folder (SEEN)
>   1543968031.M941319P5841.foo,S=1390,W=1422:2,S
>
> I can use IMAP search terms SEEN and UNSEEN as indicated above, and I
> see the same message state displayed in Notmuch mail (my default, it
> accesses Dovecot's Maildir storage directly) and various IMAP clients
> connecting to Dovecot. Things are working just fine here.
>
> -Ralph


Re: BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
This message is from last night. The Bug is from yesterday... How can
you see it for several Days??? :-)

Am 05.12.18 um 07:36 schrieb Tuomi, Aki:
> please send mail to dovecot-unsubscr...@dovecot.org
>
>
>
> Sent from my Samsung Galaxy smartphone.
>
>  Original message 
> From: "Сергей . via dovecot" 
> Date: 05/12/2018 08:26 (GMT+02:00)
> To: dovecot@dovecot.org
> Subject: Re[2]: BUG: sieve does not set seen-Flag
>
> Unsubscribe me please.
> I've been seeing these messages for several days and don't want
> anymore. Please.
>
>
> Среда, 5 декабря 2018, 3:22 +03:00 от Ralph Seichter
> :
>
> * Jakobus Schürz:
>
> > 1543935543.M447415P13997.mymail,S=726,W=748:2,Sa
> >
> > Then i move this email to another IMAP-Folder, and then there is the
> > filename
> >
> > 1543935543.M447415P13997.mymail,S=726,W=748:2,
> >
> > As expected, the seen-flag disappeared... the same as thunderbird
> > shows.
>
> And what about the "dovecot-keywords" files in both folders? Do they
> match? The letter "a" seems to indicates that there is at least one
> non-standard flag defined in the source folder's keywords. By the way,
> can I assume you move messages only by using Thunderbird/IMAP and
> not by
> manipulating the file system?
>
> Here's how things look on my server:
>
>   # On arrival (UNSEEN)
>   1543968031.M941319P5841.foo,S=1390,W=1422:2,
>   # After reading (SEEN)
>   1543968031.M941319P5841.foo,S=1390,W=1422:2,S
>   # After being moved to another folder (SEEN)
>   1543968031.M941319P5841.foo,S=1390,W=1422:2,S
>
> I can use IMAP search terms SEEN and UNSEEN as indicated above, and I
> see the same message state displayed in Notmuch mail (my default, it
> accesses Dovecot's Maildir storage directly) and various IMAP clients
> connecting to Dovecot. Things are working just fine here.
>
> -Ralph
>
>
>
> -- 
> Сергей .


Re: BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
Hi Ralph!

There is an email, which filename is:

1543935543.M447415P13997.mymail,S=726,W=748:2,Sa

Then i move this email to another IMAP-Folder, and then there is the
filename

1543935543.M447415P13997.mymail,S=726,W=748:2,

As expected, the seen-flag disappeared... the same as thunderbird shows.

This happens if i move the file with thunderbird with drag and in
horde and in androids gmail-app.

The mistake happens in dovecot or pigeonhole.


As you can see, i user maildir-format.


Jakob


Am 04.12.18 um 19:10 schrieb Ralph Seichter:
> * Jakobus Schürz:
>
>> The \Recent flag ist set and the \Seen-Flag is removed in the new
>> folder. So it is not a problem of thunderbird.
> Did you mention your data storage format yet? If you use Maildir, Flags
> are stored as part of the physical file name. For example, the name
> "1539996635.M698476P4944.foo,S=45171,W=45803:2,RS" indicates that the
> message was seen ('S') and has been replied to ('R'). Check if the file
> names match what you see in your MUA.
>
> Files named "dovecot-keywords" are used to map additional letters to
> flags (used to store Thunderbird's "$label1" etc.). If the keywords file
> get messed up, it can cause confusion, and because there can be keywords
> files with varying content per folder, letters in file names can have
> different meanings in different directories. Moving files around can be
> therefore be tricky.
>
> Also, I wonder if the delivery mechanism might matter. I use Dovecot's
> LMTP.
>
> -Ralph


Re: BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
Moving a message from one folder to another with thunderbird, gmail-app
on android and horde webmail has always the same behaviour.
The \Recent flag ist set and the \Seen-Flag is removed in the new
folder. So it is not a problem of thunderbird.

BR Jakob

Am 04.12.18 um 17:31 schrieb Jakobus Schürz:
> This is, what the logs say, when i move a message to another folder
> with thunderbird drag
>
> Dec 04 17:22:24 mymail dovecot[16982]: 
> imap(user.name)<17010>: copy from INBOX/Arbeiten/bla: 
> box=INBOX, uid=849, msgid=, 
> from=Full Name , subject=TEST005, flags=($label3 NonJunk)
> Dec 04 17:22:24 mymail dovecot[16982]: 
> imap(user.name)<17010>: expunge: box=INBOX/Arbeiten/bla, 
> uid=7, msgid=, from=Full Name 
> , subject=TEST005, flags=(\Seen $label3 NonJunk)
>
> So i think, there is a Problem with dovecot. Is it possible, that a
> misconfiguration causes such a behaviour?
>
> It is only the \Seen flag which is removed and obviously the
> \Recent-flag, which is set, when i move a message to another folder.
> All other Flags can i set/remove with sieve-filters.
> Maybe these flags are set correctly, but then is another process,
> which removes the \seen and sets the \recent flag on every new message
> in a folder...
>
>
> BR Jakob
>
>
>
> Am 04.12.18 um 17:02 schrieb Michael Slusarz:
>>> On December 4, 2018 at 8:48 AM Jakobus Schürz  
>>> wrote:
>>>
>>> I have an additional information.
>>>
>>> Moving a already seen messsage to another imap-folder (drag in
>>> thunderbird) shows this email in the other folder as unseen and recent.
>>>
>>> Is this normal behaviour?
>> Depends on what Thunderbird is doing.  If it is doing a COPY, flags will be 
>> preserved per IMAP spec.  If it is doing an APPEND, then Thunderbird would 
>> be responsible for transferring the flags (and clearing the recent flag) to 
>> match COPY semantics.
>>
>> michael


Re: BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
This is, what the logs say, when i move a message to another folder with
thunderbird drag

Dec 04 17:22:24 mymail dovecot[16982]: 
imap(user.name)<17010>: copy from INBOX/Arbeiten/bla: 
box=INBOX, uid=849, msgid=, 
from=Full Name , subject=TEST005, flags=($label3 NonJunk)

Dec 04 17:22:24 mymail dovecot[16982]: 
imap(user.name)<17010>: expunge: box=INBOX/Arbeiten/bla, 
uid=7, msgid=, from=Full Name 
, subject=TEST005, flags=(\Seen $label3 NonJunk)

So i think, there is a Problem with dovecot. Is it possible, that a
misconfiguration causes such a behaviour?

It is only the \Seen flag which is removed and obviously the
\Recent-flag, which is set, when i move a message to another folder. All
other Flags can i set/remove with sieve-filters.
Maybe these flags are set correctly, but then is another process, which
removes the \seen and sets the \recent flag on every new message in a
folder...


BR Jakob



Am 04.12.18 um 17:02 schrieb Michael Slusarz:
>> On December 4, 2018 at 8:48 AM Jakobus Schürz  
>> wrote:
>>
>> I have an additional information.
>>
>> Moving a already seen messsage to another imap-folder (drag in
>> thunderbird) shows this email in the other folder as unseen and recent.
>>
>> Is this normal behaviour?
> Depends on what Thunderbird is doing.  If it is doing a COPY, flags will be 
> preserved per IMAP spec.  If it is doing an APPEND, then Thunderbird would be 
> responsible for transferring the flags (and clearing the recent flag) to 
> match COPY semantics.
>
> michael


Re: BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
I have an additional information.

Moving a already seen messsage to another imap-folder (drag in
thunderbird) shows this email in the other folder as unseen and recent.

Is this normal behaviour?

BR Jakob




Am 04.12.18 um 16:36 schrieb Jakobus Schürz:
> Yes. I did it the same way, Larry described.
>
> And i have in my sieve-script, which i use also for years the other
> notation i tried before, many times in use.
> The last month it did not recognize, that this rules won't work any
> longer. Today i played around a little, then i saw, it won't work to set
> the \Seen-Flag...
>
> Please be aware, i can set Junk-Flag, and Thunderbird shows me the
> Emails marked as Junk.
> I can set the $label3-Flag, and Thunderbird shows me the Message marked
> as personal.
>
> Only the \Seen-Flag is not able to be set. Messages are always shown as
> Unseen. Sometimes also as Recent...
>
> Not when i set it in an own line with addflag.
> Not when i set it with setflag as the only Flag.
> Not when i set it together with other flags in one line. The other flags
> are set. Only \Seen is not set.
>
> BG Jakob
>
> Am 04.12.18 um 16:17 schrieb Aki Tuomi:
>
>> Did you notice the
>>
>> fileinto :flags
>>
>> usage? It comes from imap4sieve extension.
>>
>> https://tools.ietf.org/html/rfc5232#page-7
>>
>> Aki
>>
>>> On 04 December 2018 at 17:13 Larry Rosenman  wrote:
>>>
>>>
>>> I've been using that recipe for YEARS, and it DOES work for me on FreeBSD
>>> (I'm also the port maintainer for dovecot and pigeonhole).
>>>
>>> Not sure exactly what you are doing wrong, but I use lmtp to deliver the
>>> mail to mbox formatted mailboxes.
>>>
>>>
>>>
>>> On Tue, Dec 4, 2018 at 9:11 AM Jakobus Schürz 
>>> wrote:
>>>
>>>> I tried it like you... doesn't work. The message gets all the other
>>>> flags,
>>>> but not the \Seen-Flag.
>>>>
>>>> My repo is
>>>>
>>>> https://repo.dovecot.org/ce-2.3-latest/debian/stretch stretch
>>>> dpkg -l|grep dove
>>>> ii dovecot-core 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>>> core files
>>>> ii dovecot-imapd 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>>> IMAP daemon
>>>> ii dovecot-ldap 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>>> LDAP support
>>>> ii dovecot-lmtpd 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>>> LMTP server
>>>> ii dovecot-lucene 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>>> Lucene support
>>>> ii dovecot-managesieved 2:2.3.4-2~stretch amd64 secure POP3/IMAP
>>>> server - ManageSieve server
>>>> ii dovecot-pop3d 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>>> POP3 daemon
>>>> ii dovecot-sieve 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>>> Sieve filters support
>>>> ii dovecot-solr 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>>> Solr support
>>>>
>>>>
>>>>
>>>> Am 04.12.18 um 16:04 schrieb Larry Rosenman:
>>>>
>>>> 2.3.4/0.5.4 (dovecot/pigeonhole)
>>>>
>>>> Note the casing on the \\Seen flag.
>>>>
>>>> On Tue, Dec 4, 2018 at 9:02 AM Jakobus Schürz
>>>> 
>>>> wrote:
>>>>
>>>>> Which version of dovecot are you using?
>>>>>
>>>>>
>>>>> jakob
>>>>>
>>>>> Am 04.12.18 um 15:44 schrieb Larry Rosenman:
>>>>>> I have the following, and it works:
>>>>>> require ["include","fileinto","imap4flags","variables"];
>>>>>> global "MyFlags";
>>>>>> if header :contains ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"] "YES"
>>>>>> {
>>>>>> redirect "spamt...@spambouncer.org";
>>>>>> addflag "MyFlags" "\\Seen Junk";
>>>>>> fileinto :flags "${MyFlags}" "SPAM";
>>>>>> stop;
>>>>>> }
>>>>>>
>>>>>> FWIW.
>>>>>>
>>>>>>
>>>>>> On Tue, Dec 4, 2018 at 8:25 AM Jakobus Schürz <
>>>>> wertsto...@nurfuerspam.de>
>>>>>> wrote:
>>>>>>
>>>>>>> Now i tried an additional rule in my &

BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
Yes. I did it the same way, Larry described.

And i have in my sieve-script, which i use also for years the other
notation i tried before, many times in use.
The last month it did not recognize, that this rules won't work any
longer. Today i played around a little, then i saw, it won't work to set
the \Seen-Flag...

Please be aware, i can set Junk-Flag, and Thunderbird shows me the
Emails marked as Junk.
I can set the $label3-Flag, and Thunderbird shows me the Message marked
as personal.

Only the \Seen-Flag is not able to be set. Messages are always shown as
Unseen. Sometimes also as Recent...

Not when i set it in an own line with addflag.
Not when i set it with setflag as the only Flag.
Not when i set it together with other flags in one line. The other flags
are set. Only \Seen is not set.

BG Jakob

Am 04.12.18 um 16:17 schrieb Aki Tuomi:

> Did you notice the
>
> fileinto :flags
>
> usage? It comes from imap4sieve extension.
>
> https://tools.ietf.org/html/rfc5232#page-7
>
> Aki
>
>> On 04 December 2018 at 17:13 Larry Rosenman  wrote:
>>
>>
>> I've been using that recipe for YEARS, and it DOES work for me on FreeBSD
>> (I'm also the port maintainer for dovecot and pigeonhole).
>>
>> Not sure exactly what you are doing wrong, but I use lmtp to deliver the
>> mail to mbox formatted mailboxes.
>>
>>
>>
>> On Tue, Dec 4, 2018 at 9:11 AM Jakobus Schürz 
>> wrote:
>>
>>> I tried it like you... doesn't work. The message gets all the other
>>> flags,
>>> but not the \Seen-Flag.
>>>
>>> My repo is
>>>
>>> https://repo.dovecot.org/ce-2.3-latest/debian/stretch stretch
>>> dpkg -l|grep dove
>>> ii dovecot-core 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>> core files
>>> ii dovecot-imapd 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>> IMAP daemon
>>> ii dovecot-ldap 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>> LDAP support
>>> ii dovecot-lmtpd 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>> LMTP server
>>> ii dovecot-lucene 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>> Lucene support
>>> ii dovecot-managesieved 2:2.3.4-2~stretch amd64 secure POP3/IMAP
>>> server - ManageSieve server
>>> ii dovecot-pop3d 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>> POP3 daemon
>>> ii dovecot-sieve 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>> Sieve filters support
>>> ii dovecot-solr 2:2.3.4-2~stretch amd64 secure POP3/IMAP server -
>>> Solr support
>>>
>>>
>>>
>>> Am 04.12.18 um 16:04 schrieb Larry Rosenman:
>>>
>>> 2.3.4/0.5.4 (dovecot/pigeonhole)
>>>
>>> Note the casing on the \\Seen flag.
>>>
>>> On Tue, Dec 4, 2018 at 9:02 AM Jakobus Schürz
>>> 
>>> wrote:
>>>
>>>> Which version of dovecot are you using?
>>>>
>>>>
>>>> jakob
>>>>
>>>> Am 04.12.18 um 15:44 schrieb Larry Rosenman:
>>>>> I have the following, and it works:
>>>>> require ["include","fileinto","imap4flags","variables"];
>>>>> global "MyFlags";
>>>>> if header :contains ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"] "YES"
>>>>> {
>>>>> redirect "spamt...@spambouncer.org";
>>>>> addflag "MyFlags" "\\Seen Junk";
>>>>> fileinto :flags "${MyFlags}" "SPAM";
>>>>> stop;
>>>>> }
>>>>>
>>>>> FWIW.
>>>>>
>>>>>
>>>>> On Tue, Dec 4, 2018 at 8:25 AM Jakobus Schürz <
>>>> wertsto...@nurfuerspam.de>
>>>>> wrote:
>>>>>
>>>>>> Now i tried an additional rule in my "normal" working sieve-filter:
>>>>>>
>>>>>> if address :domain :matches "from" "company.example"
>>>>>> { setflag "\\seen"; fileinto :create "INBOX/foo/test"; stop; }
>>>>>>
>>>>>> and sent an email from my company-account. The folder INBOX/foo/test
>>>> gets
>>>>>> created, but the message inside is not marked as seen.
>>>>>>
>>>>>> So i think, this is a bug in dovecot/pigeonhole, which ignores the
>>>>>> \\seen-Flag being set by sieve-script.
>>>>>>
>>>>>> I tried to set th

Re: BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
I tried it like you... doesn't work. The message gets all the other
flags, but not the \Seen-Flag.

My repo is

https://repo.dovecot.org/ce-2.3-latest/debian/stretch stretch
dpkg -l|grep dove
ii  dovecot-core  2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - core files
ii  dovecot-imapd 2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - IMAP daemon
ii  dovecot-ldap  2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - LDAP support
ii  dovecot-lmtpd 2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - LMTP server
ii  dovecot-lucene    2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - Lucene support
ii  dovecot-managesieved  2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - ManageSieve server
ii  dovecot-pop3d 2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - POP3 daemon
ii  dovecot-sieve 2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - Sieve filters support
ii  dovecot-solr  2:2.3.4-2~stretch  amd64  
  secure POP3/IMAP server - Solr support



Am 04.12.18 um 16:04 schrieb Larry Rosenman:
> 2.3.4/0.5.4 (dovecot/pigeonhole)
>
> Note the casing on the \\Seen flag.
>
> On Tue, Dec 4, 2018 at 9:02 AM Jakobus Schürz
> mailto:wertsto...@nurfuerspam.de>> wrote:
>
> Which version of dovecot are you using?
>
>
> jakob
>
> Am 04.12.18 um 15:44 schrieb Larry Rosenman:
> > I have the following, and it works:
> > require ["include","fileinto","imap4flags","variables"];
> > global "MyFlags";
> > if header :contains
> ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"]  "YES"
> > {
> >    redirect "spamt...@spambouncer.org
> <mailto:spamt...@spambouncer.org>";
> >    addflag "MyFlags" "\\Seen Junk";
> >    fileinto :flags "${MyFlags}" "SPAM";
> >    stop;
> > }
> >
> > FWIW.
> >
> >
> > On Tue, Dec 4, 2018 at 8:25 AM Jakobus Schürz
> mailto:wertsto...@nurfuerspam.de>>
> > wrote:
> >
> >> Now i tried an additional rule in my "normal" working sieve-filter:
> >>
> >> if address :domain :matches "from" "company.example"
> >>   { setflag "\\seen"; fileinto :create "INBOX/foo/test"; stop; }
> >>
> >> and sent an email from my company-account. The folder
> INBOX/foo/test gets
>     >> created, but the message inside is not marked as seen.
> >>
> >> So i think, this is a bug in dovecot/pigeonhole, which ignores the
> >> \\seen-Flag being set by sieve-script.
> >>
> >> I tried to set the seen-flag to the message with doveadm. This
> works
> >> correctly.
> >>
> >>
> >> BG Jakob
> >>
> >>
> >>
> >> Am 04.12.18 um 14:23 schrieb Jakobus Schürz:
> >>
> >> Ok. I tried another Thunderbird-specific Flag:
> >>
> >> require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve",
> "environment", "variables"];
> >> if environment :matches "imap.email" "*" {
> >>   set "email" "${1}";
> >> }
> >> addflag "Junk";
> >> addflag "\\seen";
> >> addflag "$label3";
> >> pipe :copy "learn-spam.sh";
> >> pipe :copy "learn-spam-sa.sh" [ "${email}" ];
> >>
> >> When i move an unflagged email to Folder Junk, it is shown in
> Thunderbird
> >> as "personal", Junk but Unseen.
> >>
> >> So, the rule is really working, except for the \\seen-Flag.
> >>
> >> I have the line
> >>
> >> addflag "\\seen";
> >>
> >> from the dovecot-wiki!
> >>
> >> BG jakob
> >>
> >>
> >>
> >> Am 04.12.18 um 14:06 schrieb Jakobus Schürz:
> >>
> >> Hi Ralph!
> >>
> >> This is, what calls the correct sive-filter rules. I have that
>

Re: BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
Which version of dovecot are you using?


jakob

Am 04.12.18 um 15:44 schrieb Larry Rosenman:
> I have the following, and it works:
> require ["include","fileinto","imap4flags","variables"];
> global "MyFlags";
> if header :contains ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"]  "YES"
> {
>redirect "spamt...@spambouncer.org";
>addflag "MyFlags" "\\Seen Junk";
>fileinto :flags "${MyFlags}" "SPAM";
>stop;
> }
>
> FWIW.
>
>
> On Tue, Dec 4, 2018 at 8:25 AM Jakobus Schürz 
> wrote:
>
>> Now i tried an additional rule in my "normal" working sieve-filter:
>>
>> if address :domain :matches "from" "company.example"
>>   { setflag "\\seen"; fileinto :create "INBOX/foo/test"; stop; }
>>
>> and sent an email from my company-account. The folder INBOX/foo/test gets
>> created, but the message inside is not marked as seen.
>>
>> So i think, this is a bug in dovecot/pigeonhole, which ignores the
>> \\seen-Flag being set by sieve-script.
>>
>> I tried to set the seen-flag to the message with doveadm. This works
>> correctly.
>>
>>
>> BG Jakob
>>
>>
>>
>> Am 04.12.18 um 14:23 schrieb Jakobus Schürz:
>>
>> Ok. I tried another Thunderbird-specific Flag:
>>
>> require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", 
>> "environment", "variables"];
>> if environment :matches "imap.email" "*" {
>>   set "email" "${1}";
>> }
>> addflag "Junk";
>> addflag "\\seen";
>> addflag "$label3";
>> pipe :copy "learn-spam.sh";
>> pipe :copy "learn-spam-sa.sh" [ "${email}" ];
>>
>> When i move an unflagged email to Folder Junk, it is shown in Thunderbird
>> as "personal", Junk but Unseen.
>>
>> So, the rule is really working, except for the \\seen-Flag.
>>
>> I have the line
>>
>> addflag "\\seen";
>>
>> from the dovecot-wiki!
>>
>> BG jakob
>>
>>
>>
>> Am 04.12.18 um 14:06 schrieb Jakobus Schürz:
>>
>> Hi Ralph!
>>
>> This is, what calls the correct sive-filter rules. I have that already
>> in use.
>> But the file
>> file:/etc/dovecot/sievepipe/report-spam
>>
>> contains my sieve-script from my first posting.
>> So, the difference from setflag to addflag is, setflag sets the flags,
>> and only the given flags (removing all other flags), and addflag adds a
>> flag to the existing flags...
>>
>> I fiddled around a little...
>> The sieve-script sets the Junk-Flag, when it looks like:
>>
>> require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve",
>> "environment", "variables"];
>>
>> if environment :matches "imap.email" "*" {
>>   set "email" "${1}";
>> }
>>
>> addflag "Junk \\seen";
>> pipe :copy "learn-spam.sh";
>> pipe :copy "learn-spam-sa.sh" [ "${email}" ];
>>
>> But the \\seen-Flag is not set.
>>
>> When i comment out the addflag-line, the Junk-Flag is not set. So the
>> line works correct... but only for the Junk-Flag, not for the seen-Flag..


BUG: sieve does not set seen-Flag

2018-12-04 Thread Jakobus Schürz
Now i tried an additional rule in my "normal" working sieve-filter:

if address :domain :matches "from" "company.example"
  { setflag "\\seen"; fileinto :create "INBOX/foo/test"; stop; }

and sent an email from my company-account. The folder INBOX/foo/test
gets created, but the message inside is not marked as seen.

So i think, this is a bug in dovecot/pigeonhole, which ignores the
\\seen-Flag being set by sieve-script.

I tried to set the seen-flag to the message with doveadm. This works
correctly.


BG Jakob



Am 04.12.18 um 14:23 schrieb Jakobus Schürz:
>
> Ok. I tried another Thunderbird-specific Flag:
>
> require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", 
> "environment", "variables"];
> if environment :matches "imap.email" "*" {
>   set "email" "${1}";   
> }
> addflag "Junk";
> addflag "\\seen";
> addflag "$label3";
> pipe :copy "learn-spam.sh";
> pipe :copy "learn-spam-sa.sh" [ "${email}" ];
>
> When i move an unflagged email to Folder Junk, it is shown in
> Thunderbird as "personal", Junk but Unseen.
>
> So, the rule is really working, except for the \\seen-Flag.
>
> I have the line
>
> addflag "\\seen";
>
> from the dovecot-wiki!
>
> BG jakob
>
>
>
> Am 04.12.18 um 14:06 schrieb Jakobus Schürz:
>> Hi Ralph!
>>
>> This is, what calls the correct sive-filter rules. I have that already
>> in use.
>> But the file
>>
>> file:/etc/dovecot/sievepipe/report-spam
>>
>> contains my sieve-script from my first posting.
>> So, the difference from setflag to addflag is, setflag sets the flags,
>> and only the given flags (removing all other flags), and addflag adds a
>> flag to the existing flags...
>>
>> I fiddled around a little...
>> The sieve-script sets the Junk-Flag, when it looks like:
>>
>> require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve",
>> "environment", "variables"];
>>
>> if environment :matches "imap.email" "*" {
>>   set "email" "${1}";  
>> }
>>
>> addflag "Junk \\seen";
>> pipe :copy "learn-spam.sh";
>> pipe :copy "learn-spam-sa.sh" [ "${email}" ];
>>
>> But the \\seen-Flag is not set.
>>
>> When i comment out the addflag-line, the Junk-Flag is not set. So the
>> line works correct... but only for the Junk-Flag, not for the seen-Flag...
>> Why?
>>
>>
>> BR
>>
>> Jakob
>>
>> Am 04.12.18 um 12:46 schrieb Ralph Seichter:
>>> * Jakobus Schürz:
>>>
>>>> addflag "Junk";
>>>> setflag "\\seen";
>>> That's probably not what you want, because the 'setflag' command
>>> replaces all existing flags. In any case, I recommend you use this
>>> method instead:
>>>
>>>   plugin {
>>> sieve_pipe_bin_dir = /etc/dovecot/sievepipe
>>>
>>> # Message moved into Spam folder
>>> imapsieve_mailbox1_name = Junk
>>> imapsieve_mailbox1_causes = COPY
>>> imapsieve_mailbox1_before = file:/etc/dovecot/sievepipe/report-spam
>>>
>>> # Message moved out of Spam folder
>>> imapsieve_mailbox2_name = *
>>> imapsieve_mailbox2_from = Junk
>>> imapsieve_mailbox2_causes = COPY
>>> imapsieve_mailbox2_before = file:/etc/dovecot/sievepipe/report-ham
>>>   }
>>>
>>> This was typed from memory, so I hope the syntax is correct.
>>>
>>> -Ralph


Re: set seen flag and junk moving a mail manually to JUNK

2018-12-04 Thread Jakobus Schürz
Ok. I tried another Thunderbird-specific Flag:

require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", 
"variables"];
if environment :matches "imap.email" "*" {
  set "email" "${1}";   
}
addflag "Junk";
addflag "\\seen";
addflag "$label3";
pipe :copy "learn-spam.sh";
pipe :copy "learn-spam-sa.sh" [ "${email}" ];

When i move an unflagged email to Folder Junk, it is shown in
Thunderbird as "personal", Junk but Unseen.

So, the rule is really working, except for the \\seen-Flag.

I have the line

addflag "\\seen";

from the dovecot-wiki!

BG jakob



Am 04.12.18 um 14:06 schrieb Jakobus Schürz:
> Hi Ralph!
>
> This is, what calls the correct sive-filter rules. I have that already
> in use.
> But the file
>
> file:/etc/dovecot/sievepipe/report-spam
>
> contains my sieve-script from my first posting.
> So, the difference from setflag to addflag is, setflag sets the flags,
> and only the given flags (removing all other flags), and addflag adds a
> flag to the existing flags...
>
> I fiddled around a little...
> The sieve-script sets the Junk-Flag, when it looks like:
>
> require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve",
> "environment", "variables"];
>
> if environment :matches "imap.email" "*" {
>   set "email" "${1}";  
> }
>
> addflag "Junk \\seen";
> pipe :copy "learn-spam.sh";
> pipe :copy "learn-spam-sa.sh" [ "${email}" ];
>
> But the \\seen-Flag is not set.
>
> When i comment out the addflag-line, the Junk-Flag is not set. So the
> line works correct... but only for the Junk-Flag, not for the seen-Flag...
> Why?
>
>
> BR
>
> Jakob
>
> Am 04.12.18 um 12:46 schrieb Ralph Seichter:
>> * Jakobus Schürz:
>>
>>> addflag "Junk";
>>> setflag "\\seen";
>> That's probably not what you want, because the 'setflag' command
>> replaces all existing flags. In any case, I recommend you use this
>> method instead:
>>
>>   plugin {
>> sieve_pipe_bin_dir = /etc/dovecot/sievepipe
>>
>> # Message moved into Spam folder
>> imapsieve_mailbox1_name = Junk
>> imapsieve_mailbox1_causes = COPY
>> imapsieve_mailbox1_before = file:/etc/dovecot/sievepipe/report-spam
>>
>> # Message moved out of Spam folder
>> imapsieve_mailbox2_name = *
>> imapsieve_mailbox2_from = Junk
>> imapsieve_mailbox2_causes = COPY
>> imapsieve_mailbox2_before = file:/etc/dovecot/sievepipe/report-ham
>>   }
>>
>> This was typed from memory, so I hope the syntax is correct.
>>
>> -Ralph


Re: set seen flag and junk moving a mail manually to JUNK

2018-12-04 Thread Jakobus Schürz
Hi Ralph!

This is, what calls the correct sive-filter rules. I have that already
in use.
But the file

file:/etc/dovecot/sievepipe/report-spam

contains my sieve-script from my first posting.
So, the difference from setflag to addflag is, setflag sets the flags,
and only the given flags (removing all other flags), and addflag adds a
flag to the existing flags...

I fiddled around a little...
The sieve-script sets the Junk-Flag, when it looks like:

require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve",
"environment", "variables"];

if environment :matches "imap.email" "*" {
  set "email" "${1}";  
}

addflag "Junk \\seen";
pipe :copy "learn-spam.sh";
pipe :copy "learn-spam-sa.sh" [ "${email}" ];

But the \\seen-Flag is not set.

When i comment out the addflag-line, the Junk-Flag is not set. So the
line works correct... but only for the Junk-Flag, not for the seen-Flag...
Why?


BR

Jakob

Am 04.12.18 um 12:46 schrieb Ralph Seichter:
> * Jakobus Schürz:
>
>> addflag "Junk";
>> setflag "\\seen";
> That's probably not what you want, because the 'setflag' command
> replaces all existing flags. In any case, I recommend you use this
> method instead:
>
>   plugin {
> sieve_pipe_bin_dir = /etc/dovecot/sievepipe
>
> # Message moved into Spam folder
> imapsieve_mailbox1_name = Junk
> imapsieve_mailbox1_causes = COPY
> imapsieve_mailbox1_before = file:/etc/dovecot/sievepipe/report-spam
>
> # Message moved out of Spam folder
> imapsieve_mailbox2_name = *
> imapsieve_mailbox2_from = Junk
> imapsieve_mailbox2_causes = COPY
> imapsieve_mailbox2_before = file:/etc/dovecot/sievepipe/report-ham
>   }
>
> This was typed from memory, so I hope the syntax is correct.
>
> -Ralph


set seen flag and junk moving a mail manually to JUNK

2018-12-04 Thread Jakobus Schürz
Hi there!

I want to set the \seen and the Junk Flag to an email, which i move
manually to my Junk-Folder.

I tried a lot... but nothing worked like expected.

I have a sieve-filter, which takes an email and copy it to a pipe to
rspamc. This filter is working correctly, i get a debug-message from the
script, which is called through the sieve-filter.
But adding another rule (addflag "Junk"; setflag "\\seen";) to this rule
is getting ignored...

Here is my sieve-rule:

require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", 
"variables"];

if environment :matches "imap.email" "*" {
  set "email" "${1}";   
}
addflag "Junk";
setflag "\\seen";
pipe :copy "learn-spam.sh" [ "${email}" ];

How said before, the script learn-spam.sh is called, when i move a
Message via drag in thunderbird from the INBOX to the Junk-Folder.
But the message in the Junk-Folder is unseen, recent and has no Junk-Flag...

What's wrong?

BR

Jakob



Log synchronization error

2018-12-04 Thread Jakobus Schürz
Hi there!

I've installed dovecot for debian from the dovecot-repo in the latest
Version 2:2.3.4-2~stretch

And i still get this error-messages.

dovecot[5817]: imap(user.name)<26484>: Error: Log 
synchronization error at seq=4,offset=5748 for 
/var/lib/dovecot/db/indexes/Maildir/user.name/Trash/dovecot.index: Append with 
UID 202, but next_uid = 203


I read in the release-notes, that doveadm force-resync can solve this
problem... But it didn't
I ran the command on all Mailboxes, but deleting a message in
Thunderbird (= moving it into Trash) causes the error above.

Do you need further informations?

BG jakob


Log sync error

2018-09-11 Thread Jakobus Schürz
Hi there!

I get a lot of errormessages. My dovecot is: dovecot-core
2:2.3.2.1-1~stretch from Debian stable.

I found this: https://www.dovecot.org/list/dovecot/2013-July/091648.html

So the bug came back...


The Log is attached


Thanks

Jakob



Sep 11 19:18:37 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071><9VwUMO34l1t6dQAA4mbmCw:8E/PMe34l1t3dQAA4mbmCw>: 
Indexed 1 messages in INBOX/ÖBB/Fahrplan (UIDs 4..4)
Sep 11 19:18:37 mymail dovecot[29916]: Error: 
imap(USERNAME)<30015><0AmKopt1drMKAGQE>: Log synchronization error at 
seq=3,offset=4456 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 8, but next_uid = 9
Sep 11 19:18:37 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:37 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
save: box=INBOX/Sent, uid=8, 
msgid=<1866258468.1038.1536684898270.javamail.fp...@sbepsh01p.ts-prod.oebb.at>, 
size=8253
Sep 11 19:18:37 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071><0AmKopt1drMKAGQE:OBygM+34l1t3dQAA4mbmCw>: 
Indexed 1 messages in INBOX/Sent (UIDs 8..8)
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30024>: Log synchronization error at 
seq=3,offset=4904 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 9, but next_uid = 10
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30024>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30024>: 
save: box=INBOX/Sent, uid=9, 
msgid=<1446477173.1001.1536684091542.javamail.fp...@sbepsh01p.ts-prod.oebb.at>, 
size=8254
Sep 11 19:18:38 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071>: 
Indexed 1 messages in INBOX/Sent (UIDs 9..9)
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30021>: Log synchronization error at 
seq=3,offset=4904 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 9, but next_uid = 10
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30021>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30018>: Log synchronization error at 
seq=3,offset=4904 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 9, but next_uid = 10
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30018>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30015><0AmKopt1drMKAGQE>: Log synchronization error at 
seq=3,offset=4904 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 9, but next_uid = 10
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30015><0AmKopt1drMKAGQE>: Log synchronization error at 
seq=3,offset=5384 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 10, but next_uid = 11
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
save: box=INBOX/Sent, uid=10, 
msgid=<1143759519.874.1536681766219.javamail.fp...@sbepsh01p.ts-prod.oebb.at>, 
size=8253
Sep 11 19:18:38 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071><0AmKopt1drMKAGQE:oDP4Ke74l1t3dQAA4mbmCw>: 
Indexed 1 messages in INBOX/Sent (UIDs 10..10)
Sep 11 19:18:39 mymail dovecot[29916]: Error: 
imap(USERNAME)<30024>: Log synchronization error at 
seq=3,offset=5384 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 10, but next_uid = 11
Sep 11 19:18:39 mymail dovecot[29916]: imap(USERNAME)<30024>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:39 mymail dovecot[29916]: Error: 
imap(USERNAME)<30024>: Log synchronization error at 
seq=3,offset=5816 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 11, but next_uid = 12
Sep 11 19:18:39 mymail dovecot[29916]: imap(USERNAME)<30024>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:39 mymail dovecot[29916]: imap(USERNAME)<30024>: 
save: box=INBOX/Sent, uid=11, 
msgid=<1170231472.947.1536683100471.javamail.fp...@sbepsh01p.ts-prod.oebb.at>, 
size=8256
Sep 11 19:18:39 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071>: 
Indexed 1 messages in INBOX/Sent (UIDs 11..11)
Sep 11 19:18:39 mymail dovecot[29916]: Error: 
imap(USERNAME)<30021>: Log 

Log sync error

2018-09-11 Thread Jakobus Schürz
Hi there!

I get a lot of errormessages. My dovecot is: dovecot-core
2:2.3.2.1-1~stretch from Debian stable.

I found this: https://www.dovecot.org/list/dovecot/2013-July/091648.html

So the bug came back...


The Log is attached


Thanks

Jakob


Sep 11 19:18:37 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071><9VwUMO34l1t6dQAA4mbmCw:8E/PMe34l1t3dQAA4mbmCw>: 
Indexed 1 messages in INBOX/ÖBB/Fahrplan (UIDs 4..4)
Sep 11 19:18:37 mymail dovecot[29916]: Error: 
imap(USERNAME)<30015><0AmKopt1drMKAGQE>: Log synchronization error at 
seq=3,offset=4456 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 8, but next_uid = 9
Sep 11 19:18:37 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:37 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
save: box=INBOX/Sent, uid=8, 
msgid=<1866258468.1038.1536684898270.javamail.fp...@sbepsh01p.ts-prod.oebb.at>, 
size=8253
Sep 11 19:18:37 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071><0AmKopt1drMKAGQE:OBygM+34l1t3dQAA4mbmCw>: 
Indexed 1 messages in INBOX/Sent (UIDs 8..8)
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30024>: Log synchronization error at 
seq=3,offset=4904 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 9, but next_uid = 10
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30024>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30024>: 
save: box=INBOX/Sent, uid=9, 
msgid=<1446477173.1001.1536684091542.javamail.fp...@sbepsh01p.ts-prod.oebb.at>, 
size=8254
Sep 11 19:18:38 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071>: 
Indexed 1 messages in INBOX/Sent (UIDs 9..9)
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30021>: Log synchronization error at 
seq=3,offset=4904 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 9, but next_uid = 10
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30021>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30018>: Log synchronization error at 
seq=3,offset=4904 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 9, but next_uid = 10
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30018>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30015><0AmKopt1drMKAGQE>: Log synchronization error at 
seq=3,offset=4904 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 9, but next_uid = 10
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: Error: 
imap(USERNAME)<30015><0AmKopt1drMKAGQE>: Log synchronization error at 
seq=3,offset=5384 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 10, but next_uid = 11
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:38 mymail dovecot[29916]: imap(USERNAME)<30015><0AmKopt1drMKAGQE>: 
save: box=INBOX/Sent, uid=10, 
msgid=<1143759519.874.1536681766219.javamail.fp...@sbepsh01p.ts-prod.oebb.at>, 
size=8253
Sep 11 19:18:38 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071><0AmKopt1drMKAGQE:oDP4Ke74l1t3dQAA4mbmCw>: 
Indexed 1 messages in INBOX/Sent (UIDs 10..10)
Sep 11 19:18:39 mymail dovecot[29916]: Error: 
imap(USERNAME)<30024>: Log synchronization error at 
seq=3,offset=5384 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 10, but next_uid = 11
Sep 11 19:18:39 mymail dovecot[29916]: imap(USERNAME)<30024>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:39 mymail dovecot[29916]: Error: 
imap(USERNAME)<30024>: Log synchronization error at 
seq=3,offset=5816 for 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index: Append with 
UID 11, but next_uid = 12
Sep 11 19:18:39 mymail dovecot[29916]: imap(USERNAME)<30024>: 
Warning: fscking index file 
/var/lib/dovecot/db/indexes/Maildir/USERNAME/Sent/dovecot.index
Sep 11 19:18:39 mymail dovecot[29916]: imap(USERNAME)<30024>: 
save: box=INBOX/Sent, uid=11, 
msgid=<1170231472.947.1536683100471.javamail.fp...@sbepsh01p.ts-prod.oebb.at>, 
size=8256
Sep 11 19:18:39 mymail dovecot[29916]: 
indexer-worker(USERNAME)<30071>: 
Indexed 1 messages in INBOX/Sent (UIDs 11..11)
Sep 11 19:18:39 mymail dovecot[29916]: Error: 
imap(USERNAME)<30021>: Log 

Re: Panic: Leaked view for index - virtual mailbox

2018-07-25 Thread Jakobus Schürz
in ?? () from 
/usr/local/lib/dovecot/lib20_virtual_plugin.so

No symbol table info available.
#24 0x7f5c8b044f83 in ?? () from 
/usr/local/lib/dovecot/libdovecot-storage.so.0

No symbol table info available.
#25 0x7f5c8abd9602 in ?? () from 
/usr/local/lib/dovecot/lib20_fts_plugin.so

No symbol table info available.
#26 0x7f5c8ae0e813 in ?? () from 
/usr/local/lib/dovecot/lib01_acl_plugin.so

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

No symbol table info available.
#28 0x7f5c8abbab7b in virtual_storage_sync_init () from 
/usr/local/lib/dovecot/lib20_virtual_plugin.so

No symbol table info available.
---Type  to continue, or q  to quit---
#29 0x7f5c8afe26d1 in mailbox_sync_init () from 
/usr/local/lib/dovecot/libdovecot-storage.so.0

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

No symbol table info available.
#31 0x559b17308ace in cmd_select_full ()
No symbol table info available.
#32 0x559b17310384 in command_exec ()
No symbol table info available.
#33 0x559b1730e832 in ?? ()
No symbol table info available.
#34 0x559b1730e8cc in ?? ()
No symbol table info available.
#35 0x559b1730ecd5 in client_handle_input ()
No symbol table info available.
#36 0x559b1730f2f4 in client_input ()
No symbol table info available.
#37 0x7f5c8aefe009 in io_loop_call_io () from 
/usr/local/lib/dovecot/libdovecot.so.0

No symbol table info available.
#38 0x7f5c8aeff8ce in io_loop_handler_run_internal () from 
/usr/local/lib/dovecot/libdovecot.so.0

No symbol table info available.
#39 0x7f5c8aefe10c in io_loop_handler_run () from 
/usr/local/lib/dovecot/libdovecot.so.0

No symbol table info available.
#40 0x7f5c8aefe318 in io_loop_run () from 
/usr/local/lib/dovecot/libdovecot.so.0

No symbol table info available.
#41 0x7f5c8ae78413 in master_service_run () from 
/usr/local/lib/dovecot/libdovecot.so.0

No symbol table info available.
#42 0x559b17300f81 in main ()
No symbol table info available.
(gdb) quit


Jakob


Am 25.07.2018 um 10:01 schrieb Aki Tuomi:

Try running gdb again with corrected path for imap binary



---
Aki Tuomi
Dovecot oy

 Original message 
From: Jakobus Schürz 
Date: 25/07/2018 10:46 (GMT+02:00)
To: dovecot@dovecot.org
Subject: Re: Panic: Leaked view for index - virtual mailbox

Hi Aki!

The config is in the attachment.

The output from gdb is this:


# gdb /usr/lib/dovecot/imap /var/core/24491
GNU gdb (Debian 8.1-3) 8.1
Copyright (C) 2018 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
/usr/lib/dovecot/imap: Datei oder Verzeichnis nicht gefunden.
[New LWP 24491]
Core was generated by `dovecot/imap [jakob 213'.
Program terminated with signal SIGABRT, Aborted.
#0  0x7f5c8ac4cf3b in ?? ()
(gdb) bt full
#0  0x7f5c8ac4cf3b in ?? ()
No symbol table info available.
#1  0x in ?? ()
No symbol table info available.
(gdb) quit

And i have a complex setup for virtual mailboxes...

For Synoptic/AKTUELL it is:

# cat /var/mail/virtual/AKTUELL/dovecot-virtual
!Real/halbjahr
 all

And for Real/halbjahr it is:

# cat /var/mail/real/halbjahr/dovecot-virtual
!Real/Alle
 all younger 15768000

And for Real/Alle it is:

# cat /var/mail/real/Alle/dovecot-virtual
!INBOX
INBOX/*
-INBOX/Trash
-INBOX/Trash/*
-INBOX/Archives
-INBOX/Archives/*
-INBOX/Drafts
-INBOX/Drafts/*
-INBOX/Junk
-INBOX/Junk/*
-INBOX/SYSTEM
-INBOX/SYSTEM/*
 all


jakob


Am 25.07.2018 um 09:11 schrieb Aki Tuomi:
> So the core file is not very useful...
>
> can you, instead, attach your doveconf -n and your virtual folder 
configurations and also

>
> gdb /usr/lib/dovecot/imap /path/to/core
> bt full
>
> Aki
>
>> On 25 July 2018 at 09:55 Jakobus Schürz 
 wrote:

>>
>>
>> Hi Aki!
>>
>> This is debian buster, but a self-compiled dovecot from git!
>>
>> /usr/local/sbin/dovecot --version
>> 2.3.2.1 (0719df592)
>>
>> jakob
>>
>>
>> Am 25.07.2018 um 08:30 schrieb Aki Tuomi:
>>> And can you provide dovecot --version too, please.
>>>
>>> Aki
>>>

Re: Panic: Leaked view for index - virtual mailbox

2018-07-25 Thread Jakobus Schürz

Hi Aki!

The config is in the attachment.

The output from gdb is this:


# gdb /usr/lib/dovecot/imap /var/core/24491
GNU gdb (Debian 8.1-3) 8.1
Copyright (C) 2018 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
/usr/lib/dovecot/imap: Datei oder Verzeichnis nicht gefunden.
[New LWP 24491]
Core was generated by `dovecot/imap [jakob 213'.
Program terminated with signal SIGABRT, Aborted.
#0  0x7f5c8ac4cf3b in ?? ()
(gdb) bt full
#0  0x7f5c8ac4cf3b in ?? ()
No symbol table info available.
#1  0x in ?? ()
No symbol table info available.
(gdb) quit

And i have a complex setup for virtual mailboxes...

For Synoptic/AKTUELL it is:

# cat /var/mail/virtual/AKTUELL/dovecot-virtual
!Real/halbjahr
 all

And for Real/halbjahr it is:

# cat /var/mail/real/halbjahr/dovecot-virtual
!Real/Alle
 all younger 15768000

And for Real/Alle it is:

# cat /var/mail/real/Alle/dovecot-virtual
!INBOX
INBOX/*
-INBOX/Trash
-INBOX/Trash/*
-INBOX/Archives
-INBOX/Archives/*
-INBOX/Drafts
-INBOX/Drafts/*
-INBOX/Junk
-INBOX/Junk/*
-INBOX/SYSTEM
-INBOX/SYSTEM/*
 all


jakob


Am 25.07.2018 um 09:11 schrieb Aki Tuomi:

So the core file is not very useful...

can you, instead, attach your doveconf -n and your virtual folder 
configurations and also

gdb /usr/lib/dovecot/imap /path/to/core
bt full

Aki


On 25 July 2018 at 09:55 Jakobus Schürz  wrote:


Hi Aki!

This is debian buster, but a self-compiled dovecot from git!

/usr/local/sbin/dovecot --version
2.3.2.1 (0719df592)

jakob


Am 25.07.2018 um 08:30 schrieb Aki Tuomi:

And can you provide dovecot --version too, please.

Aki


On 25 July 2018 at 09:18 Aki Tuomi  wrote:


Hi!

Which debian release is this?

Aki


On 25 July 2018 at 05:18 Jakobus Schürz  wrote:


Hi There!

I run into this problem with virtual Mailboxes on release-2.3.2 (and
also in master and in older versions of dovecot)

I added the core-file.

Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<11292>: Panic: Leaked view for index
/var/lib/dovecot/db/indexes/Maildir/jakob//dovecot.index: Opened
in index-storage.c:338
Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<11292>: Error: Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0(+0xcedf1) [0x7ffad9ac0df1] ->
/usr/local/lib/dovecot/libdovecot.so.0(+
0xceeba) [0x7ffad9ac0eba] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7ffad9a2efe8] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf7022)
[0x7ffad9c66022] -> /usr/local/lib/dovecot/libdovecot-s
torage.so.0(index_storage_mailbox_close+0x9a) [0x7ffad9c3d72a] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)
[0x7ffad9bbb1aa] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xab80) [0
x7ffad9792b80] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b)
[0x7ffad9792d3b] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x12a9)
[0x7ffad9795f1
9] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51)
[0x7ffad9bbd6d1] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7ffad9bbd787] -> /usr/local/lib/dovecot/libdo
vecot-storage.so.0(index_storage_get_status+0x31) [0x7ffad9c3bed1] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0x9ead) [0x7ffad9791ead]
-> /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xb0f83) [0x7ffad
9c1ff83] -> /usr/local/lib/dovecot/lib20_fts_plugin.so(+0x10602)
[0x7ffad97b4602] -> /usr/local/lib/dovecot/lib01_acl_plugin.so(+0xf813)
[0x7ffad99e9813] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox
_get_status+0x31) [0x7ffad9bbdb91] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0xf0b)
[0x7ffad9795b7b] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51) [0
x7ffad9bbd6d1] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7ffad9bbd787] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_get_status+0x31)
[0x7ffad9c3bed1] -> /usr/loca
l/lib/dovecot/lib20_virtual_plugin.so(+0x9ead) [0x7ffad9791ead] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xb0f83)
[0x7ffad9c1ff83] -> /usr/local/lib/dovecot/lib20_fts_plugin.so(+0x10602)
[0x7ffad97b460
2] -> /usr/local/lib

Re: Panic: Leaked view for index - virtual mailbox

2018-07-25 Thread Jakobus Schürz

Hi Aki!

This is debian buster, but a self-compiled dovecot from git!

/usr/local/sbin/dovecot --version
2.3.2.1 (0719df592)

jakob


Am 25.07.2018 um 08:30 schrieb Aki Tuomi:

And can you provide dovecot --version too, please.

Aki


On 25 July 2018 at 09:18 Aki Tuomi  wrote:


Hi!

Which debian release is this?

Aki


On 25 July 2018 at 05:18 Jakobus Schürz  wrote:


Hi There!

I run into this problem with virtual Mailboxes on release-2.3.2 (and
also in master and in older versions of dovecot)

I added the core-file.

Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<11292>: Panic: Leaked view for index
/var/lib/dovecot/db/indexes/Maildir/jakob//dovecot.index: Opened
in index-storage.c:338
Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<11292>: Error: Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0(+0xcedf1) [0x7ffad9ac0df1] ->
/usr/local/lib/dovecot/libdovecot.so.0(+
0xceeba) [0x7ffad9ac0eba] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7ffad9a2efe8] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf7022)
[0x7ffad9c66022] -> /usr/local/lib/dovecot/libdovecot-s
torage.so.0(index_storage_mailbox_close+0x9a) [0x7ffad9c3d72a] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)
[0x7ffad9bbb1aa] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xab80) [0
x7ffad9792b80] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b)
[0x7ffad9792d3b] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x12a9)
[0x7ffad9795f1
9] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51)
[0x7ffad9bbd6d1] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7ffad9bbd787] -> /usr/local/lib/dovecot/libdo
vecot-storage.so.0(index_storage_get_status+0x31) [0x7ffad9c3bed1] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0x9ead) [0x7ffad9791ead]
-> /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xb0f83) [0x7ffad
9c1ff83] -> /usr/local/lib/dovecot/lib20_fts_plugin.so(+0x10602)
[0x7ffad97b4602] -> /usr/local/lib/dovecot/lib01_acl_plugin.so(+0xf813)
[0x7ffad99e9813] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox
_get_status+0x31) [0x7ffad9bbdb91] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0xf0b)
[0x7ffad9795b7b] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51) [0
x7ffad9bbd6d1] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7ffad9bbd787] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_get_status+0x31)
[0x7ffad9c3bed1] -> /usr/loca
l/lib/dovecot/lib20_virtual_plugin.so(+0x9ead) [0x7ffad9791ead] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xb0f83)
[0x7ffad9c1ff83] -> /usr/local/lib/dovecot/lib20_fts_plugin.so(+0x10602)
[0x7ffad97b460
2] -> /usr/local/lib/dovecot/lib01_acl_plugin.so(+0xf813)
[0x7ffad99e9813] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_get_status+0x31)
[0x7ffad9bbdb91] -> /usr/local/lib/dovecot/lib20_virtual_plug
in.so(virtual_storage_sync_init+0xf0b) [0x7ffad9795b7b] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51)
[0x7ffad9bbd6d1]
Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<11292>: Fatal: master: service(imap):
child 11292 killed with signal 6 (core dumped)
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: client in:
AUTH    19    PLAIN    service=imap secured=tls
session=9KKNZclxHqPAqADc lip=192.168.0.14    rip=192.168.0.2
20    lport=143    rport=41758
local_name=aldebaran.xundeenergie.at
ssl_cipher=ECDHE-RSA-AES128-GCM-SHA256 ssl_cipher_bits=128
ssl_pfs=KxECDHE ssl_protocol=TLSv1.2
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: client passdb
out: CONT    19
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: client in:
CONT
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug:
passwd-file(jakob,192.168.0.220,<9KKNZclxHqPAqADc>): lookup: user=jakob
file=/usr/local/etc/dovecot/users
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: client passdb
out: OK    19    user=jakob
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: master in:
REQUEST    2436366337    10570    19
dd4c468bbfe617d4ef06a1b8ce6c111d    session_pid=11298 request_auth_token
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug:
passwd-file(jakob,192.168.0.220,<9KKNZclxHqPAqADc>): lookup: user=jakob
file=/usr/local/etc/dovecot/users
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: master userdb
out: USER    2436366337    jakob home=/var/mail/jakob
acl_groups=home,admin auth_token=3ea3b630e131
3bf5beb0f26ff740450189f63e3e
Jul 25 04:11:29 aldebaran dovecot[10573]: imap-login: Login:
user=, method=PLAIN, rip=192.168.0.220, lip=192.168.0.14,
mpid=11298, TLS, session=<9KKNZclxHqPAqADc>
Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<

Re: Panic: Leaked view for index - virtual mailbox

2018-07-25 Thread Jakobus Schürz

Hi Aki!

This is debian buster, but a self-compiled dovecot from git!

/usr/local/sbin/dovecot --version
2.3.2.1 (0719df592)

jakob


Am 25.07.2018 um 08:30 schrieb Aki Tuomi:

And can you provide dovecot --version too, please.

Aki


On 25 July 2018 at 09:18 Aki Tuomi  wrote:


Hi!

Which debian release is this?

Aki


On 25 July 2018 at 05:18 Jakobus Schürz  wrote:


Hi There!

I run into this problem with virtual Mailboxes on release-2.3.2 (and
also in master and in older versions of dovecot)

I added the core-file.

Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<11292>: Panic: Leaked view for index
/var/lib/dovecot/db/indexes/Maildir/jakob//dovecot.index: Opened
in index-storage.c:338
Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<11292>: Error: Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0(+0xcedf1) [0x7ffad9ac0df1] ->
/usr/local/lib/dovecot/libdovecot.so.0(+
0xceeba) [0x7ffad9ac0eba] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7ffad9a2efe8] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf7022)
[0x7ffad9c66022] -> /usr/local/lib/dovecot/libdovecot-s
torage.so.0(index_storage_mailbox_close+0x9a) [0x7ffad9c3d72a] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)
[0x7ffad9bbb1aa] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xab80) [0
x7ffad9792b80] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b)
[0x7ffad9792d3b] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x12a9)
[0x7ffad9795f1
9] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51)
[0x7ffad9bbd6d1] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7ffad9bbd787] -> /usr/local/lib/dovecot/libdo
vecot-storage.so.0(index_storage_get_status+0x31) [0x7ffad9c3bed1] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0x9ead) [0x7ffad9791ead]
-> /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xb0f83) [0x7ffad
9c1ff83] -> /usr/local/lib/dovecot/lib20_fts_plugin.so(+0x10602)
[0x7ffad97b4602] -> /usr/local/lib/dovecot/lib01_acl_plugin.so(+0xf813)
[0x7ffad99e9813] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox
_get_status+0x31) [0x7ffad9bbdb91] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0xf0b)
[0x7ffad9795b7b] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51) [0
x7ffad9bbd6d1] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7ffad9bbd787] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_get_status+0x31)
[0x7ffad9c3bed1] -> /usr/loca
l/lib/dovecot/lib20_virtual_plugin.so(+0x9ead) [0x7ffad9791ead] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xb0f83)
[0x7ffad9c1ff83] -> /usr/local/lib/dovecot/lib20_fts_plugin.so(+0x10602)
[0x7ffad97b460
2] -> /usr/local/lib/dovecot/lib01_acl_plugin.so(+0xf813)
[0x7ffad99e9813] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_get_status+0x31)
[0x7ffad9bbdb91] -> /usr/local/lib/dovecot/lib20_virtual_plug
in.so(virtual_storage_sync_init+0xf0b) [0x7ffad9795b7b] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51)
[0x7ffad9bbd6d1]
Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<11292>: Fatal: master: service(imap):
child 11292 killed with signal 6 (core dumped)
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: client in:
AUTH    19    PLAIN    service=imap secured=tls
session=9KKNZclxHqPAqADc lip=192.168.0.14    rip=192.168.0.2
20    lport=143    rport=41758
local_name=aldebaran.xundeenergie.at
ssl_cipher=ECDHE-RSA-AES128-GCM-SHA256 ssl_cipher_bits=128
ssl_pfs=KxECDHE ssl_protocol=TLSv1.2
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: client passdb
out: CONT    19
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: client in:
CONT
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug:
passwd-file(jakob,192.168.0.220,<9KKNZclxHqPAqADc>): lookup: user=jakob
file=/usr/local/etc/dovecot/users
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: client passdb
out: OK    19    user=jakob
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: master in:
REQUEST    2436366337    10570    19
dd4c468bbfe617d4ef06a1b8ce6c111d    session_pid=11298 request_auth_token
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug:
passwd-file(jakob,192.168.0.220,<9KKNZclxHqPAqADc>): lookup: user=jakob
file=/usr/local/etc/dovecot/users
Jul 25 04:11:29 aldebaran dovecot[10573]: auth: Debug: master userdb
out: USER    2436366337    jakob home=/var/mail/jakob
acl_groups=home,admin auth_token=3ea3b630e131
3bf5beb0f26ff740450189f63e3e
Jul 25 04:11:29 aldebaran dovecot[10573]: imap-login: Login:
user=, method=PLAIN, rip=192.168.0.220, lip=192.168.0.14,
mpid=11298, TLS, session=<9KKNZclxHqPAqADc>
Jul 25 04:11:29 aldebaran dovecot[10573]:
imap(jakob)<

compile-error on pigeonhole

2018-02-28 Thread Jakobus Schürz

Hi!

I try to compile pigeonhole from git-sources and get this error:


libtool: link: gcc -std=gnu99 -g -O2 -fstack-protector-strong 
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes 
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 
-Wbad-function-cast -fno-builtin-strfti
me -Wstrict-aliasing=2 -I../.. -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o 
.libs/sievec sievec-sievec.o -Wl,--export-dynamic 
../../src/lib-sieve/.libs/libdovecot-sieve.so 
../../src/lib-sieve-tool/.libs/libsieve-tool.a /usr/local/lib/dovecot
/libdovecot-storage.so /usr/local/lib/dovecot/libdovecot-lda.so 
-L/usr/local/lib/dovecot /usr/local/lib/dovecot/libdovecot.so -Wl,-rpath 
-Wl,/usr/local/lib/dovecot
../../src/lib-sieve/.libs/libdovecot-sieve.so: undefined reference to 
`array_idx_get_space'

collect2: error: ld returned 1 exit status

I'm not able to compile pigeonhole.


Jakob



Re: Cannot delete IMAP Mail-Folder in Trash

2018-02-07 Thread Jakobus Schürz

I have the same Problem with thunderbird on Linux.

It looks like thunderbirds imap-implementation is a little bit broken. 
Even if thunderbird tried once to get a mailbox, it persists in the profile.


I have FS-Layout in dovecot. Thunderbird somtimes try to get a 
submailbox with INBOX/firstlevel^secondlevel^thirdlevel


Then it doesn't find this mailbox on the server (for sure, it's 
INBOX/firstlevel/secondlevel/thirdlevel) tb tries to get next


INBOX/firstlevel^^secondlevel^^thirdlevel

and then INBOX/firstlevelsecondlevelthirdlevel and so on. And on 
each first login, tb tries to get all of them again and again...



Go to $TB-profilefolder/ImapMail/ and delete all of the *.msf files and 
search for the wrong mailboxes, described above... you will finde them.


And they are probably also in some config-files in the profile. 
user.prefs i think, and panacea.dat i could find them.


Delete all of the entries (be careful). Close and restart firefox. Good 
look, the phantom-folders are gone.



jakob


Am 06.02.2018 um 07:15 schrieb Rupert Gallagher:
We have the same problem, with a twist. When Thunderbird deletes a 
folder, it is still shown by the GUI. Dovecot deleted the folder 
correctly, and the sunscriptions file is also correct. Some other 
times, on shared folders, Thunderbird refuses to delete; in this case, 
apple mail on iphone can delete successfully. This suggests that the 
problem is in Thunderbird's code.


R


On Mon, Feb 5, 2018 at 21:55, Remko Lodder > wrote:
On 5 Feb 2018, at 17:32, Aki Tuomi > wrote:
On February 5, 2018 at 6:16 PM Gabriel Kaufmann 
> wrote:



Doesn't anyone have an idea?

It looks like Dovecot and/or Thunderbird simply "ignore" 
sub-folders of

IMAP-Folder in Trash/ as they are also not shown in Trash-Folder.
Sub-Folder for INBOX and other IMAP-Folders work perfect (using
layout=fs Mailbox).

Why doesn't this work for Trash?

Best regards

Gabriel Kaufmann



Can you try running this as root and provide output?

doveadm -Dv -o mail_debug=yes mailbox delete -u username 
Trash/Somefolder


Aki



I had the same with Mac Mail.app. I decided to rm -rf the sdbox file 
on the master and replica and I won.

It was persistant though and I think it had to do with the following:

I let my mail deliver in yearboxes, which have many many subfolders, 
some are just "placeholders". They appear different in the view.
Regular mailboxes are "dark" in colors, placeholder boxes are "white" 
in colors (see attachment), where winkels is the "placeholder" folder 
and "action" is the regular mailbox in which mail gets delivered.


I could not get rid of those "winkels" kind of folders". Only by 
force removing them from the filesystem hierarchie.


Hope this helps a bit :)

Cheers
Remko







stats-writer failed: Permission denied

2018-02-07 Thread Jakobus Schürz

Hi there!

Since i compile my own dovecot (not using dovecot from debian), i get 
this error on each startup dovecot with systemd


Feb 07 11:16:35 aldebaran dovecot[7455]: imap: Error: 
net_connect_unix(/usr/local/var/run/dovecot/stats-writer) failed: 
Permission denied
Feb 07 11:16:35 aldebaran dovecot[7455]: imap: Error: 
net_connect_unix(/usr/local/var/run/dovecot/stats-writer) failed: 
Permission denied



I can change the owner and/or permissions of the file, than it works 
till the next reboot.


How can i set this correctly in my configs?

Some googling didn't give me results for this error.


jakob



Re: Bug in dovecot 2.3 virtual plugin

2018-02-07 Thread Jakobus Schürz

Hi there!

I compiled dovecot from git on 5.2.2018.

The id of the last commit is:

$ git log --format="%H" -n 1
83b1300b96e753206f9226e3738a7ad9f5428a75

From https://github.com/dovecot/core.git


There is a new error,  when i try to open a virtual folder for my archiv 
(almost 30.000 mails) in thunderbird, also in k9-mail on android.


Feb 07 11:09:55 aldebaran dovecot[7455]: 
imap(jakob)<7472>: Panic: Leaked view for index 
/var/lib/dovecot/db/indexes/archiv/jakob/Archiv/2016/Mailinglisten/stvkr-a/dovecot.index: 
Opened in index-storage.c:336
Feb 07 11:09:55 aldebaran dovecot[7455]: 
imap(jakob)<7472>: Error: Raw backtrace: 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc9431) [0x7f6edc3dd431] -> 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc94fa) [0x7f6edc3dd4fa] -> 
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f6edc34fbe8] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf44f2) 
[0x7f6edc77b4f2] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_close+0x72) 
[0x7f6edc752d32] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a) 
[0x7f6edc6d227a] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xa700) [0x7f6ed78e8700] 
-> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b) 
[0x7f6ed78e889b] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x12a9) 
[0x7f6ed78eba79] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51) 
[0x7f6edc6d4781] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37) 
[0x7f6edc6d4837] -> dovecot/imap [jakob 92.60.9.18 
select](cmd_select_full+0x17e) [0x55bde8d2a08e] -> dovecot/imap [jakob 
92.60.9.18 select](command_exec+0x64) [0x55bde8d318d4] -> dovecot/imap 
[jakob 92.60.9.18 select](+0x1bd82) [0x55bde8d2fd82] -> dovecot/imap 
[jakob 92.60.9.18 select](+0x1be1c) [0x55bde8d2fe1c] -> dovecot/imap 
[jakob 92.60.9.18 select](client_handle_input+0x1b5) [0x55bde8d30225] -> 
dovecot/imap [jakob 92.60.9.18 select](client_input+0xa4) 
[0x55bde8d30844] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69) 
[0x7f6edc3f51c9] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x12e) 
[0x7f6edc3f6a3e] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x4c) 
[0x7f6edc3f52cc] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) 
[0x7f6edc3f54d8] -> 
/usr/local/lib/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7f6edc3725d3] -> dovecot/imap [jakob 92.60.9.18 select](main+0x339) 
[0x55bde8d22599] -> 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f6edbf7ef2a] 
-> dovecot/imap [jakob 92.60.9.18 select](_start+0x2a) [0x55bde8d2277a]
Feb 07 11:09:55 aldebaran dovecot[7455]: 
imap(jakob)<7472>: Fatal: master: service(imap): child 
7472 killed with signal 6 (core not dumped)
Feb 07 11:09:55 aldebaran dovecot[7455]: imap-login: Login: 
user=, method=CRAM-MD5, rip=1.2.3.4, lip=192.168.0.14, mpid=7474, 
TLS, session=
Feb 07 11:09:56 aldebaran dovecot[7455]: 
imap(jakob)<7474>: Panic: Leaked view for index 
/var/lib/dovecot/db/indexes/archiv/jakob/Archiv/2016/Mailinglisten/stvkr-a/dovecot.index: 
Opened in index-storage.c:336
Feb 07 11:09:56 aldebaran dovecot[7455]: 
imap(jakob)<7474>: Error: Raw backtrace: 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc9431) [0x7fc44d019431] -> 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc94fa) [0x7fc44d0194fa] -> 
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fc44cf8bbe8] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf44f2) 
[0x7fc44d3b74f2] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_close+0x72) 
[0x7fc44d38ed32] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a) 
[0x7fc44d30e27a] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xa700) [0x7fc448524700] 
-> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b) 
[0x7fc44852489b] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x12a9) 
[0x7fc448527a79] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x51) 
[0x7fc44d310781] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37) 
[0x7fc44d310837] -> dovecot/imap [jakob 92.60.9.18 
select](cmd_select_full+0x17e) [0x55770c32408e] -> dovecot/imap [jakob 
92.60.9.18 select](command_exec+0x64) [0x55770c32b8d4] -> dovecot/imap 
[jakob 92.60.9.18 select](+0x1bd82) [0x55770c329d82] -> dovecot/imap 
[jakob 92.60.9.18 select](+0x1be1c) [0x55770c329e1c] -> dovecot/imap 
[jakob 92.60.9.18 select](client_handle_input+0x1b5) [0x55770c32a225] -> 
dovecot/imap [jakob 92.60.9.18 select](client_input+0xa4) 
[0x55770c32a844] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69) 
[0x7fc44d0311c9] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x12e) 
[0x7fc44d032a3e] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x4c) 
[0x7fc44d0312cc] -> 

Re: Error in virtual mailbox dovecot 2.3-devel maybe in mailcount

2018-02-01 Thread Jakobus Schürz

Hi!


I didn't hear anything about this issue... the problem still persists 
(last build was 27.1.2018 from git ressources)


Do you need more informations?

jakob


Am 12.01.2018 um 11:04 schrieb Jakobus Schürz:

Hi there!

I splitted my Mailarchiv to an extra namespace. Because i have some 
Problems with the Archiv.


I can open all Folders from Mailarchiv with dovecot. But i want to 
have a "all archives" Mailbox to search in all messages in only one 
virtual mailbox. Trying to open this virtual folder from thunderbird, 
I get in a big archiv this error in logs from dovecot:


Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Error: virtual index 
/var/mail/virtual/ARCHIV: Broken mailbox_count header
Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Error: virtual index 
/var/mail/virtual/ARCHIV: Broken mailbox_count header
Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Panic: Leaked view for index 
/var/lib/dovecot/db/indexes/archiv/jakob/Archiv/2016/Mailinglisten/stvkr-a/dovecot.index: 
Opened in index-storage.c:336
Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Error: Raw backtrace: 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6021) [0x7f391bf02021] -> 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc60ed) [0x7f391bf020ed] -> 
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f391be74481] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf3942) 
[0x7f391c2a1942] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_close+0x72) 
[0x7f391c278ec2] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a) 
[0x7f391c1f8c0a] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xa7e0) 
[0x7f39174637e0] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b) 
[0x7f391746397b] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x1026) 
[0x7f3917466926] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4d) 
[0x7f391c1fb05d] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37) 
[0x7f391c1fb117] -> dovecot/imap [jakob 92.60.9.18 
select](cmd_select_full+0x171) [0x55759e0911a1] -> dovecot/imap [jakob 
92.60.9.18 select](command_exec+0x64) [0x55759e098ca4] -> dovecot/imap 
[jakob 92.60.9.18 select](+0x1b0b2) [0x55759e0970b2] -> dovecot/imap 
[jakob 92.60.9.18 select](+0x1b13c) [0x55759e09713c] -> dovecot/imap 
[jakob 92.60.9.18 select](client_handle_input+0x1a5) [0x55759e097565] 
-> dovecot/imap [jakob 92.60.9.18 select](client_input+0x82) 
[0x55759e097be2] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69) 
[0x7f391bf19c09] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x109) 
[0x7f391bf1b4a9] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x52) 
[0x7f391bf19d12] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) 
[0x7f391bf19f28] -> 
/usr/local/lib/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7f391be971e3] -> dovecot/imap [jakob 92.60.9.18 select](main+0x328) 
[0x55759e089768] -> 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) 
[0x7f391babd2b1] -> dovecot/imap [jakob 92.60.9.18 
select](_start+0x2a) [0x55759e08994a]
Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Fatal: master: service(imap): 
child 11302 killed with signal 6 (core not dumped)


and if i search the virtual mailbox with doveadm i get almost the same 
error. The "Broken mailbox_count_header" is missing there.


The full amount of emails in archiv is about 28000

# ulimit -n 256000
# doveadm search -u jakob mailbox Real/Archiv all
doveadm(jakob): Panic: Leaked view for index 
/var/lib/dovecot/db/indexes/archiv/jakob/Archiv/2016/Diverses/Standard-foren/dovecot.index: 
Opened in index-storage.c:336
doveadm(jakob): Error: Raw backtrace: 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6021) [0x7f8259fe6021] -> 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6079) [0x7f8259fe6079] -> 
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f8259f58481] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf3942) 
[0x7f825a385942] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_close+0x72) 
[0x7f825a35cec2] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a) 
[0x7f825a2dcc0a] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xa7e0) 
[0x7f82559507e0] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b) 
[0x7f825595097b] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x1026) 
[0x7f8255953926] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4d) 
[0x7f825a2df05d] -> 
/usr/local/lib/dovecot/libdovecot-s

Re: Mailbox from virtual mailbox in other namespace

2018-01-15 Thread Jakobus Schürz



Am 15.01.2018 um 09:35 schrieb Aki Tuomi:


On 15.01.2018 10:31, Jakobus Schürz wrote:


Am 15.01.2018 um 08:17 schrieb Aki Tuomi:

On 14.01.2018 02:11, Jakob Schürz wrote:

Hi there!

I have more namespaces. One for subscription, another one "inbox", then
one for the archiv and a shared and a public namespace.
And than is there a namespace for virtual mailboxes.

In the namespace for virtual mailboxes is one mailbox wich gives me all
emails in the archiv namespace

#cat dovecot-virtual
Archiv/*
    all

The namespace is normally hidden, but for debugging i make it visible.

doveadm search -u jakob mailbox Real/Archiv all

lists all the emails.

So i want to integrate this virtual mailbox in another namespace.
The namespace is Archiv

namespace Archiv {
   ...
   ...
   ...
   mailbox Real/Archiv {
    auto = subscription
    }
   ...
   ...
}

doveadm mailbox list -u jakob

gives
Archiv/Real/Archiv

But

doveadm search -u jakob mailbox Archiv/Real/Archiv all

gives no result.

What's wrong?

jakob

Do you have dovecot-virtual file for Archiv/Real/Archiv?

Aki

Hmmm... I see... no. I thought it is possible to integrate a specific
mailbox from another namespace in a namespace giving the mailbox-name
in mailbox-definition. So... it is not possible?
Can I mix real and virtual mailboxes in one namespace?

jakob

Not possible, sorry. The only way to do this is to have a
dovecot-virtual file which will operate on the real folder, such as

Real/Archiv
!Real/Archiv
all

Aki


Ok. My Idea, to have one Mailbox "Archiv", which contains:
Archiv
|`-2012
|`-2013
|`-2014
|`-2015
|`-2016
|`-2017
`--All (this is a virtual Folder with the whole content of the whole archiv)

is not possible. I need an extra namespace for the virtual 
Archiv-All-Mailbox...


Jakob


Re: Mailbox from virtual mailbox in other namespace

2018-01-15 Thread Jakobus Schürz



Am 15.01.2018 um 08:17 schrieb Aki Tuomi:


On 14.01.2018 02:11, Jakob Schürz wrote:

Hi there!

I have more namespaces. One for subscription, another one "inbox", then
one for the archiv and a shared and a public namespace.
And than is there a namespace for virtual mailboxes.

In the namespace for virtual mailboxes is one mailbox wich gives me all
emails in the archiv namespace

#cat dovecot-virtual
Archiv/*
   all

The namespace is normally hidden, but for debugging i make it visible.

doveadm search -u jakob mailbox Real/Archiv all

lists all the emails.

So i want to integrate this virtual mailbox in another namespace.
The namespace is Archiv

namespace Archiv {
  ...
  ...
  ...
  mailbox Real/Archiv {
   auto = subscription
   }
  ...
  ...
}

doveadm mailbox list -u jakob

gives
Archiv/Real/Archiv

But

doveadm search -u jakob mailbox Archiv/Real/Archiv all

gives no result.

What's wrong?

jakob

Do you have dovecot-virtual file for Archiv/Real/Archiv?

Aki


Hmmm... I see... no. I thought it is possible to integrate a specific 
mailbox from another namespace in a namespace giving the mailbox-name in 
mailbox-definition. So... it is not possible?

Can I mix real and virtual mailboxes in one namespace?

jakob


Error in virtual mailbox dovecot 2.3-devel maybe in mailcount

2018-01-12 Thread Jakobus Schürz

Hi there!

I splitted my Mailarchiv to an extra namespace. Because i have some 
Problems with the Archiv.


I can open all Folders from Mailarchiv with dovecot. But i want to have 
a "all archives" Mailbox to search in all messages in only one virtual 
mailbox. Trying to open this virtual folder from thunderbird, I get in a 
big archiv this error in logs from dovecot:


Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Error: virtual index 
/var/mail/virtual/ARCHIV: Broken mailbox_count header
Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Error: virtual index 
/var/mail/virtual/ARCHIV: Broken mailbox_count header
Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Panic: Leaked view for index 
/var/lib/dovecot/db/indexes/archiv/jakob/Archiv/2016/Mailinglisten/stvkr-a/dovecot.index: 
Opened in index-storage.c:336
Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Error: Raw backtrace: 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6021) [0x7f391bf02021] -> 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc60ed) [0x7f391bf020ed] -> 
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f391be74481] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf3942) 
[0x7f391c2a1942] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_close+0x72) 
[0x7f391c278ec2] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a) 
[0x7f391c1f8c0a] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xa7e0) [0x7f39174637e0] 
-> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b) 
[0x7f391746397b] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x1026) 
[0x7f3917466926] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4d) 
[0x7f391c1fb05d] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37) 
[0x7f391c1fb117] -> dovecot/imap [jakob 92.60.9.18 
select](cmd_select_full+0x171) [0x55759e0911a1] -> dovecot/imap [jakob 
92.60.9.18 select](command_exec+0x64) [0x55759e098ca4] -> dovecot/imap 
[jakob 92.60.9.18 select](+0x1b0b2) [0x55759e0970b2] -> dovecot/imap 
[jakob 92.60.9.18 select](+0x1b13c) [0x55759e09713c] -> dovecot/imap 
[jakob 92.60.9.18 select](client_handle_input+0x1a5) [0x55759e097565] -> 
dovecot/imap [jakob 92.60.9.18 select](client_input+0x82) 
[0x55759e097be2] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69) 
[0x7f391bf19c09] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x109) 
[0x7f391bf1b4a9] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x52) 
[0x7f391bf19d12] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) 
[0x7f391bf19f28] -> 
/usr/local/lib/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7f391be971e3] -> dovecot/imap [jakob 92.60.9.18 select](main+0x328) 
[0x55759e089768] -> 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f391babd2b1] 
-> dovecot/imap [jakob 92.60.9.18 select](_start+0x2a) [0x55759e08994a]
Jän 12 10:54:41 aldebaran dovecot[839]: 
imap(jakob)<11302><9ILYQJFipPlcPAkS>: Fatal: master: service(imap): 
child 11302 killed with signal 6 (core not dumped)


and if i search the virtual mailbox with doveadm i get almost the same 
error. The "Broken mailbox_count_header" is missing there.


The full amount of emails in archiv is about 28000

# ulimit -n 256000
# doveadm search -u jakob mailbox Real/Archiv all
doveadm(jakob): Panic: Leaked view for index 
/var/lib/dovecot/db/indexes/archiv/jakob/Archiv/2016/Diverses/Standard-foren/dovecot.index: 
Opened in index-storage.c:336
doveadm(jakob): Error: Raw backtrace: 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6021) [0x7f8259fe6021] -> 
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6079) [0x7f8259fe6079] -> 
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f8259f58481] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf3942) 
[0x7f825a385942] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_close+0x72) 
[0x7f825a35cec2] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a) 
[0x7f825a2dcc0a] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xa7e0) [0x7f82559507e0] 
-> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b) 
[0x7f825595097b] -> 
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x1026) 
[0x7f8255953926] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4d) 
[0x7f825a2df05d] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37) 
[0x7f825a2df117] -> doveadm(doveadm_mail_iter_init+0x94) 
[0x56303334be94] -> doveadm(+0x33715) [0x56303334f715] -> 
doveadm(+0x29a88) [0x563033345a88] -> doveadm(+0x2a702) [0x563033346702] 
-> doveadm(doveadm_cmd_ver2_to_mail_cmd_wrapper+0x230) [0x563033347570] 
-> doveadm(doveadm_cmd_run_ver2+0x575) [0x563033357155] -> 
doveadm(doveadm_cmd_try_run_ver2+0x37) 

Re: Bug in dovecot 2.3 virtual plugin

2018-01-05 Thread Jakobus Schürz

Good morning!

I did more research on this error.
The virtual mailboxes are working in two other accounts. The big 
difference to my account is, i have a lot (sub)mailboxes (about 430) and 
a lot emails in my account. The other accounts only have a few emails 
and mailboxes (5 or 6 standard, inbox, trash, templates...)


So i moved all my mailboxes to another place  and left there only a few. 
The virtual mailbox is working.

Then i put back some mailboxes, it is working.
Then i put back the next and the next and tried if the virtual mailbox 
is reachable. it was working, and after i put back more then a half of 
my mailboxes, the error occured again.

dovecot says:

Panic: Leaked view for index 
/var/lib/dovecot/db/indexes/Maildir/jakob/TU-Wien/dovecot.index: Opened 
in index-storage.c:336


The missing dovecot.indes file is now another. But it is on every 
error-message the same missing indes-file.


Deleting the according mailbox, it gets another missing index-file. And 
the every error-message stays on the next indes-file...


It looks to me, it'S a question about too many mailboxes, then an 
internal index gets broken and can't rebuild on the every same point 
(mailbox). This is just an idea, but i don't know how dovecot really 
works...


I do not understand, why it worked till yesterday. And why it breaked on 
deleting not used debian-packages... (maybe this is not the reason)


I removed all my virtual mailboxes from config


Am 04.01.2018 um 22:41 schrieb Jakob Schürz:

Hi!

This is very strange...
This error affects only one mailaccount, and it happend not yesterday.
The file

/var/lib/dovecot/db/indexes/Maildir/jakob/INBOX/dovecot.index

which hat "Panic: Leaked view for index" does not exist. only
dovecot.index.log and .cache exists in this mailbox. (which is normal
for small mailboxes, i've read). But why is dovecot throwing an error?

And i could find out, this is only, when i try to open a virtual folder.

I switched back to older self-compiled dovecot-versions... but the error
exists also there (but not before the update!!!)

I also deleted all the dovecot.index-files, dovecot.index.log and
dovecot.index.cache-files to let rebuild dovecot the index again... the
error persists.

Is it a misconfiguration?

So i tried to build for the virtual-Mailboxes the Index in memory... the
error persists and dovecot wants to read this index-file.

My virtual folders not working any longer (on this account only!)

For debug purpose i deleted all the emails in this mailbox, the error
dissapered on this folder, but comes back in the next folder.

could this be a problem with ulimit?

greez
jakob

Am 2018-01-04 um 11:07 schrieb Jakobus Schürz:

Hi!

Is this a bug according to the other one?

When i try to open a real or virtual mailbox, i often (not on every
mailbox) get this error-message:

Jän 04 11:03:32 aldebaran dovecot[24534]:
imap(jakob)<24705>: Panic: Leaked view for index
/var/lib/dovecot/db/indexes/Maildir/jakob/INBOX/dovecot.index: Opened in
index-storage.c:336
Jän 04 11:03:32 aldebaran dovecot[24534]:
imap(jakob)<24705>: Error: Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6021) [0x7f47d5872021] ->
/usr/local/lib/dovecot/libdovecot.so.0(+0xc60ed) [0x7f47d58720ed] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f47d57e4481] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf3942)
[0x7f47d5c11942] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_close+0x72)
[0x7f47d5be8ec2] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)
[0x7f47d5b68c0a] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xa7e0) [0x7f47d0dd37e0]
->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b)
[0x7f47d0dd397b] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x1026)
[0x7f47d0dd6926] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4d)
[0x7f47d5b6b05d] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7f47d5b6b117] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_get_status+0x31)
[0x7f47d5be7781] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0x9b3d) [0x7f47d0dd2b3d]
-> /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xaded1)
[0x7f47d5bcbed1] -> /usr/local/lib/dovecot/lib01_acl_plugin.so(+0xe975)
[0x7f47d5001975] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_get_status+0x31)
[0x7f47d5b6b4b1] ->
/usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x114d)
[0x7f47d0dd6a4d] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4d)
[0x7f47d5b6b05d] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7f47d5b6b117] -> dovecot/imap [jakob 192.168.0.14
EXAMINE](cmd_select_full+0x171) [0x555d195a91a1] -> dovecot/imap [jakob
192.168.0.14 EXAMINE](command_exec+0x64) [0x555d195b0ca4] ->
dovecot/imap [jakob

Re: Bug in dovecot 2.3 virtual plugin

2018-01-05 Thread Jakobus Schürz

Ok!
So the subject for this bug is correct...

Do you need some configs and deeper descriptions from me?

I have two namespaces with virtual mailboxes:
The first "Real" is normally hidden. It's not hidden now for debug-purpose.

namespace Real {
  hidden = no
  ignore_on_failure = yes
  list = children
  location = 
virtual:/var/mail/real:INDEX=/var/lib/dovecot/db/indexes/real/%u

  prefix = Real/
  separator = /
  subscriptions = no
}

namespace Synoptic {
  hidden = no
  ignore_on_failure = yes
  list = children
  location = 
virtual:/var/mail/virtual:INDEX=/var/lib/dovecot/db/indexes/virtual/%u

  mailbox INBOX/Archives {
auto = no
special_use = \Archive
  }
  mailbox INBOX/Drafts {
auto = no
special_use = \Drafts
  }
  mailbox INBOX/Entwürfe {
auto = no
special_use = \Drafts
  }
  mailbox INBOX/Junk {
auto = no
special_use = \Junk
  }
  mailbox INBOX/Sent {
auto = no
special_use = \Sent
  }
  mailbox INBOX/Spam {
auto = no
special_use = \Junk
  }
  prefix = Synoptic/
  separator = /
  subscriptions = no
}

The "Real" namespace is to get a first filter for emails for all, the 
last 1, 2 and 3 years:


Here is the virtual-mailbox-definition:

/var/mail/real: # tree
.
├── Alle
│   └── dovecot-virtual
├── dovecot-acl-list
├── dreijahr
│   └── dovecot-virtual
├── einjahr
│   └── dovecot-virtual
└── zweijahr
└── dovecot-virtual

and the index-files
/var/lib/dovecot/db/indexes: # tree real/
real/
└── jakob
├── Alle
│   └── dovecot.index.log
├── dovecot.list.index.log
├── dreijahr
│   └── dovecot.index.log
├── einjahr
│   └── dovecot.index.log
└── zweijahr
└── dovecot.index.log


/var/mail/real: # cat Alle/dovecot-virtual
!INBOX
INBOX/*
-INBOX/Trash
-INBOX/Trash/*
-INBOX/Archives
-INBOX/Archives/*
-INBOX/Drafts
-INBOX/Drafts/*
-INBOX/Junk
-INBOX/Junk/*
-INBOX/SYSTEM
-INBOX/SYSTEM/*
 all

/var/mail/real: # cat einjahr/dovecot-virtual
Real/Alle
 all younger 31536000

And the namespace Synoptic is the one, i can subscribe. It has as 
Background the "Real"-namespace:


/var/mail/virtual: # tree
.
├── AKTUELL
│   └── dovecot-virtual
├── Archives
│   └── dovecot-virtual
├── dovecot-acl-list
├── Drafts
│   └── dovecot-virtual
├── GINBOX
│   └── dovecot-virtual
├── Markierte
│   └── dovecot-virtual
├── Neue
│   └── dovecot-virtual
├── Sent
│   └── dovecot-virtual
├── Trash
│   └── dovecot-virtual
├── Ungelesene
│   └── dovecot-virtual
└── WICHTIG
└── dovecot-virtual

/var/mail/virtual: # cat AKTUELL/dovecot-virtual
Real/einjahr
 inthread refs younger 2592000

/var/mail/virtual: # cat Markierte/dovecot-virtual
Real/Alle
 flagged

The error only appears in a Mailbox from one of this two namespaces. 
Every other mailboxes (public, private, shared) are working correct.
When i try to open a mailbox from one of this two namespaces, the error 
below (Panic: Leaked view for index) is throwen


jakob


Am 05.01.2018 um 10:25 schrieb Aki Tuomi:

This is a different bug, and I suspect it might be caused by virtual
plugin. We'll look into it.

Aki

On 04.01.2018 23:41, Jakob Schürz wrote:

Hi!

This is very strange...
This error affects only one mailaccount, and it happend not yesterday.
The file

/var/lib/dovecot/db/indexes/Maildir/jakob/INBOX/dovecot.index

which hat "Panic: Leaked view for index" does not exist. only
dovecot.index.log and .cache exists in this mailbox. (which is normal
for small mailboxes, i've read). But why is dovecot throwing an error?

And i could find out, this is only, when i try to open a virtual folder.

I switched back to older self-compiled dovecot-versions... but the error
exists also there (but not before the update!!!)

I also deleted all the dovecot.index-files, dovecot.index.log and
dovecot.index.cache-files to let rebuild dovecot the index again... the
error persists.

Is it a misconfiguration?

So i tried to build for the virtual-Mailboxes the Index in memory... the
error persists and dovecot wants to read this index-file.

My virtual folders not working any longer (on this account only!)

For debug purpose i deleted all the emails in this mailbox, the error
dissapered on this folder, but comes back in the next folder.

could this be a problem with ulimit?

greez
jakob

Am 2018-01-04 um 11:07 schrieb Jakobus Schürz:

Hi!

Is this a bug according to the other one?

When i try to open a real or virtual mailbox, i often (not on every
mailbox) get this error-message:

Jän 04 11:03:32 aldebaran dovecot[24534]:
imap(jakob)<24705>: Panic: Leaked view for index
/var/lib/dovecot/db/indexes/Maildir/jakob/INBOX/dovecot.index: Opened in
index-storage.c:336
Jän 04 11:03:32 aldebaran dovecot[24534]:
imap(jakob)<24705>: Error: Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6021) [0x7f47d5872021] ->
/usr/local/lib/dovecot/libdovecot.so.0(+0xc60ed) [0x7f47d58720ed] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f47d57e4481] 

Re: Bug in dovecot 2.3 virtual plugin

2018-01-04 Thread Jakobus Schürz

Hi!

Is this a bug according to the other one?

When i try to open a real or virtual mailbox, i often (not on every  
mailbox) get this error-message:


Jän 04 11:03:32 aldebaran dovecot[24534]:  
imap(jakob)<24705>: Panic: Leaked view for index  
/var/lib/dovecot/db/indexes/Maildir/jakob/INBOX/dovecot.index: Opened  
in index-storage.c:336
Jän 04 11:03:32 aldebaran dovecot[24534]:  
imap(jakob)<24705>: Error: Raw backtrace:  
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6021) [0x7f47d5872021] ->  
/usr/local/lib/dovecot/libdovecot.so.0(+0xc60ed) [0x7f47d58720ed] ->  
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f47d57e4481] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf3942)  
[0x7f47d5c11942] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_close+0x72) [0x7f47d5be8ec2] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a) [0x7f47d5b68c0a] -> /usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xa7e0) [0x7f47d0dd37e0] -> /usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_backend_box_open+0x2b) [0x7f47d0dd397b] -> /usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x1026) [0x7f47d0dd6926] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4d) [0x7f47d5b6b05d] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37) [0x7f47d5b6b117] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_get_status+0x31) [0x7f47d5be7781] -> /usr/local/lib/dovecot/lib20_virtual_plugin.so(+0x9b3d) [0x7f47d0dd2b3d] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xaded1) [0x7f47d5bcbed1] -> /usr/local/lib/dovecot/lib01_acl_plugin.so(+0xe975) [0x7f47d5001975] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_get_status+0x31) [0x7f47d5b6b4b1] -> /usr/local/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x114d) [0x7f47d0dd6a4d] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4d) [0x7f47d5b6b05d] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37) [0x7f47d5b6b117] -> dovecot/imap [jakob 192.168.0.14 EXAMINE](cmd_select_full+0x171) [0x555d195a91a1] -> dovecot/imap [jakob 192.168.0.14 EXAMINE](command_exec+0x64) [0x555d195b0ca4] -> dovecot/imap [jakob 192.168.0.14 EXAMINE](+0x1b0b2) [0x555d195af0b2] -> dovecot/imap [jakob 192.168.0.14 EXAMINE](+0x1b13c) [0x555d195af13c] -> dovecot/imap [jakob 192.168.0.14 EXAMINE](client_handle_input+0x1a5) [0x555d195af565] -> dovecot/imap [jakob 192.168.0.14 EXAMINE](client_input+0x82) [0x555d195afbe2] -> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69) [0x7f47d5889bf9] -> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x109) [0x7f47d588b499] -> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x52)  
[0x7f47d5889d02]
Jän 04 11:03:32 aldebaran dovecot[24534]:  
imap(jakob)<24705>: Fatal: master: service(imap):  
child 24705 killed with signal 6 (core dumps disabled)


I deinstalled all debian-dovecot-packages and installed the user  
dovenull manually again. This is all, i did.


jakob


Bug in dovecot 2.3 virtual plugin

2018-01-03 Thread Jakobus Schürz

Hi there!

I compiled dovecot 2.3 from git. Because there is already a bug in  
virtual-plugin, and i hoped, it get fixed... but it doesn't. So this  
is the error-message from the log


Jän 03 16:27:08 aldebaran dovecot[26460]:  
indexer-worker(jakob)<26476>:  
Panic: file unichar.c: line 160 (uni_ucs4_to_utf8_c): assertion  
failed: (uni_is_valid_ucs4(chr))
Jän 03 16:27:08 aldebaran dovecot[26460]:  
indexer-worker(jakob)<26476>:  
Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0(+0xc6021)  
[0x7f8299f7a021] -> /usr/local/lib/dovecot/libdovecot.so.0(+0xc60ed)  
[0x7f8299f7a0ed] -> /usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0)  
[0x7f8299eec481] ->  
/usr/local/lib/dovecot/libdovecot.so.0(uni_ucs4_to_utf8_c+0xa0)  
[0x7f8299fb1500] -> /usr/local/lib/dovecot/libdovecot.so.0(+0xa75e0)  
[0x7f8299f5b5e0] ->  
/usr/local/lib/dovecot/libdovecot.so.0(mail_html2text_more+0xc5)  
[0x7f8299f5b775] ->  
/usr/local/lib/dovecot/lib20_fts_plugin.so(+0xcfcc) [0x7f82990aefcc]  
-> /usr/local/lib/dovecot/lib20_fts_plugin.so(fts_parser_more+0x27)  
[0x7f82990aeca7] ->  
/usr/local/lib/dovecot/lib20_fts_plugin.so(fts_build_mail+0x5e9)  
[0x7f82990acc39] ->  
/usr/local/lib/dovecot/lib20_fts_plugin.so(+0x1122d) [0x7f82990b322d]  
-> /usr/local/lib/dovecot/lib20_virtual_plugin.so(+0x916a)  
[0x7f82958e316a] ->  
/usr/local/lib/dovecot/lib20_fts_plugin.so(+0x10f5d) [0x7f82990b2f5d]  
-> /usr/local/lib/dovecot/lib20_virtual_plugin.so(+0x916a)  
[0x7f82958e316a] ->  
/usr/local/lib/dovecot/lib20_fts_plugin.so(+0x10f5d) [0x7f82990b2f5d]  
-> /usr/local/lib/dovecot/libdovecot-storage.so.0(mail_precache+0x2e)  
[0x7f829a2641be] -> dovecot/indexer-worker [jakob  
Synoptic/AKTUELL](+0x2533) [0x562227882533] ->  
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x69)  
[0x7f8299f91bf9] ->  
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x109)  
[0x7f8299f93499] ->  
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x52)  
[0x7f8299f91d02] ->  
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x38)  
[0x7f8299f91f18] ->  
/usr/local/lib/dovecot/libdovecot.so.0(master_service_run+0x13)  
[0x7f8299f0f1e3] -> dovecot/indexer-worker [jakob  
Synoptic/AKTUELL](main+0xe7) [0x562227881f47] ->  
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)  
[0x7f8299b352b1] -> dovecot/indexer-worker [jakob  
Synoptic/AKTUELL](_start+0x2a) [0x56222788201a]
Jän 03 16:27:08 aldebaran dovecot[26460]: indexer: Error: Indexer  
worker disconnected, discarding 1 requests for jakob
Jän 03 16:27:08 aldebaran dovecot[26460]:  
imap(jakob)<26472>: Error: indexer failed to index  
mailbox Synoptic/AKTUELL
Jän 03 16:27:08 aldebaran dovecot[26460]:  
indexer-worker(jakob)<26476>:  
Fatal: master: service(indexer-worker): child 26476 killed with signal  
6 (core dumps disabled)
Jän 03 16:27:09 aldebaran dovecot[26460]:  
indexer-worker(jakob)<26484>:  
Error: lucene index  
/var/lib/dovecot/db/indexes/Maildir/jakob/lucene-indexes:  
IndexWriter() failed (#1): Lock obtain timed out
Jän 03 16:27:10 aldebaran dovecot[26460]:  
indexer-worker(jakob)<26484>:  
Error: Mailbox Synoptic/AKTUELL: Transaction commit failed: BUG:  
Unknown internal error (attempted to index 1488 messages (UIDs  
15214..16775))
Jän 03 16:27:10 aldebaran dovecot[26460]:  
imap(jakob)<26480>: Error: indexer failed to index  
mailbox Synoptic/AKTUELL
Jän 03 16:27:11 aldebaran dovecot[26460]:  
imap(jakob)<26472>: Panic: file mail-index.c: line  
793 (mail_index_close): assertion failed: (index->open_count > 0)
Jän 03 16:27:11 aldebaran dovecot[26460]:  
imap(jakob)<26472>: Error: Raw backtrace:  
/usr/local/lib/dovecot/libdovecot.so.0(+0xc6021) [0x7fb0fbd3a021] ->  
/usr/local/lib/dovecot/libdovecot.so.0(+0xc60ed) [0x7fb0fbd3a0ed] ->  
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fb0fbcac481] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xf39a8)  
[0x7fb0fc0d99a8] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xd92d1)  
[0x7fb0fc0bf2d1] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xd9363)  
[0x7fb0fc0bf363] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_mailbox_free+0x9)  
[0x7fb0fc0b0f39] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xd05a4)  
[0x7fb0fc0b65a4] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_free+0x19)  
[0x7fb0fc030c99] ->  
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xabdc)  
[0x7fb0f729bbdc] ->  
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xacb9)  
[0x7fb0f729bcb9] ->  
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a)  
[0x7fb0fc030c0a] ->  
/usr/local/lib/dovecot/lib20_virtual_plugin.so(+0xac60)  
[0x7fb0f729bc60] ->  

Re: Plugin virtual, Horde BAD IMAP QRESYNC not enabled

2017-11-18 Thread Jakobus Schürz

 Hi!

Thank you for the fix!

- Nachricht von Timo Sirainen  -
  Datum: Fri, 17 Nov 2017 23:54:25 +0200
    Von: Timo Sirainen 
Betreff: Re: Plugin virtual, Horde BAD IMAP QRESYNC not enabled
     An: wertsto...@nurfuerspam.de, Dovecot Mailing List 


On 17 Nov 2017, at 21.36, Aki Tuomi  wrote:




On November 16, 2017 at 9:59 AM wertsto...@nurfuerspam.de wrote:

 


Hi!

Thanks for the sample, we were able to identify the problem!


   
Fixed: https://github.com/dovecot/core/commit/489af46c6c1ee32fe6a6ff96a8281f2ef5870c8d

   


- Ende der Nachricht von Timo Sirainen  -

compiled it, and it seems to work for me. Tested it with several  
messages which are not working before. I can see them now in Horde in  
dovecots virtual folders.


Great thanks!!