Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
best-practical
rt
Commits
8ad6d22a
Commit
8ad6d22a
authored
Sep 09, 2014
by
Alex Vandiver
Browse files
Merge branch '4.2/override-outgoing-mail-from' into 4.2-trunk
parents
80bcdcfd
f9c4caf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
etc/RT_Config.pm.in
etc/RT_Config.pm.in
+1
-1
lib/RT/Interface/Email.pm
lib/RT/Interface/Email.pm
+5
-4
No files found.
etc/RT_Config.pm.in
View file @
8ad6d22a
...
...
@@ -565,7 +565,7 @@ address of the queue as it is handed to sendmail -f. This helps force
the
From_
header
away
from
www
-
data
or
other
email
addresses
that
show
up
in
the
"Sent by"
line
in
Outlook
.
The
option
is
a
hash
reference
of
queue
name
to
email
address
.
If
The
option
is
a
hash
reference
of
queue
id
/
name
to
email
address
.
If
there
is
no
ticket
involved
,
then
the
value
of
the
C
<
Default
>
key
will
be
used
.
...
...
lib/RT/Interface/Email.pm
View file @
8ad6d22a
...
...
@@ -440,14 +440,15 @@ sub SendEmail {
my
$Overrides
=
RT
->
Config
->
Get
('
OverrideOutgoingMailFrom
')
||
{};
if
(
$TicketObj
)
{
my
$QueueName
=
$TicketObj
->
QueueObj
->
Name
;
my
$QueueAddressOverride
=
$Overrides
->
{
$QueueName
};
my
$Queue
=
$TicketObj
->
QueueObj
;
my
$QueueAddressOverride
=
$Overrides
->
{
$Queue
->
id
}
||
$Overrides
->
{
$Queue
->
Name
};
if
(
$QueueAddressOverride
)
{
$OutgoingMailAddress
=
$QueueAddressOverride
;
}
else
{
$OutgoingMailAddress
||=
$
TicketObj
->
Queue
Obj
->
CorrespondAddress
||
RT
->
Config
->
Get
('
CorrespondAddress
');
$OutgoingMailAddress
||=
$Queue
->
CorrespondAddress
||
RT
->
Config
->
Get
('
CorrespondAddress
');
}
}
elsif
(
$Overrides
->
{'
Default
'})
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment