Re: User-configurable time-based mail deletion in specific folders

2024-03-11 Thread Tom Hendrikx via dovecot

Hi,

A bit late to the party, but I just ran into some docs that say that 
protonmail has a sieve extension that supports this: 
https://proton.me/support/sieve-advanced-custom-filters#managing-expiration. 
I'm not finding any source code though...


Kind regards,

Tom

On 25-02-2024 17:14, Aki Tuomi via dovecot wrote:

Hi!
  
You could return from userdb namespace/foo/mailbox/bar/autoexpunge=15d
  
to set per-user per-mailbox retention policies.
  
Aki

  On 25/02/2024 10:38 EET Rupert Gallagher via dovecot
   wrote:
   
   
   Things like this should be done locally on the Mailclient

   (MUA), IMHO.
   
  If you are a company, then you must delete old e-mails automatically,

  by GDPR law.
   
   Original Message 

  On Feb 21, 2024, 23:25, Steven Varco < dovecot@bbs.varco.ch>
  wrote:
   
   Am 21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I

   have been wondering about if Dovecot has a feature that
   would allow users to > setup a rule for a given folder,
   that mails older than X days should be > deleted? > Or is >
   this something that would need to be done by an external
   script? Yes. It goes beyond of what I expect from an IMAP
   server. > I have looked a bit at autoexpunge, and while the
   basic feature looks to be > what I need, it doesn't seem to
   be configurable down to a specific folder on a > single
   user. Things like this should be done locally on the
   Mailclient (MUA), IMHO. Steven -- https://steven.varco.ch/
   https://www.tech-island.com/
   ___ dovecot
   mailing list -- dovecot@dovecot.org To unsubscribe send an
   email to dovecot-le...@dovecot.org
   Things like this should be done locally on the Mailclient
   (MUA), IMHO.
   
  If you are a company, then you must delete old e-mails automatically,

  by GDPR
  law.
   
   
   
   Original Message 

  On Feb 21, 2024, 23:25, Steven Varco < dovecot@bbs.varco.ch>
  wrote:
   
   Am 21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I

   have been
  wondering about if Dovecot has a feature that would allow users to >
  setup a
  rule for a given folder, that mails older than X days should be >
  deleted? > Or
  is > this something that would need to be done by an external script?
  Yes. It
  goes beyond of what I expect from an IMAP server. > I have looked a
  bit at
  autoexpunge, and while the basic feature looks to be > what I need,
  it doesn't
  seem to be configurable down to a specific folder on a > single user.
  Things
  like this should be done locally on the Mailclient (MUA), IMHO.
  Steven -
  - https://steven.varco.ch/ https://www.tech-island.com/
  ___ dovecot mailing list
  -
  - dovecot@dovecot.org To unsubscribe send an email to dovecot-
  le...@dovecot.org
   
  ___

  dovecot mailing list -- dovecot@dovecot.org
  To unsubscribe send an email to dovecot-le...@dovecot.org
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: User-configurable time-based mail deletion in specific folders

2024-02-29 Thread Rupert Gallagher via dovecot
This is not a legal forum. My advice is to read the original GDPR law. The UK-
GDPR is not GDPR.

The original question was how to delete mails after a specified amount of time.
Let us stay on the tecnical side, and leave the legal masturbation to lawyers.

 Original Message 
On Feb 28, 2024, 12:50, Tim Dickson via dovecot < dovecot@dovecot.org> wrote:

 Agreed, although it doesn't apply to sending emails from non European
 citizens, only mailboxes containing European citizens' emails. It's
 only enforceable if the citizenship of the holder of the mailbox is
 known. However, the assertion that if you are a company you are
 required to delete old emails automatically according to GDPR is not
 correct. In the UK which was aligned with the European GDPR there is
 no such requirement; in fact, for accounting and some legal reasons
 you are required to keep records for 6-7years, so if those records eg
 orders, are emails or attachments in emails they should be kept.
 https://www.ionos.co.uk/startupguide/grow-your-business/retention-
 periods-for-business-records/ (the email retention section) It is
 probably more an individual company policy using GDPR as an "excuse".
 That is very commonly used as a reason why a company can or cannot do
 something, regardless of the actual GDPR law. In this case, probably
 to keep user's mail boxes down to a sensible size, although based on
 the above info, they may be breaking other laws by deleting emails.
 You can look up the actual gdpr requirements if you are interested.
 the uk version is here https://ico.org.uk/for-organisations/uk-gdpr-
 guidance-and-resources/data-protection-principles/a-guide-to-the-
 data-protection-principles/the-principles/storage-limitation/ which
 show you can keep data as emails as long as you want, providing you
 have a reason. regards, Tim On 28/02/2024 09:38, Rupert Gallagher via
 dovecot wrote: >> First, dovecot is a global product, where not every
 company has to take care > about european nonense laws > > Not true.
 > > If you are a non-European company with European customers, then
 you are subject > to GDPR law. > > > >  Original Message 
  > On Feb 25, 2024, 16:35, Steven Varco <
 dovecot@bbs.varco.ch> wrote: > > > Am 25.02.2024 um 09:38 schrieb
 Rupert Gallagher via dovecot > dovecot.org>: > > >> Things like this
 should be done locally on the > Mailclient (MUA), IMHO. > > If you
 are a company, then you must > delete old e-mails automatically, by
 GDPR > law. In this case it > comes back to that this is better done
 by an external script. First, > dovecot is a global product, where
 not every company has to take care > about european nonense laws. :
 P Second, I would not want dovecot to > become a „fullsize all in one
 solution for everything“ (like MS > Exchange). I like the concept of
 doing one thing only, but doing this > good. Steven > > > ---
 - Original Message  > On Feb 21, > 2024, 23:25, Steven Varco
 < dovecot@bbs.varco.ch> wrote: > >> Am > 21.02.2024 um 21:25
 schrieb Peter Reinhold : > > Hi > I have been > > wondering about if
 Dovecot has a feature that would allow users to > > setup a > rule
 for a given folder, that mails older than X days > should be >
 deleted? > Or > is > this something that would need to be > done by
 an external script? Yes. It > goes beyond of what I expect > from an
 IMAP server. > I have looked a bit at > autoexpunge, and > while the
 basic feature looks to be > what I need, it doesn't > seem > to be
 configurable down to a specific folder on a > single user. > Things >
 like this should be done locally on the Mailclient (MUA), > IMHO.
 Steven - > - https://steven.varco.ch/ https://www.tech- > island.com/
 > ___ dovecot > mailing
 list - > - dovecot@dovecot.org To unsubscribe send an email > to
 dovecot-le...@dovecot.org > > >
 ___ > dovecot mailing >
 list -- dovecot@dovecot.org > To unsubscribe send an email to >
 dovecot-le...@dovecot.org >
 ___ dovecot mailing list
 > -- dovecot@dovecot.org To unsubscribe send an email to dovecot- >
 le...@dovecot.org > > ___
 > dovecot mailing list -- dovecot@dovecot.org > To unsubscribe send
 an email to dovecot-le...@dovecot.org
 ___ dovecot mailing list
 -- dovecot@dovecot.org To unsubscribe send an email to dovecot-
 le...@dovecot.org
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: User-configurable time-based mail deletion in specific folders

2024-02-28 Thread Tim Dickson via dovecot
Agreed, although it doesn't apply to sending emails from non European 
citizens, only mailboxes containing European citizens' emails.
It's only enforceable if the citizenship of the holder of the mailbox is 
known.


However, the assertion that if you are a company you are required to 
delete old emails automatically according to GDPR is
not correct. In the UK which was aligned with the European GDPR there is 
no such requirement; in fact, for accounting
and some legal reasons you are required to keep records for 6-7years, so 
if those records eg orders, are emails or attachments in emails they 
should be kept.
https://www.ionos.co.uk/startupguide/grow-your-business/retention-periods-for-business-records/ 
(the email retention section)


It is probably more an individual company policy using GDPR as an 
"excuse". That is very commonly used as a reason
why a company can or cannot do something, regardless of the actual GDPR 
law.
In this case, probably to keep user's mail boxes down to a sensible 
size, although based on the above info, they may be breaking other laws 
by deleting emails.


You can look up the actual gdpr requirements if you are interested. the 
uk version is here

https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/data-protection-principles/a-guide-to-the-data-protection-principles/the-principles/storage-limitation/
which show you can keep data as emails as long as you want, providing 
you have a reason.


regards, Tim

On 28/02/2024 09:38, Rupert Gallagher via dovecot wrote:

First, dovecot is a global product, where not every company has to take care

about european nonense laws

Not true.

If you are a non-European company with European customers, then you are subject
to GDPR law.



 Original Message 
