Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

MAIL environment variable - what script sets this?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
DeSoya
n00b
n00b
Posts: 8
Joined: Sun Feb 17, 2008 9:15 pm

MAIL environment variable - what script sets this?

  • Quote

Post by DeSoya » Wed Jun 03, 2009 9:10 am

Question is in the title. I can't figure out where the MAIL environment variable is set. A 'grep -r MAIL' on /etc doesn't net anything remotely promising. It obviously gets set somewhere as it points to /var/mail/$USER. But changing that proves to be somewhat difficult for me as I can't find the right location.

And no I don't want to simply override the setting in my .bashrc or .bash_profile.
Top
Kulfaangaren!
Apprentice
Apprentice
Posts: 176
Joined: Sat Jan 11, 2003 5:53 am
Location: Borås, Sweden

  • Quote

Post by Kulfaangaren! » Fri Jun 05, 2009 2:12 pm

The only thing I have been able to find about this is that the tcsh ebuild installs a file named /etc/csh.cshrc which at the absolute end contains this code...

Code: Select all

...<snipp!>...

# Setup a default MAIL variable
if ( -f /var/mail/$USER ) then
    setenv MAIL /var/mail/$USER
    set mail = $MAIL
endif
You have run a recursive grep so you should have found this, but *shrug* it's the only thing I have found that sets a MAIL variable.

Good luck

// Fredrik
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Join the 'adopt an unanswered post' initiative today
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic