Bug 6200

Summary: Sendmail butchers RCPT TO field
Product: Busybox Reporter: D Hawkins <n4mwd>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs, n4mwd
Priority: P5    
Version: 1.18.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description D Hawkins 2013-04-22 22:06:57 UTC
BusyBox v1.18.5 on Toastman Tomato Linux running on an Asus RT-N16 router

Summary: When using sendmail with a user friendly name in the TO field, sendmail butchers it to where the mail is undeliverable.

Using the busybox command:
sendmail -t -f no-reply@myserver.com -S MyServer -auMyUser -apMyPass < mail.txt

And mail.txt is:

To: "John Smith the Third" <john@yahoo.com>
From: Joe@MyServer.com
Date: Sat, 20 Apr 2013 11:01:42 -0400
Subject: test mail

Test Message.


For some reason, sendmail strips the quote characters and brackets from the TO field, and incorrectly generates the following line:

RCPT TO:<johnsmiththethirdjohn@yahoo.com>

It should not do that.