Re: sieve-filter with duplicate-extension

2016-08-26 Thread Stephan Bosch
Op 8/25/2016 om 4:01 PM schreef hend...@luecke-tieke.de:
> Hi,
>
> i have imported a mailbox twice (accentially). Now i thought, it might
> be a valid approach to simply use a custom sieve rule to mark
> duplicates using the attached ruleset
>
> I ran sieve-filter like this:
>
> ~# sieve-filter -e -W -v -C -u user...@example.com
> /var/vmail/example.com/userxyz/sieve/duplicates.sieve 'INBOX'
>
>
> But sieve-filter complains like this:
>
> info: msgid=<1231321313212312312...@p3enginer2.emv2.com>: left message
> in mailbox 'INBOX'.
> info: message kept in source mailbox.
> info: filtering: [Sun, 1 May 2011 16:41:46 +0100; 101297 bytes] `Cipo
> & Baxx, Nike Golf, Strenesse, al...'.
> roundcube2: line 3: warning: duplicate test: duplicate checking not
> available in this context.
> info: msgid=<1123123123123...@p3enginer3.emv2.com>: left message in
> mailbox 'INBOX'.
> info: message kept in source mailbox.
> info: filtering: [Sun, 28 Oct 2012 11:32:56 +0100; 1416 bytes]
> `DenyHosts Report for example.com'.
> roundcube2: line 3: warning: duplicate test: duplicate checking not
> available in this context.
>
>
> Is there a way, to refilter an existing mailbox and applying the
> duplicate extension?

Not with the sieve-filter tool at this time.

I guess you could use this hack:

http://wiki2.dovecot.org/HowTo/RefilterMail


Regards,

Steph


Re: maildirsize not correct

2016-08-26 Thread Aki Tuomi
Does it work if you do?


---Aki TuomiDovecot oy
 Original message From: Kamil Madac  
Date: 26/08/2016  20:51  (GMT+02:00) To: Aki Tuomi  Cc: 
dovecot@dovecot.org Subject: Re: maildirsize not correct 
Hi Aki,

No I do not use it.

On Thu, Aug 25, 2016 at 7:32 AM, Aki Tuomi  wrote:
Are you using quota_vsizes=yes?



Aki



On 24.08.2016 21:39, Kamil Madac wrote:

> Thanks, but this is most probably different issue. My maildirsize is

> computed incorrectly even if I delete it completely and let dovead

> recompute it so expunging is not in the game.

>

> Is there any way how to track/debug the recomputation algorithm in dovecot?

>

> On Wed, Aug 24, 2016 at 12:02 AM, WJCarpenter 

> wrote:

>

>> A long shot, but here's how I experienced similar symptoms:

>> http://www.dovecot.org/list/dovecot/2016-April/104091.html

>>

>>

>>

>> Kamil Madac wrote on 08/23/2016 02:02 PM:

>>

>>> Hi,

>>>

>>> One of my email accounts has 1,5gb of emails in INBOX, but maildirsize

>>> shows only 528mb. 'du' also shows 1,5gb and there are 3809 files in cur

>>> directory.

>>>

>>> When I use  mailbox status a can see correct values:

>>>

>>> doveadm -f table mailbox status -u u...@domain.sk "messages vsize" INBOX*

>>>   messages

>>> vsize

>>>

>>> INBOX   3809     1521049349

>>>

>>> but when I check the quotas with doveadm:

>>>

>>> doveadm quota get -u u...@domain.sk

>>> Quota name Type     Value

>>> Limit

>>> %

>>> User quota STORAGE 541391

>>> 2048000

>>> 26

>>> User quota MESSAGE    886

>>> -

>>> 0

>>>

>>> I tried to delete maildirsize, but it was recalculated again incorrectly.

>>>

>>> 2097152000S

>>> 554384829 886

>>>

>>> Dovecot version is 2.2.9 installed from packages on Ubuntu 14.04

>>> I have other accounts on server which are have no problems with

>>> maildirsize

>>> and quotas. Does anyone have same experience?

>>>

>>> Kamil

>>>

>




-- 
Kamil Madac




Re: maildirsize not correct

2016-08-26 Thread Kamil Madac
Hi Aki,

No I do not use it.

