Page MenuHomePhorge

[WIP] Handle other mailrecipient objects in findObjectsByRecipientAddress()
Needs ReviewPublic

Authored by machniak on Jan 30 2023, 12:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 13, 8:41 AM
Unknown Object (File)
Fri, Sep 13, 8:40 AM
Unknown Object (File)
Fri, Sep 13, 8:36 AM
Unknown Object (File)
Sep 5 2024, 12:09 AM
Unknown Object (File)
Aug 31 2024, 11:06 PM
Unknown Object (File)
Aug 24 2024, 10:40 PM
Unknown Object (File)
Aug 24 2024, 1:17 PM
Unknown Object (File)
Aug 22 2024, 4:45 AM
Subscribers
Restricted Project

Details

Reviewers
mollekopf
Group Reviewers
Restricted Project
Summary

The function should return all mailrecipients not only users.

Maybe it needs an argument to return only these that implement senderPolicyFrameworkWhitelist()
on request.

Also, it probably should return all of them if e.g. there's an alias to a user and resource at the same time.

Test Plan

./phpunit

Diff Detail

Repository
rK kolab
Branch
dev/findObjectsByRecipientAddress
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 42971
Build 17270: arc lint + arc unit

Event Timeline

machniak created this revision.
This revision is now accepted and ready to land.Mar 23 2023, 7:54 AM

I didn't consider this diff complete. Before we merge this I'd like to know answers to my questions about the findObjectsByRecipientAddress() method:

  1. Does it needs an argument to return only these objects that implement senderPolicyFrameworkWhitelist() method?
  2. Should it return all objects if e.g. there's an alias to a user and resource at the same time? Right now it's the first found.

I didn't consider this diff complete. Before we merge this I'd like to know answers to my questions about the findObjectsByRecipientAddress() method:

  1. Does it needs an argument to return only these objects that implement senderPolicyFrameworkWhitelist() method?
  2. Should it return all objects if e.g. there's an alias to a user and resource at the same time? Right now it's the first found.

Do shared mail folders and recipients alike have greylisting settings at all?

Do shared mail folders and recipients alike have greylisting settings at all?

Nope, but they could have in future. Also, the method is used not only in the greylisting context. I don't really know all implications, but just looking at the method itself I felt it's incomplete.

Right now findObjectsByRecipientAddress() method is used in:

  1. PolicyController::senderPolicyFramework() where we check returned objects that implement 'senderPolicyFrameworkWhitelist` (i.e. right now only users).
  2. Policy/Greylist/Request::recipientFromRequest() where we just take the first object returned.
  • Merge branch 'master' into dev/findObjectsByRecipientAddress
This revision is now accepted and ready to land.May 30 2023, 3:10 PM