[SOLVED] New mail objects to header line beginning with >
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There's a new mail (mailx, heirloom mail...). Sending messages to myself doesn't work.
I use:
Code:
mailx -s subject -t RandomTroll < text
and get:
Quote:
mailx: Not a header line, skipping: text
mailx: Restoring deleted header lines
You have new mail in /var/spool/mail/RandomTroll
When I read my mail I get:
Quote:
mailx version v14.9.11. Type `?' for help
/var/spool/mail/RandomTroll: 1 message 1 new
mailx: Not a header line, skipping: '>From RandomTroll Sun Nov 25 12:00:04 2018'
mailx: Not a header line, skipping: '>From RandomTroll Sun Nov 25 12:00:04 2018'
mailx: Not a header line, skipping: '>From RandomTroll Sun Nov 25 12:00:04 2018'
There are new messages in the error message ring (denoted by ERROR)
The `errors' command manages this message ring
ERROR#
and find this in the header:
Quote:
>From RandomTroll Sun Nov 25 12:01:27 2018
I restored the previous package, 12.5. It sees the same thing but doesn't object. What's up? The example I use up top is in the man page
You don't need the -t option, unless the file text that you redirect to the mail command contains the needed fields To: Subject: etc.
From mail(x) manpage:
Quote:
-t The message to be sent is expected to contain a message header with `To:', `Cc:', or `Bcc:' fields giving its recipients. Recipients specified on the command line are ignored.
Omitting '-t' makes no difference. Besides, I usually use the features it supports. I tried to simplify my question. The problem is that sending mail any way I can includes a
Quote:
>From
line in the header, to which the new mail objects but no previous versions.
Omitting '-t' makes no difference. Besides, I usually use the features it supports. I tried to simplify my question. The problem is that sending mail any way I can includes a line in the header, to which the new mail objects but no previous versions.
Sorry, but I cannot replicate this behavior with or without the "-t" option, neither with mailx-12.5 nor with the new s-nail-14.9.11.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.