On Thu, Aug 25, 2016 at 7:32 AM, Aki Tuomi  wrote:

> Are you using quota_vsizes=yes?
>
> Aki
>
> On 24.08.2016 21:39, Kamil Madac wrote:
> > Thanks, but this is most probably different issue. My maildirsize is
> > computed incorrectly even if I delete it completely and let dovead
> > recompute it so expunging is not in the game.
> >
> > Is there any way how to track/debug the recomputation algorithm in
> dovecot?
> >
> > On Wed, Aug 24, 2016 at 12:02 AM, WJCarpenter <
> bill-dove...@carpenter.org>
> > wrote:
> >
> >> A long shot, but here's how I experienced similar symptoms:
> >> http://www.dovecot.org/list/dovecot/2016-April/104091.html
> >>
> >>
> >>
> >> Kamil Madac wrote on 08/23/2016 02:02 PM:
> >>
> >>> Hi,
> >>>
> >>> One of my email accounts has 1,5gb of emails in INBOX, but maildirsize
> >>> shows only 528mb. 'du' also shows 1,5gb and there are 3809 files in cur
> >>> directory.
> >>>
> >>> When I use  mailbox status a can see correct values:
> >>>
> >>> doveadm -f table mailbox status -u u...@domain.sk "messages vsize"
> INBOX*
> >>>   messages
> >>> vsize
> >>>
> >>> INBOX   3809 1521049349
> >>>
> >>> but when I check the quotas with doveadm:
> >>>
> >>> doveadm quota get -u u...@domain.sk
> >>> Quota name Type Value
> >>> Limit
> >>> %
> >>> User quota STORAGE 541391
> >>> 2048000
> >>> 26
> >>> User quota MESSAGE886
> >>> -
> >>> 0
> >>>
> >>> I tried to delete maildirsize, but it was recalculated again
> incorrectly.
> >>>
> >>> 2097152000S
> >>> 554384829 886
> >>>
> >>> Dovecot version is 2.2.9 installed from packages on Ubuntu 14.04
> >>> I have other accounts on server which are have no problems with
> >>> maildirsize
> >>> and quotas. Does anyone have same experience?
> >>>
> >>> Kamil
> >>>
> >
>



-- 
Kamil Madac 


Re: Help setting up IMAP account in Outlook 2016

2016-08-26 Thread Per Jessen
Per Jessen wrote:

> Spiro Angeli wrote:
> 
>> Hi,
>> I need help setting up properly mail clients for my email accounts
>> running on dovecot ver 2.2.18 on CentOS release 6.8 (Final) in
>> italian. I posted a forum thread where you can get all detail info:
>> this for better reading.
>> 
>> Forum thread subject: Help setting up IMAP account in Outlook 2016
>> Forum link:
>>
>
http://www.emailquestions.com/threads/help-setting-up-imap-account-in-outloo
>> k-2016.13439
>> 
>> I was advised to " ask dovecot list for help with the IMAP server. "
>> 
> 
> Hi Spiro
> 
> 
> IIRC, for a client accessing the same account in multiple languages
> (English on the iPhone, Italian from Outlook etc), you need to map the
> language-specific folder names to a single one.  E.g. "Posta inviata"
> to "Sent mail".  Look at /etc/dovecot/conf.d/15-mailboxes.conf

This is my 15-mailboxes.conf

namespace inbox {
  inbox = yes
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Trash {
special_use = \Trash
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
}



-- 
Per Jessen, Zürich (31.1°C)
http://www.hostsuisse.com/ - virtual servers, made in Switzerland.


lazy_expunge and public folder

2016-08-26 Thread Arne Hoffmann
Hi all, 


I stumbled upon the lazy_expunge plugin and thought that it might be useful in
some cases. It works fine if I delete mails from my inbox. But it doesn't do
anything if I deleted mails from a public folder (and for the server I am
currently working on the public folder is _the_ _main_ _feature_). 


Does lazy_expunge not work with public folders? Or am I using it wrong? 



root@imap01 [~]# doveconf -n
# 2.2.24 (a82c823): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.5 ext4
auth_debug = yes
auth_debug_passwords = yes
debug_log_path = /var/log/mail.debug
disable_plaintext_auth = no
doveadm_password =  # hidden, use -P to show it
doveadm_port = 22001
mail_debug = yes
mail_location = 
maildir:/var/mail/vmail/%d/%n/Maildir:INBOX=/var/mail/vmail/%d/%n/Maildir
mail_plugins = " listescape lazy_expunge notify replication"
mail_privileged_group = vmail
namespace {
  location = maildir:/var/mail/vmail/Öffentliche 
Ordner:INDEXPVT=~/Maildir/Öffentliche Ordner
  mailbox "Gelöschte Elemente" {
auto = subscribe
special_use = \Trash
  }
  mailbox MirrorServer-Projekt {
auto = subscribe
  }
  prefix = Öffentliche Ordner/
  separator = /
  subscriptions = no
  type = public
}
namespace {
  hidden = yes
  list = no
  location = maildir:~/Maildir/expunged
  prefix = .EXPUNGED/
  separator = /
}
namespace inbox {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
passdb {
  args = /etc/dovecot/mysql.conf
  driver = sql
}
plugin {
  lazy_expunge = .EXPUNGED/
  mail_replica = tcps:imap02.example.com
}
protocols = imap
service aggregator {
  fifo_listener replication-notify-fifo {
user = vmail
  }
  unix_listener replication-notify {
user = vmail
  }
}
service doveadm {
  inet_listener {
port = 22001
ssl = yes
  }
}
service replicator {
  process_min_avail = 1
  unix_listener replicator-doveadm {
group = vmail
mode = 0660
  }
}
ssl = required
ssl_ca = 

sieve-filter with duplicate-extension

2016-08-26 Thread hendrik

Hi,

i have imported a mailbox twice (accentially). Now i thought, it might 
be a valid approach to simply use a custom sieve rule to mark duplicates 
using the attached ruleset


I ran sieve-filter like this:

~# sieve-filter -e -W -v -C -u user...@example.com 
/var/vmail/example.com/userxyz/sieve/duplicates.sieve 'INBOX'



But sieve-filter complains like this:

info: msgid=<1231321313212312312...@p3enginer2.emv2.com>: left message 
in mailbox 'INBOX'.

info: message kept in source mailbox.
info: filtering: [Sun, 1 May 2011 16:41:46 +0100; 101297 bytes] `Cipo & 
Baxx, Nike Golf, Strenesse, al...'.
roundcube2: line 3: warning: duplicate test: duplicate checking not 
available in this context.
info: msgid=<1123123123123...@p3enginer3.emv2.com>: left message in 
mailbox 'INBOX'.

info: message kept in source mailbox.
info: filtering: [Sun, 28 Oct 2012 11:32:56 +0100; 1416 bytes] 
`DenyHosts Report for example.com'.
roundcube2: line 3: warning: duplicate test: duplicate checking not 
available in this context.



Is there a way, to refilter an existing mailbox and applying the 
duplicate extension?



Many thanks and best regards,
Hendrikrequire ["fileinto","imap4flags","regex","variables","vnd.dovecot.duplicate"];

if duplicate {
addflag "duplicate";
} else {
addflag "non-duplicate";
}


Re: Help setting up IMAP account in Outlook 2016

2016-08-26 Thread Per Jessen
Spiro Angeli wrote:

> Hi,
> I need help setting up properly mail clients for my email accounts
> running on dovecot ver 2.2.18 on CentOS release 6.8 (Final) in
> italian. I posted a forum thread where you can get all detail info:
> this for better reading.
> 
> Forum thread subject: Help setting up IMAP account in Outlook 2016
> Forum link:
>
http://www.emailquestions.com/threads/help-setting-up-imap-account-in-outloo
> k-2016.13439
> 
> I was advised to " ask dovecot list for help with the IMAP server. "
> 

Hi Spiro


IIRC, for a client accessing the same account in multiple languages
(English on the iPhone, Italian from Outlook etc), you need to map the
language-specific folder names to a single one.  E.g. "Posta inviata"
to "Sent mail".  Look at /etc/dovecot/conf.d/15-mailboxes.conf


HTH
Per

-- 
Per Jessen, Zürich (21.8°C)
http://www.dns24.ch/ - your free DNS host, made in Switzerland.