Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixSchwarz committed Oct 18, 2024
1 parent 20bbf5f commit 71153c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schwarz/mailqueue/queue_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def enqueue_message(msg, queue_path, sender, recipients, return_msg=False,

def inject_message_into_maildir(msg_bytes, maildir, sub_dir='new', return_msg=False):
tmp_fp = maildir._create_tmp()
print('tmp_fp: %r' % repr(tmp_fp))
try:
# Unfortunately, Python's `mailbox.Maildir._dump_message()` provides a
# weird API: \n is replaced with platform-native line endings even when
Expand Down Expand Up @@ -158,6 +159,7 @@ def delivery_successful(self):
@property
def msg(self):
if self._msg is None:
print('self.fp=%r' % self.fp)
if self.fp is None:
fp = open(self.file_path, 'rb')
close_fp = True
Expand Down

0 comments on commit 71153c4

Please sign in to comment.