Skip to content

improve quarantine_report#1270

Merged
endelwar merged 3 commits intomailwatch:1.2from
dneuhaeuser:report
Dec 12, 2022
Merged

improve quarantine_report#1270
endelwar merged 3 commits intomailwatch:1.2from
dneuhaeuser:report

Conversation

@dneuhaeuser
Copy link
Copy Markdown
Contributor

@dneuhaeuser dneuhaeuser commented Nov 8, 2022

Having administrator users defined with one or more filter addresses (e.g. automatically imported from LDAP with mailwatch_ldap_sync.sh) led to quarantine reports with duplicate lines.

So when the user type is 'A' we must NOT iterate through the filters because administrators get a report for every single recipient anyway.

Also the administrator's report had an incomplete headline because a suitable string was missing ($list_for was set empty).
I suggest using the system's hostname in this case.

For normal users, when sending combined reports the headline should only list the addresses which are contained in the current report. Otherwise this gets very messy when you have a lot of address filters defined for a user.

Having administrator users defined with one or more filter adresses (e.g. automatically imported from LDAP with mailwatch_ldap_sync.sh) led to quarantine reports with duplicate lines.

So when the user type is 'A' we must NOT iterate through the filters because administrators get a report for every single recipient anyway.

Also the administrator's report only had a partial headline because a suitable string was missing ($list_for was set empty). I suggest using the system's hostname in this case.

When sending _combined_ user reports the headline should only contain adresses which are contained in the currenct report. Otherwise this can get very messy when you have multiple adress filters defined for a user.
correct indentations
@dneuhaeuser dneuhaeuser marked this pull request as ready for review November 8, 2022 12:56
@ghost
Copy link
Copy Markdown

ghost commented Nov 8, 2022

Another great PR, thanks! I'll have some time this coming weekend to go over things.

@ghost
Copy link
Copy Markdown

ghost commented Dec 10, 2022

This one looks good, tested good as well.

@endelwar endelwar merged commit 57f412e into mailwatch:1.2 Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants