We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05df5be commit 73d290bCopy full SHA for 73d290b
r2/r2/lib/emailer.py
@@ -190,6 +190,8 @@ def sendmail(email):
190
leave = False).render(style = "email")
191
# handle unknown types here
192
elif not email.body:
193
+ print ("Rejecting email with an empty body from %r and to %r"
194
+ % (email.fr_addr, email.to_addr))
195
email.set_sent(rejected = True)
196
continue
197
sendmail(email)
0 commit comments