[CRM-21446] Allow case id as well as hash in inbound email processing to autofile emails on cases Created: 17/Nov/17  Updated: 04/Jan/18  Resolved: 24/Nov/17

Status: Done/Fixed
Project: CiviCRM
Component/s: CiviCase, CiviMail
Affects Version/s: 4.7.27
Fix Version/s: 4.7.30

Type: Patch Priority: Trivial
Reporter: Dave D Assignee: Jitendra Purohit
Resolution: Fixed/Completed Votes: 0
Labels: PatchSubmitted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File Activity.diff    
Versioning Impact: Minor (add functionality in backwards-compatible manner)
Documentation Required?: User and Admin Doc
Authorized Participants:
Jitendra Purohit
Funding Source: Needs Funding
Verified?: No


See https://civicrm.stackexchange.com/questions/21407/how-to-expose-the-civicase-hashed-value-that-gets-sent-in-subject-when-sending-a

Currently it only accepts a hash, which is not easily known unless they happen to be responding to an email send via the email icon in the case roles section on manage case. That can still stay but also allow emails that have

[case #1234]

in the subject to get processed onto the case id as entered (e.g. 1234).



Patch attached against master.

Comment by Jitendra Purohit [ 24/Nov/17 ]

Submitted a PR https://github.com/civicrm/civicrm-core/pull/11320

Comment by Coleman Watts [ 24/Nov/17 ]

The security implications of this change are that anyone with an email address can spam your system and have their emails filed on any case of their choosing.

Comment by Dave D [ 24/Nov/17 ]

It's a fair point but that's true of the email processor in general. If they know your email processor's email address, they can send non-case junk into civi too. Maybe just needs a documentation mention that the email processor address itself shouldn't be something easy to guess like "civicrm@myorg.org"?

Comment by Coleman Watts [ 24/Nov/17 ]

Ok. I have no other objections.

Comment by Jitendra Purohit [ 04/Jan/18 ]

Documentation added here - https://github.com/civicrm/civicrm-user-guide/pull/247

Generated at Mon Nov 19 00:37:50 UTC 2018 using JIRA 7.3.3#73014-sha1:d5be8da522213be2ca9ad7b043c51da6e4cc9754.