Skip to content
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

MessageWaitingContents: skip body lines which do not match rfc 3842. #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhcloos
Copy link

@jhcloos jhcloos commented Apr 11, 2017

If the line matches /^[fmnptv/i but does not match /^\w+-Message:/
it is skiped.

This ignores lines like /^Voicemail: \d+/\d+$/ from before rfc 3842
which some software still send for backward compatibility.

Signed-off-by: James Cloos cloos@jhcloos.com

If the line matches /^[fmnptv/i but does not match /^\w+-Message:/
it is skiped.

This ignores lines like /^Voicemail: \d+/\d+$/ from before rfc 3842
which some software still send for backward compatibility.

Signed-off-by: James Cloos <cloos@jhcloos.com>
@sgodin
Copy link
Member

sgodin commented Apr 11, 2017

Hmmm, this isn't quite what I was picturing when I suggested it. I thought you were suggesting to look for the entire header string (case insensitive) instead of just the first letter for all header types.

I'm not sure I like the solution you presented. It took me a while to figure out exactly what you were doing here, and the fact that all the headers actually contain the word Message somewhere in them. With the exception of the none type - that I don't believe will work at all now.

Can you change this to tokenize the header name first, then do a case insensitve compare (on the full header text) for each accepted type to assign the ht (header type) to it? If the header token is not recognized, then we will can happily ignore it.

@jhcloos
Copy link
Author

jhcloos commented Apr 12, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants