LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-09-2021, 02:51 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
can username be specified in mutt EMAIL environment variable?


With .muttrc, I can specify a sender as:
Code:
set from="Joe Blow <jblow@mydom.com>"
set use_from=yes
Without using .muttrc, I can specify the sender on the command line as:
Code:
EMAIL="jblow@mydom.com" mutt -s ...
The command line method shown does not show the sender's name (Joe Blow), but rather the delivered message has the name of the actual user sending the message. For example, if this message is sent from a .jsp app (tomcat) the sender name comes to the recipient as "Tomcat User".

Is there any way to override the user's name from the command line as can be done with .muttrc?

Last edited by mfoley; 06-09-2021 at 02:52 PM.
 
Old 06-09-2021, 03:14 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Been a long time since I used mutt…but try
Code:
EMAIL="Joe Blow <jblow@mydom.com>"
That format, as you’re using in .muttrc, is the standard for putting a realname with an email address.
 
1 members found this post helpful.
Old 06-10-2021, 11:17 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
That worked! Thanks!
 
  


Reply

Tags
mutt



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
[SOLVED] [Mutt] Can I process a current mail in a shell command from Mutt? Michael Uplawski Linux - Software 5 06-21-2016 02:56 AM
mutt does not honour mutt.rc 'use_from' entry when accepting piped input davidchall Linux - Software 0 05-28-2012 02:13 AM
Mutt experts - Mutt won't use the Maildir I specify in .muttrc moistTowelette Debian 2 08-24-2009 08:04 AM
Mutt question: "How can I configure mutt for not automarking as read??" xowl Linux - Software 0 09-25-2007 09:09 AM
setting proxy username and password in environment variable maveickstorm Linux - Networking 2 11-21-2006 12:20 PM

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

All times are GMT -5. The time now is 07:28 AM.

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