Retention uses "arrived" date instead of "sent" when using pilerimport

Issue #974 resolved
Martin Florian created an issue

We are switching to piler and trying to import old Mails from the current archive. When using pilerimport and pilertest the correct retention rule is applied. But the metadata table shows, that the retention date is calculated by the arrived date and not the sent date. This will cause old mails from our archive to get wrong retention dates.

In this example a retention period of almost 7 years is correctly applied. But in my opinion it has to be applied to the sent date so that the retention date would then be 2019-11-03.

Is this a bug or a feature request?

Comments (3)

  1. Janos SUTO repo owner

    Please get the latest master branch (or apply this fix), and it should add the retention value to the sent date. Let me know how it goes.

  2. Log in to comment