Email improvements; name= and from= now synonymous (#738)

This commit is contained in:
Chris Caron
2022-11-05 16:37:57 -04:00
committed by GitHub
parent e7255df1da
commit 32992fa641
8 changed files with 300 additions and 93 deletions

View File

@@ -95,6 +95,12 @@ apprise_url_tests = (
'a' * 32, 'b' * 8, 'c' * 8), {
'instance': TypeError,
}),
# Use of both 'name' and 'from' together; these are synonymous
('mailgun://user@localhost.localdomain/{}-{}-{}?'
'from=jack@gmail.com&name=Jason<jason@gmail.com>'.format(
'a' * 32, 'b' * 8, 'c' * 8), {
'instance': NotifyMailgun}),
# headers
('mailgun://user@localhost.localdomain/{}-{}-{}'
'?+X-Customer-Campaign-ID=Apprise'.format(