On Feb 25, 2024, 16:35, Steven Varco < dovecot@bbs.varco.ch> wrote:

  > Am 25.02.2024 um 09:38 schrieb Rupert Gallagher via dovecot
  dovecot.org>: > > >> Things like this should be done locally on the
  Mailclient (MUA), IMHO. > > If you are a company, then you must
  delete old e-mails automatically, by GDPR > law. In this case it
  comes back to that this is better done by an external script. First,
  dovecot is a global product, where not every company has to take care
  about european nonense laws. :P Second, I would not want dovecot to
  become a „fullsize all in one solution for everything“ (like MS
  Exchange). I like the concept of doing one thing only, but doing this
  good. Steven > > >  Original Message  > On Feb 21,
  2024, 23:25, Steven Varco < dovecot@bbs.varco.ch> wrote: > >> Am
  21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I have been >
  wondering about if Dovecot has a feature that would allow users to >
  setup a > rule for a given folder, that mails older than X days
  should be > deleted? > Or > is > this something that would need to be
  done by an external script? Yes. It > goes beyond of what I expect
  from an IMAP server. > I have looked a bit at > autoexpunge, and
  while the basic feature looks to be > what I need, it doesn't > seem
  to be configurable down to a specific folder on a > single user.
  Things > like this should be done locally on the Mailclient (MUA),
  IMHO. Steven - > - https://steven.varco.ch/ https://www.tech-
  island.com/ > ___ dovecot
  mailing list - > - dovecot@dovecot.org To unsubscribe send an email
  to dovecot-le...@dovecot.org > >
  ___ > dovecot mailing
  list -- dovecot@dovecot.org > To unsubscribe send an email to
  dovecot-le...@dovecot.org
  ___ dovecot mailing list
  -- dovecot@dovecot.org To unsubscribe send an email to dovecot-
  le...@dovecot.org

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: User-configurable time-based mail deletion in specific folders

2024-02-28 Thread Rupert Gallagher via dovecot
> First, dovecot is a global product, where not every company has to take care
about european nonense laws

Not true.

If you are a non-European company with European customers, then you are subject
to GDPR law.



 Original Message 
On Feb 25, 2024, 16:35, Steven Varco < dovecot@bbs.varco.ch> wrote:

 > Am 25.02.2024 um 09:38 schrieb Rupert Gallagher via dovecot
 dovecot.org>: > > >> Things like this should be done locally on the
 Mailclient (MUA), IMHO. > > If you are a company, then you must
 delete old e-mails automatically, by GDPR > law. In this case it
 comes back to that this is better done by an external script. First,
 dovecot is a global product, where not every company has to take care
 about european nonense laws. :P Second, I would not want dovecot to
 become a „fullsize all in one solution for everything“ (like MS
 Exchange). I like the concept of doing one thing only, but doing this
 good. Steven > > >  Original Message  > On Feb 21,
 2024, 23:25, Steven Varco < dovecot@bbs.varco.ch> wrote: > >> Am
 21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I have been >
 wondering about if Dovecot has a feature that would allow users to >
 setup a > rule for a given folder, that mails older than X days
 should be > deleted? > Or > is > this something that would need to be
 done by an external script? Yes. It > goes beyond of what I expect
 from an IMAP server. > I have looked a bit at > autoexpunge, and
 while the basic feature looks to be > what I need, it doesn't > seem
 to be configurable down to a specific folder on a > single user.
 Things > like this should be done locally on the Mailclient (MUA),
 IMHO. Steven - > - https://steven.varco.ch/ https://www.tech-
 island.com/ > ___ dovecot
 mailing list - > - dovecot@dovecot.org To unsubscribe send an email
 to dovecot-le...@dovecot.org > >
 ___ > dovecot mailing
 list -- dovecot@dovecot.org > To unsubscribe send an email to
 dovecot-le...@dovecot.org
 ___ dovecot mailing list
 -- dovecot@dovecot.org To unsubscribe send an email to dovecot-
 le...@dovecot.org
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: User-configurable time-based mail deletion in specific folders

2024-02-25 Thread Steven Varco

> Am 25.02.2024 um 16:58 schrieb William Edwards via dovecot 
> :
> 
>> 
>> Op 25 feb 2024 om 16:51 heeft Steven Varco  het 
>> volgende geschreven:
>> 
>> 
 Am 25.02.2024 um 09:38 schrieb Rupert Gallagher via dovecot 
 :
 
 
 Things like this should be done locally on the Mailclient (MUA), IMHO.
>>> 
>>> If you are a company, then you must delete old e-mails automatically, by 
>>> GDPR
>>> law.
>> 
>> In this case it comes back to that this is better done by an external script.
>> 
>> First, dovecot is a global product, where not every company has to take care 
>> about european nonense laws. :P
> 
> Ouch. GDPR is objectively not nonsense. 

I forgot to write that this is my (humble) opinion.
Personally, if write an email to anyone I don’t care what happens with that 
mail and how long it is stored. If I would care, I would not write that email.

OT: Beyond that I also hate clicking on „accept cookies“ on any f*cking web 
page I visit. It is something that I could just as good set in my browsers 
cookie saving policy, if I cared.

Steven

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Fw: User-configurable time-based mail deletion in specific folders

2024-02-25 Thread Aki Tuomi via dovecot
Hi!
 
You could return from userdb namespace/foo/mailbox/bar/autoexpunge=15d
 
to set per-user per-mailbox retention policies.
 
Aki
 On 25/02/2024 10:38 EET Rupert Gallagher via dovecot
  wrote:
  
  
  Things like this should be done locally on the Mailclient
  (MUA), IMHO.
  
 If you are a company, then you must delete old e-mails automatically,
 by GDPR law.
  
  Original Message 
 On Feb 21, 2024, 23:25, Steven Varco < dovecot@bbs.varco.ch>
 wrote:
  
  Am 21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I
  have been wondering about if Dovecot has a feature that
  would allow users to > setup a rule for a given folder,
  that mails older than X days should be > deleted? > Or is >
  this something that would need to be done by an external
  script? Yes. It goes beyond of what I expect from an IMAP
  server. > I have looked a bit at autoexpunge, and while the
  basic feature looks to be > what I need, it doesn't seem to
  be configurable down to a specific folder on a > single
  user. Things like this should be done locally on the
  Mailclient (MUA), IMHO. Steven -- https://steven.varco.ch/
  https://www.tech-island.com/
  ___ dovecot
  mailing list -- dovecot@dovecot.org To unsubscribe send an
  email to dovecot-le...@dovecot.org
  Things like this should be done locally on the Mailclient
  (MUA), IMHO.
  
 If you are a company, then you must delete old e-mails automatically,
 by GDPR
 law.
  
  
  
  Original Message 
 On Feb 21, 2024, 23:25, Steven Varco < dovecot@bbs.varco.ch>
 wrote:
  
  Am 21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I
  have been
 wondering about if Dovecot has a feature that would allow users to >
 setup a
 rule for a given folder, that mails older than X days should be >
 deleted? > Or
 is > this something that would need to be done by an external script?
 Yes. It
 goes beyond of what I expect from an IMAP server. > I have looked a
 bit at
 autoexpunge, and while the basic feature looks to be > what I need,
 it doesn't
 seem to be configurable down to a specific folder on a > single user.
 Things
 like this should be done locally on the Mailclient (MUA), IMHO.
 Steven -
 - https://steven.varco.ch/ https://www.tech-island.com/
 ___ dovecot mailing list
 -
 - dovecot@dovecot.org To unsubscribe send an email to dovecot-
 le...@dovecot.org
  
 ___
 dovecot mailing list -- dovecot@dovecot.org
 To unsubscribe send an email to dovecot-le...@dovecot.org
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: User-configurable time-based mail deletion in specific folders

2024-02-25 Thread William Edwards via dovecot

> Op 25 feb 2024 om 16:51 heeft Steven Varco  het 
> volgende geschreven:
> 
> 
>>> Am 25.02.2024 um 09:38 schrieb Rupert Gallagher via dovecot 
>>> :
>>> 
>>> 
>>> Things like this should be done locally on the Mailclient (MUA), IMHO.
>> 
>> If you are a company, then you must delete old e-mails automatically, by GDPR
>> law.
> 
> In this case it comes back to that this is better done by an external script.
> 
> First, dovecot is a global product, where not every company has to take care 
> about european nonense laws. :P

Ouch. GDPR is objectively not nonsense. 

> Second, I would not want dovecot to become a „fullsize all in one solution 
> for everything“ (like MS Exchange). I like the concept of doing one thing 
> only, but doing this good.
> 
> Steven
> 
> 
>> 
>> 
>>  Original Message 
>>> On Feb 21, 2024, 23:25, Steven Varco < dovecot@bbs.varco.ch> wrote:
>>> 
>>> Am 21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I have been
>> wondering about if Dovecot has a feature that would allow users to > setup a
>> rule for a given folder, that mails older than X days should be > deleted? > 
>> Or
>> is > this something that would need to be done by an external script? Yes. It
>> goes beyond of what I expect from an IMAP server. > I have looked a bit at
>> autoexpunge, and while the basic feature looks to be > what I need, it 
>> doesn't
>> seem to be configurable down to a specific folder on a > single user. Things
>> like this should be done locally on the Mailclient (MUA), IMHO. Steven -
>> - https://steven.varco.ch/ https://www.tech-island.com/
>> ___ dovecot mailing list -
>> - dovecot@dovecot.org To unsubscribe send an email to 
>> dovecot-le...@dovecot.org
>> 
>> ___
>> dovecot mailing list -- dovecot@dovecot.org
>> To unsubscribe send an email to dovecot-le...@dovecot.org
> 
> ___
> dovecot mailing list -- dovecot@dovecot.org
> To unsubscribe send an email to dovecot-le...@dovecot.org

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: User-configurable time-based mail deletion in specific folders

