-
Notifications
You must be signed in to change notification settings - Fork 937
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Mail::Exim, forgotten in 4875bc2
The parameters of Mail::Sendmail.call changed in 4875bc2 but Mail::Exim was not changed accordingly. Backport to 2-5-stable References #689
- Loading branch information
Showing
4 changed files
with
35 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ Security: | |
|
||
Bugs: | ||
* #633 – Cope with message parts that have an empty Content-Type (ThomasKoppensteiner, zeepeeare) | ||
* #689 - Fix Exim delivery method broken by #477 in 2.5.4. (jethrogb) | ||
|
||
== Version 2.5.4 - Tue May 14 14:45:00 +1100 2013 Mikel Lindsaar <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,11 +26,9 @@ | |
to '[email protected], [email protected]' | ||
subject 'invalid RFC2822' | ||
end | ||
|
||
Mail::Exim.should_receive(:call).with('/usr/sbin/exim', | ||
'-i -t -f "[email protected]" --', | ||
'"[email protected]" "[email protected]"', | ||
mail.encoded) | ||
|
||
Mail::Sendmail.should_receive(:call).with('/usr/sbin/exim', '-i -t -f "[email protected]" --', nil, mail.encoded) | ||
|
||
mail.deliver! | ||
end | ||
|
||
|
@@ -50,14 +48,10 @@ | |
message_id "<[email protected]>" | ||
body "body" | ||
end | ||
|
||
Mail::Exim.should_receive(:call).with('/usr/sbin/exim', | ||
'-i -t -f "[email protected]" --', | ||
'"[email protected]"', | ||
mail.encoded) | ||
|
||
mail.deliver | ||
|
||
Mail::Sendmail.should_receive(:call).with('/usr/sbin/exim', '-i -t -f "[email protected]" --', nil, mail.encoded) | ||
|
||
mail.deliver | ||
end | ||
|
||
it "should use the sender address is no return path is specified" do | ||
|
@@ -74,14 +68,9 @@ | |
body "body" | ||
end | ||
|
||
Mail::Exim.should_receive(:call).with('/usr/sbin/exim', | ||
'-i -t -f "[email protected]" --', | ||
'"[email protected]"', | ||
mail.encoded) | ||
|
||
mail.deliver | ||
end | ||
|
||
it "should use the from address is no return path or sender are specified" do | ||
Mail.defaults do | ||
delivery_method :exim | ||
|
@@ -95,10 +84,8 @@ | |
body "body" | ||
end | ||
|
||
Mail::Exim.should_receive(:call).with('/usr/sbin/exim', | ||
'-i -t -f "[email protected]" --', | ||
'"[email protected]"', | ||
mail.encoded) | ||
Mail::Sendmail.should_receive(:call).with('/usr/sbin/exim', '-i -t -f "[email protected]" --', nil, mail.encoded) | ||
|
||
mail.deliver | ||
end | ||
|
||
|
@@ -115,10 +102,8 @@ | |
body 'body' | ||
end | ||
|
||
Mail::Exim.should_receive(:call).with('/usr/sbin/exim', | ||
'-i -t -f "\"from+suffix test\"@test.lindsaar.net" --', | ||
'"[email protected]"', | ||
mail.encoded) | ||
Mail::Sendmail.should_receive(:call).with('/usr/sbin/exim', '-i -t -f "\"from+suffix test\"@test.lindsaar.net" --', nil, mail.encoded) | ||
|
||
mail.deliver | ||
end | ||
|
||
|
@@ -132,10 +117,8 @@ | |
from '[email protected]' | ||
end | ||
|
||
Mail::Exim.should_receive(:call).with('/usr/sbin/exim', | ||
'-i -t -f "[email protected]" --', | ||
'"[email protected]"', | ||
mail.encoded) | ||
Mail::Sendmail.should_receive(:call).with('/usr/sbin/exim', '-i -t -f "[email protected]" --', nil, mail.encoded) | ||
|
||
mail.deliver | ||
end | ||
end | ||
|
@@ -151,10 +134,8 @@ | |
subject 'invalid RFC2822' | ||
end | ||
|
||
Mail::Exim.should_receive(:call).with('/usr/sbin/exim', | ||
' -f "[email protected]" --', | ||
'"[email protected]" "[email protected]"', | ||
mail.encoded) | ||
Mail::Sendmail.should_receive(:call).with('/usr/sbin/exim', ' -f "[email protected]" --', nil, mail.encoded) | ||
|
||
mail.deliver! | ||
end | ||
|
||
|
@@ -168,11 +149,13 @@ | |
to '[email protected]' | ||
subject 'invalid RFC2822' | ||
end | ||
|
||
Mail::Exim.should_receive(:call).with('/usr/sbin/exim', | ||
" -f \"\\\"foo\\\\\\\"\\;touch /tmp/PWNED\\;\\\\\\\"\\\"@blah.com\" --", | ||
'"[email protected]"', | ||
mail.encoded) | ||
|
||
Mail::Sendmail.should_receive(:call).with( | ||
'/usr/sbin/exim', | ||
" -f \"\\\"foo\\\\\\\"\\;touch /tmp/PWNED\\;\\\\\\\"\\\"@blah.com\" --", | ||
nil, | ||
mail.encoded) | ||
|
||
mail.deliver! | ||
end | ||
|
||
|