HomePhabricator

Move sender validation into MailReceiver classes

Description

Move sender validation into MailReceiver classes

Summary:
Ref T1205. Finally able to delete a big chunk of this nastiness.

Make MailReceivers responsible for validating senders. For object creation receivers (bugs, conpherences) this just means that users must not be disabled. For other receivers the senders must be able to see the objects, have the right hashes, etc., according to policy.

Test Plan: Added a bunch of test cases (everything except policy). Verified behavior via the Receive test console.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1205

Differential Revision: https://secure.phabricator.com/D5943

Details

Provenance
epriestleyAuthored on May 17 2013, 10:49 AM
Reviewer
btrahan
Differential Revision
Restricted Differential Revision
Parents
rP5243b0d65323: Move computeMailHash() to PhabricatorObjectMailReceiver
Branches
Unknown
Tags
Unknown
Tasks
T1205: Allow grey users in some form or other

Event Timeline