2024-02-25 Thread Steven Varco

> Am 25.02.2024 um 09:38 schrieb Rupert Gallagher via dovecot 
> :
> 
> 
>> Things like this should be done locally on the Mailclient (MUA), IMHO.
> 
> If you are a company, then you must delete old e-mails automatically, by GDPR
> law.

In this case it comes back to that this is better done by an external script.

First, dovecot is a global product, where not every company has to take care 
about european nonense laws. :P
Second, I would not want dovecot to become a „fullsize all in one solution for 
everything“ (like MS Exchange). I like the concept of doing one thing only, but 
doing this good.

Steven


> 
> 
>  Original Message 
> On Feb 21, 2024, 23:25, Steven Varco < dovecot@bbs.varco.ch> wrote:
> 
>> Am 21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I have been
> wondering about if Dovecot has a feature that would allow users to > setup a
> rule for a given folder, that mails older than X days should be > deleted? > 
> Or
> is > this something that would need to be done by an external script? Yes. It
> goes beyond of what I expect from an IMAP server. > I have looked a bit at
> autoexpunge, and while the basic feature looks to be > what I need, it doesn't
> seem to be configurable down to a specific folder on a > single user. Things
> like this should be done locally on the Mailclient (MUA), IMHO. Steven -
> - https://steven.varco.ch/ https://www.tech-island.com/
> ___ dovecot mailing list -
> - dovecot@dovecot.org To unsubscribe send an email to 
> dovecot-le...@dovecot.org
> 
> ___
> dovecot mailing list -- dovecot@dovecot.org
> To unsubscribe send an email to dovecot-le...@dovecot.org

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Fw: User-configurable time-based mail deletion in specific folders

2024-02-25 Thread Rupert Gallagher via dovecot

> Things like this should be done locally on the Mailclient (MUA), IMHO.

If you are a company, then you must delete old e-mails automatically, by GDPR
law.



 Original Message 
On Feb 21, 2024, 23:25, Steven Varco < dovecot@bbs.varco.ch> wrote:

> Am 21.02.2024 um 21:25 schrieb Peter Reinhold : > > Hi > I have been
wondering about if Dovecot has a feature that would allow users to > setup a
rule for a given folder, that mails older than X days should be > deleted? > Or
is > this something that would need to be done by an external script? Yes. It
goes beyond of what I expect from an IMAP server. > I have looked a bit at
autoexpunge, and while the basic feature looks to be > what I need, it doesn't
seem to be configurable down to a specific folder on a > single user. Things
like this should be done locally on the Mailclient (MUA), IMHO. Steven -
- https://steven.varco.ch/ https://www.tech-island.com/
___ dovecot mailing list -
- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: User-configurable time-based mail deletion in specific folders

2024-02-21 Thread Steven Varco


> Am 21.02.2024 um 21:25 schrieb Peter Reinhold :
> 
> Hi
> I have been wondering about if Dovecot has a feature that would allow users to
> setup a rule for a given folder, that mails older than X days should be
> deleted?

> Or is
> this something that would need to be done by an external script?

Yes. It goes beyond of what I expect from an IMAP server.


> I have looked a bit at autoexpunge, and while the basic feature looks to be
> what I need, it doesn't seem to be configurable down to a specific folder on a
> single user.

Things like this should be done locally on the Mailclient (MUA), IMHO.

Steven

-- 
https://steven.varco.ch/ 
https://www.tech-island.com/ 

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


User-configurable time-based mail deletion in specific folders

2024-02-21 Thread Peter Reinhold
Hi
I have been wondering about if Dovecot has a feature that would allow users to
setup a rule for a given folder, that mails older than X days should be
deleted?
Or is this something that would need to be done by an external script?
I have looked a bit at autoexpunge, and while the basic feature looks to be
what I need, it doesn't seem to be configurable down to a specific folder on a
single user.

--
Peter Reinhold
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org