You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Blank line in header body invalid for netnews messageΒ #112
Pan newsreader uses GMIME to format messages sent to news servers.
Unfortunatelty, the RFC5536 is somewhat more restrictive than RFC5322 regarding header format (see pan #115).
For instance this header generated by GMIME may be considered as invalid by news server because the first line of the body of the header field is empty:
Just leaving this as information, a merge request was made 5 months ago to fix the issue but was submitted on GNOME's GitLab repository.
The contributor there should most likely send a pull request here instead in the future, but I'm simply informing that there's a fix awaiting its integration.
Has anyone had a chance to test my proposed patch? Unfortunately I'm stuck with Windows hardware and I don't think I have the space for a Linux VM due to all my installations of Visual Studio π
Activity
jstedfast commentedon Jan 11, 2022
As far as I can remember, there's no config option for this, but I would definitely accept a fix for this.
FoxMcCloud45 commentedon Jan 11, 2022
Just leaving this as information, a merge request was made 5 months ago to fix the issue but was submitted on GNOME's GitLab repository.
The contributor there should most likely send a pull request here instead in the future, but I'm simply informing that there's a fix awaiting its integration.
jstedfast commentedon Jan 11, 2022
Looks like that fix is for the References header only, but yes, if he submits it here, I would be able to approve & merge.
jstedfast commentedon Jan 11, 2022
FWIW, it looks like the place to fix this (in the general case, for e.g. the
X-Faceheader) would be in gmime-utils.c header_fold_tokens()jstedfast commentedon Jan 11, 2022
From a quick analysis, it looks like the fix would be something like this (untested):
ThomasNoll commentedon Jan 11, 2022
True, it is only for the References header. That is where the problem raised for me...
Pull requested ##113
I agree. And all the other special cases look like they are not relevant for netnews or usually short enough.
jstedfast commentedon Jan 18, 2022
Has anyone had a chance to test my proposed patch? Unfortunately I'm stuck with Windows hardware and I don't think I have the space for a Linux VM due to all my installations of Visual Studio π
I wonder if gmime would build under WSL...
dod38fr commentedon Jan 18, 2022
Hi
Sorry for the delay. Here's the X-Face header using Debian's gmime with your patch:
The good news is that there's no blank line after
X-Face:.On the other hand, the
X-Facedata no longer shows the=?us-ascii?strings. I do not know if this is expected or a problem.All the best
jstedfast commentedon Jan 28, 2022
@dod38fr Thanks for testing this. Unfortunately, I don't think that's the correct behavior so I'll need to rethink this.
Don't fold the first line of a header value
jstedfast commentedon Jan 29, 2022
Actually, I think it's fine.