-
Notifications
You must be signed in to change notification settings - Fork 8
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
Lots of headers that can't be parsed #34
Comments
They happen to me. My "get mail" script, which calls mairix to index after getting new email, pipes mairix output through: It always seems to be on MIME headers, which I never want to search, so I just ignore the errors. |
Thanks for the response. |
I looked into trying to figure out what was going wrong, but the C code made my eyes cross, so it was adapt or switch, and I couldn't find alternatives that met my requirements.
|
I decided to take a look at the code as well. During my very quick look, I see that one of the headers it complains about contains I'll try another example and see if anything else illuminating pops up. |
Another complaint mairix is making is because some mailers send out lines like I took a very quick look but didn't find out whether the quotes are required or not. (In this case the entire header group is
and it occurs to me that the rules could be different for multi-line headers as oppose to single-line headers. Anyone reading this know? |
In any case, to allow things like creation dates with unquoted strings I'd guess the NFA definition in nvp.nfa would have to be modified, and that might be a job best suited to either |
I just downloaded the .zip file and compiled mairix. When I run it (and this is the same as V0.24), I get many complaints about headers that can't be parsed. For example:
Header 'content-type: image/*; name="20221017_130844_resized.jpg"' in [89420989,90670144) could not be parsed
I'm not a mail wizard, but that looks OK to me.
A more lengthy example:
Header 'content-disposition: inline; filename="image004.png"; size=79197; creation-date=Fri, 06 May 2022 16:51:48 GMT; modification-date=Fri, 06 May 2022 20:09:01 GMT' in [28093802,28267769) could not be parsed
Q1: Is it just me, or is this happening to other people?
Q2: Are these complaints valid, or are they spurious?
Thanks.
The text was updated successfully, but these errors were encountered: