Skip to content

Commit

Permalink
Drop unnecessary imports, make code comment domain agnostic.
Browse files Browse the repository at this point in the history
  • Loading branch information
anargam authored and Rovanion committed Jun 26, 2023
1 parent c477d2f commit af2a95c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lissmilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import django
from django.db.models import Q

import subprocess

connection_string = sys.argv[1]
mail_domain = sys.argv[2]

Expand Down Expand Up @@ -77,7 +75,7 @@ def envrcpt(self, mail_to, *str):
# Should only happen if no AssociationGroup called 'STYR' has been created yet
pass

# Check if sender is valid before discarding @studentspex.se addresses. A user sending 'from' @studentspex.se addresses should add this as an extra email in the database.
# Check if sender is valid before discarding any emails. A user sending 'from' the current domain, to an internal list, should add this as an extra email in the database.
if not valid_sender:
if f'@{mail_domain}' in self.envelope_from:
# https://pymilter.org/pymilter/namespacemilter.html#a4c8bad190cb7f54cea87f1182732ce83
Expand Down

0 comments on commit af2a95c

Please sign in to comment.