On 12/27/2015 10:11 PM, MichaelLeung wrote: > please tell me what did you see the To: and the Subject:header
Look at the raw message or at least the raw message headers. You can do this with, e.g., less or vi on the mailbox containing the message or with any mail client that will show you the raw message or the complete headers. Here are the messages I received from you minus some headers such as Received:, Delivered-To: and MailScanner headers added by MTAs in transit. message sent by echo "test message 1" | mail -s 'test mail 1' -r mark@ msapiro.net [email protected] ---------------------------------------------------------- Return-Path: <[email protected]> Received: (from root@localhost) by ali.gbcbooks.eu.org (8.14.4/8.14.4/Submit) id tBS3e95u030672 for [email protected]; Mon, 28 Dec 2015 11:40:09 +0800 Date: Mon, 28 Dec 2015 11:40:09 +0800 From: [email protected] To: [email protected] Subject: test mail 1 Message-ID: <5680af19.5tmi+2oltzoltjxo%[email protected]> User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit test message 1 ---------------------------------------------------------- Return-Path: is set by the final MTA to the envelope sender set by the -r option. The message contains both Subject: from the -s option and To: with the recipients address. The From: header is also set freom the -r option message sent by echo "test message 2" | mail -s 'test mail 2' [email protected] ---------------------------------------------------------- Return-Path: <[email protected]> Received: (from root@localhost) by ali.gbcbooks.eu.org (8.14.4/8.14.4/Submit) id tBS3e9io030675 for [email protected]; Mon, 28 Dec 2015 11:40:09 +0800 From: root <[email protected]> Message-Id: <[email protected]> Date: Mon, 28 Dec 2015 11:40:09 +0800 To: [email protected] Subject: test mail 2 User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit test message 2 ---------------------------------------------------------- This message is the same except the From: and Return-Path: are the user@host that sent it because there is no -r option. > i issue these commands > > echo "test message 1" | mail -s 'test mail 1' -r [email protected] > [email protected] > > echo "test message 2" | mail -s 'test mail 2' [email protected] > > i got test mail 2 as normal ,but test mail 1 did not have To:and > Subject:header And how did you look at it to determine that? The messages you sent to me clearly do have appropriate To: and Subject: headers put there by your mailx User-Agent: -- Mark Sapiro <[email protected]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list [email protected] https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
