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)
Sun, Apr 21, 5:05 PM
Unknown Object (File)
Sun, Apr 21, 5:05 PM
Unknown Object (File)
Sun, Apr 21, 5:05 PM
Unknown Object (File)
Sat, Apr 20, 6:42 AM
Unknown Object (File)
Thu, Apr 18, 7:44 PM
Unknown Object (File)
Thu, Apr 18, 2:58 AM
Unknown Object (File)
Wed, Apr 17, 10:03 AM
Unknown Object (File)
Sat, Apr 13, 7:59 PM
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