William Hunter Active Member Licensed User Longtime User Nov 9, 2014 #1 In the parsing of headers, Mailparser truncates the Subject header for forwarded messages. A forwarded message will have a Subject header that looks like this: Fwd: This is the subject Mailparser truncates the header at the colon, retrieving only Fwd as the header. The line - parts = Regex.Split(":", line) - in Sub ParseHeaders, would seem to be the cause. Is there a change to Mailparser that could be made to ensure that the entire header is retrieved? A solution will be greatly appreciated. Best Regards
In the parsing of headers, Mailparser truncates the Subject header for forwarded messages. A forwarded message will have a Subject header that looks like this: Fwd: This is the subject Mailparser truncates the header at the colon, retrieving only Fwd as the header. The line - parts = Regex.Split(":", line) - in Sub ParseHeaders, would seem to be the cause. Is there a change to Mailparser that could be made to ensure that the entire header is retrieved? A solution will be greatly appreciated. Best Regards
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2014 #2 Does it set the subject to be "Fwd" ? Change the code that sets the subject to: Code: Msg.Subject = line.SubString(line.IndexOf(":") + 1) Upvote 0
Does it set the subject to be "Fwd" ? Change the code that sets the subject to: Code: Msg.Subject = line.SubString(line.IndexOf(":") + 1)
E Eldritch Member Licensed User Longtime User Dec 25, 2014 #3 Erel said: Does it set the subject to be "Fwd" ? Change the code that sets the subject to: Code: Msg.Subject = line.SubString(line.IndexOf(":") + 1) Click to expand... Worked for me! Upvote 0
Erel said: Does it set the subject to be "Fwd" ? Change the code that sets the subject to: Code: Msg.Subject = line.SubString(line.IndexOf(":") + 1) Click to expand... Worked for me!