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 d3c2546 commit 9ec30b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions schwarz/mailqueue/message_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def parse_message_envelope(fp):
parser._set_headersonly()
while True:
line = read_header_line(fp)
print('line: %r' % (line,))
if line == b'':
raise ValueError('Header "X-Queue-Meta-End" not found.')
parser.feed(line)
Expand Down
1 change: 1 addition & 0 deletions schwarz/mailqueue/queue_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def enqueue_message(msg, queue_path, sender, recipients, return_msg=False,
recipients=recipients,
**queue_args
)
print(repr(msg_bytes))
create_maildir_directories(queue_path)

mailbox = Maildir(queue_path)
Expand Down

0 comments on commit 9ec30b6

Please sign in to comment.