New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mailbox.BabylMailbox, missing headers #34252
Comments
I am playing around with mailbox.BabylMailbox to parse The following program: ------------------------------------------------------------------ #!/usr/bin/env python
import mailbox
mb = mailbox.BabylMailbox(
open("/home/students/kurlberg/ggg", "r"))
t = mb.next()
print t.headers
print "\nThe message-id is:", t.getheader("Message-ID") produces: ------------------------------------------------------------------ The message-id is: None The file ggg contains: (I replaced the real domain by --------- ggg start: 1,, *** EOOH *** Please try to submit any travel requests to the --------- End of ggg: On the other hand, message-id is found in the following -------- mail where message-id is 0, unseen,, Unusual System Events -------- end of mail where message-id is detected Is there a bug in mailbox/mailbox.BabylMailbox? P.S. The above program was run with python version Sorry about the ugly line breaks. |
Logged In: YES Ignore this. |
Logged In: YES What is actually happening is that the mailbox module is Babyl's a weird format in that for each message, you have I think it's fine for mailbox to return a mail message Attached is a suggested change to the mailbox module's |
Logged In: YES Documentation patch is accepted; please check in. |
Logged In: YES Patch checked in for libmailbox.tex 1.18 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: