Re: Detecting last login IMAP and expire old messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2011-01-08 at 23:35 -0200, Lucas Zinato Carraro wrote: 
> Is there a way to get messages from a user account automatic expire if
> account is not in used for 6 months ?

Yes, set the "expire" annotation on the folder.  For example, we set
this to 365 on the user's sent-mail folder and to 14 for the users SPAM
folder.

You can also use the ipurge command, like -
EVENTS {
  ...
  sentPurge cmd="ipurge -s -X -f -d 365 user.*.sent-mail" at=0000
  trashPurge cmd="ipurge -s -X -f -d 45 user.*.Trash" at=0100
  spamPurge cmd="ipurge -s -X -f -d 14 user.*.SPAM" at=0200
  ...
} - in cyrus.conf


> ( i see last update, but this parameter is updated by lmtpd, pop login
> and etc ... )
> How is the best way to detect users that are not using your account ?
> -----------------------------------
> If not exist a simple sollution ,  i suggest to be implemented a
> annotate like:
> /vendor/cmu/cyrus-imapd/expirenoactive   <days>
> and a option for cyr_expire.
> --------------------------------------


----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux