LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-28-2016, 09:59 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,964

Rep: Reputation: 152Reputation: 152
How to stop mailx from auto-including original message


I am using mailx on several Linux hosts as my mail client. It works as desired on all but one. On this one, when I reply (r) to an email, it automatically includes the original as if I'd done ~m. Furthermore, the included message has "User Name <users@email.com> wrote:" at the top and all message headers are gone.

I can't figure out what's set where to cause this. Normally I do a 'r' command to reply, then a ~m to include the message and I get the message and all headers, no "so-and-so wrote". Or, it I don't want to include the sender's message, I simply dont' do ~m or ~f. In this case, I have no choice. I am using the same .mailrc file as on the other systems and I see no setting causing that behavior.

What's up?

Last edited by mfoley; 06-28-2016 at 10:42 AM.
 
Old 06-28-2016, 07:15 PM   #2
Upuetz
Member
 
Registered: May 2016
Location: Aachen
Distribution: Debian, CentOS, Ubuntu, Raspian, tinycore
Posts: 59

Rep: Reputation: Disabled
I don't know mailx enough but maybe a systemwide mailrc is used?
What you can do is this:
strace -eopen -f -o /tmp/strace.log mailx
After some seconds, quit mailx and see what files get opened by mailx. *Maybe* that gives you an idea what config file is messing with you
HTH
Upuetz
 
1 members found this post helpful.
Old 06-29-2016, 10:42 PM   #3
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208

Rep: Reputation: 41
Is that machine using a different distro? See /etc/mail.rc or /etc/mailx.rc, depending on distro, for system-wide defaults.

Also, bear in mind that are a few different mailxes: bsd-mailx, heirloom-mailx and s-nail come to mind. They have different parameters and capabilities. You could check which one your machine is using; maybe ~r isn't doing what you think.
 
Old 07-03-2016, 01:04 PM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,964

Original Poster
Rep: Reputation: 152Reputation: 152
Yes! that was it. Mailx uses /etc/nail.rc. Upuetz, that strace is fantastic. I've never used that before. That will come in handy for lots of stuff.

When I copied the nail.rc from a system that worked the way I wanted it to it worked properly. Unfortunately, In comparing the old and new .rc files, I believe this setting in the old nail.rc was the culprit:

# Automatically quote the text of the message that is responded to.
set quote

Last edited by mfoley; 07-03-2016 at 01:07 PM.
 
Old 07-04-2016, 07:05 AM   #5
Upuetz
Member
 
Registered: May 2016
Location: Aachen
Distribution: Debian, CentOS, Ubuntu, Raspian, tinycore
Posts: 59

Rep: Reputation: Disabled
Glad it worked
Best regards,
Upuetz
 
  


Reply

Tags
mailx, reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use e-mail address in mailx <message list>? m4rtin Linux - Software 1 10-04-2013 03:29 AM
can't seem to stop clonezilla from including MBR in partition image jtwdyp Linux - General 3 06-05-2012 04:42 PM
mailx not found error message kaplan71 Linux - Software 2 12-10-2007 03:20 PM
Evolution - Close original message on reply? Swampy Linux - Software 0 05-10-2007 08:42 AM
SMTP logging without including the body of the message jspencereds Linux - Networking 0 04-09-2004 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration