Changeset - 9158aff702ed
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 3 months ago 2024-01-31 01:33:47
ben@sturm.com.au
usethesource: Fix typo in email signature
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
conservancy/usethesource/emails.py
Show inline comments
...
 
@@ -24,13 +24,13 @@ Released: {candidate.release_date}
 

	
 
To view this candidate and download the source and binary image, visit:
 
https://sfconservancy.org{reverse('usethesource:candidate', kwargs={'slug': candidate.slug})}
 

	
 
--
 
{signature}
 
(Via http//sfconservancy.org{reverse('usethesource:landing')})'''
 
(Via https://sfconservancy.org{reverse('usethesource:landing')})'''
 
    headers = {'Message-ID': candidate.email_message_id}
 
    return EmailMessage(subject, body, sender, to, headers=headers)
 

	
 

	
 
def make_comment_email(comment):
 
    """Email when a comment is added to a candidate."""
...
 
@@ -44,13 +44,13 @@ def make_comment_email(comment):
 

	
 
To view this candidate and download the source and binary image, visit:
 
https://sfconservancy.org{reverse('usethesource:candidate', kwargs={'slug': candidate.slug})}
 

	
 
--
 
{signature}
 
(Via http//sfconservancy.org{reverse('usethesource:landing')})'''
 
(Via https://sfconservancy.org{reverse('usethesource:landing')})'''
 
    headers = {'Message-ID': comment.email_message_id}
 
    if in_reply_to := comment.in_reply_to():
 
        # From my testing, both "In-Reply-To" and "References" headers trigger
 
        # email threading in Thunderbind. Sticking to "In-Reply-To" for now.
 
        headers['In-Reply-To'] = in_reply_to
 
    return EmailMessage(subject, body, sender, to, headers=headers)
0 comments (0 inline, 0 general)