Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
8b864940
Commit
8b864940
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #1247 from dlobo/CRM-13057
CRM-13057
parents
5419ad39
fb18363b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Mailing/Event/BAO/Reply.php
+4
-4
4 additions, 4 deletions
CRM/Mailing/Event/BAO/Reply.php
api/v3/Mailing.php
+1
-1
1 addition, 1 deletion
api/v3/Mailing.php
with
5 additions
and
5 deletions
CRM/Mailing/Event/BAO/Reply.php
+
4
−
4
View file @
8b864940
...
@@ -72,8 +72,8 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
...
@@ -72,8 +72,8 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
$mailings
=
CRM_Mailing_BAO_Mailing
::
getTableName
();
$mailings
=
CRM_Mailing_BAO_Mailing
::
getTableName
();
$jobs
=
CRM_Mailing_BAO_Job
::
getTableName
();
$jobs
=
CRM_Mailing_BAO_Job
::
getTableName
();
$mailing
->
query
(
$mailing
->
query
(
"SELECT * FROM
$mailings
"SELECT * FROM
$mailings
INNER JOIN
$jobs
INNER JOIN
$jobs
ON
$jobs
.mailing_id =
$mailings
.id
ON
$jobs
.mailing_id =
$mailings
.id
WHERE
$jobs
.id =
{
$q
->
job_id
}
"
WHERE
$jobs
.id =
{
$q
->
job_id
}
"
);
);
...
@@ -135,7 +135,7 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
...
@@ -135,7 +135,7 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
// CRM-5567: we need to set Reply-To: so that any response
// CRM-5567: we need to set Reply-To: so that any response
// to the forward goes to the sender of the reply
// to the forward goes to the sender of the reply
$parsed
->
setHeader
(
'Reply-To'
,
$replyto
instanceof
ezcMailAddress
?
$parsed
->
from
->
__toString
()
:
$replyto
);
$parsed
->
setHeader
(
'Reply-To'
,
$replyto
instanceof
ezcMailAddress
?
$replyto
:
$parsed
->
from
->
__toString
());
// $h must be an array, so we can't use generateHeaders()'s result,
// $h must be an array, so we can't use generateHeaders()'s result,
// but we have to regenerate the headers because we changed To
// but we have to regenerate the headers because we changed To
...
@@ -173,7 +173,7 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
...
@@ -173,7 +173,7 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
'Subject'
=>
"Re:
{
$mailing
->
subject
}
"
,
'Subject'
=>
"Re:
{
$mailing
->
subject
}
"
,
'To'
=>
$mailing
->
replyto_email
,
'To'
=>
$mailing
->
replyto_email
,
'From'
=>
$from
,
'From'
=>
$from
,
'Reply-To'
=>
empty
(
$replyto
)
?
$
dao
->
email
:
$replyto
,
'Reply-To'
=>
empty
(
$replyto
)
?
$
eq
->
email
:
$replyto
,
'Return-Path'
=>
"do-not-reply@
{
$emailDomain
}
"
,
'Return-Path'
=>
"do-not-reply@
{
$emailDomain
}
"
,
);
);
...
...
This diff is collapsed.
Click to expand it.
api/v3/Mailing.php
+
1
−
1
View file @
8b864940
...
@@ -162,7 +162,7 @@ function _civicrm_api3_mailing_event_reply_spec(&$params) {
...
@@ -162,7 +162,7 @@ function _civicrm_api3_mailing_event_reply_spec(&$params) {
$params
[
'job_id'
][
'api.required'
]
=
1
;
$params
[
'job_id'
][
'api.required'
]
=
1
;
$params
[
'event_queue_id'
][
'api.required'
]
=
1
;
$params
[
'event_queue_id'
][
'api.required'
]
=
1
;
$params
[
'hash'
][
'api.required'
]
=
1
;
$params
[
'hash'
][
'api.required'
]
=
1
;
$params
[
'replyTo'
][
'api.required'
]
=
1
;
$params
[
'replyTo'
][
'api.required'
]
=
0
;
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment