Incorrect inclusion of multiline headers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VM |
Invalid
|
Undecided
|
Uday Reddy |
Bug Description
Using: vm-8.1.1
Debug trace:
Debugger entered--Lisp error: (error "Invalid header line (maybe a continuation line lacks initial whitespace)")
signal(error ("Invalid header line (maybe a continuation line lacks initial whitespace)"))
error("Invalid header line (maybe a continuation line lacks initial whitespace)")
mail-send()
vm-mail-send()
vm-mail-
call-
Reproduce: To reproduce you need a message from a mailer which does not format its headers correctly.
Some mailers include multiline headers without a space character indicate continuation of the header. For example
References: <xxxxxxxxxxxxxxxx>
<xxxxxxxxxxx>
The second line should be indented preferrably be a tab.
I suggest (I am not an expert on mail syntax) the following in vm-mail-
(save-excursion
(goto-char (point-min))
(while (not (looking-at "--text follows"))
(forward-line 1)
(if (looking-at "<")
(insert-char 9 1))
I have modiffied the code in my implementation to fix the annoying message of invalid headers.
Wojciech Komornicki writes:
> Reproduce: To reproduce you need a message from a mailer which does not
> format its headers correctly.
Hi,
The error you are getting is in mail-send, which is dealing with the message
you have composed. What does this have to do with other mailers?
In any case, I would need to have a sample message composition that produces
the problem.
Also, please let me know what happens if you run VM with all its default
settings.
Cheers,
Uday