Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"You have mail messages" at bash prompt [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Art Vandalay
Guru
Guru


Joined: 16 Sep 2003
Posts: 335
Location: Melbourne - VIC

PostPosted: Sat Aug 08, 2009 10:57 pm    Post subject: "You have mail messages" at bash prompt [SOLVED] Reply with quote

ever since a couple of months back, whenever i've completed a bash command in the console via konsole, i keep getting messages similar to the following, almost after every command:

Quote:
calista jk # nano /etc/portage/package.unmask
You have mail in /var/mail/root


and if i look at this 'mail' :

Quote:
calista jk # cat /var/mail/root
From MAILER-DAEMON Sat Sep 10 12:07:21 2005
Date: 10 Sep 2005 12:07:21 +1000
From: Mail System Internal Data <MAILER-DAEMON@calista.mail.org>
Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA
Message-ID: <1126318041@calista.mail.org>
X-IMAP: 1104841515 0000001186
Status: RO

This text is part of the internal format of your mail folder, and is not
a real message. It is created automatically by the mail system software.
If deleted, important folder data will be lost, and it will be re-created
with the data reset to initial values.


i'm also getting these messages for my normal user account as well......kinda don't know how to go about resolving this one.
i'm not running any mail services or any special cron jobs.


other info:
Quote:
calista jk # emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 08 Aug 2009 22:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash: 4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python: 2.4.6, 2.5.4-r3, 2.6.2-r1, 3.1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.4.3-r3
sys-apps/sandbox: 2.0
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils: 2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://85.25.128.62 http://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/jk"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X aac accessibility acl acpi administrator alsa amarok apache2 apm arts asf berkdb bluetooth bzip2 cairo cddb cdrom cli colordiff consolekit cracklib crypt ctype cups cupsddk dbase dbus disk-partition divx divx4linux dri dvb dvd dvdr dvdread embedded encode esd fam fax filter firefox flac ftp gd gdbm gif glib gs hal hddtemp iconv icq id3 imap iostats ipv6 java javascript jfs jpeg jpeg2k json kde kerberos kipi libwww lm_sensors lua lzo mad math mikmod mime mjpeg mmx mmx2 mng mozbranding moznopango mp3 mpeg mplayer msn mudflap musicbrainz mysql mythtv ncurses networkmanager nls nptl nptlonly nsplugin ntfs nvidia ogg ooo-kde opengl openmp oscar oss pam pcre perl php pmu png posix pppd python qt3 qt3support qt4 quicktime rdesktop readline realmedia reflection reiserfs scanner sdl session shaper snmp spell spl sql sqlite sse ssl svg symlink sysfs tcpd threads threadsafe tiff truetype unicode usb v4l2 vcd visualization vorbis weather-metar weather-xoap webinterface webkit win32codecs wma wmp wxgtk1 x264 x86 xchat xfs xml xorg xpm xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-bluebird" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="dvico" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
I might not have morals...but at least I have standards


Last edited by Art Vandalay on Mon Aug 10, 2009 8:10 am; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sun Aug 09, 2009 4:11 pm    Post subject: Reply with quote

You can set this in your ~/.bashrc
Code:
unset MAILCHECK


And root's mail could/should be redirected to your user account's mail
Code:
nano -w /etc/mail/aliases
...
# Well-known aliases -- these should be filled in!
root:           username
operator:      username

...


You can also emerge mail-client/mailx then just type mail to read/save/delete your mail. :)
Back to top
View user's profile Send private message
Art Vandalay
Guru
Guru


Joined: 16 Sep 2003
Posts: 335
Location: Melbourne - VIC

PostPosted: Mon Aug 10, 2009 8:09 am    Post subject: Reply with quote

cool tip, thanks mike :D
_________________
I might not have morals...but at least I have standards
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Aug 10, 2009 9:20 am    Post subject: Reply with quote

You are welcome. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum