Sponsored Content
Top Forums Shell Programming and Scripting Show if I have new mail in .profile ? Post 302250062 by eulogy1337 on Wednesday 22nd of October 2008 04:22:50 PM
Old 10-22-2008
Ok, what I came up with is

grep -c "Message-Id" /usr/mail/[myusername]

To get the count of message-id's, that doesn't mean 'new' but it will give me a 'list' of the e-mails in my inbox.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mail problem (NOT Mail or Mail.app)

When I try to use the CLI mail, I get the following error. What's wrong? Welcome to Darwin! % mail root Subject: test test . EOT % /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies

2. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

3. SCO

Difference between .profile and .~/.profile

what is the difference between these two lines, if we use it in korn shell script: .profile .~/.profile (3 Replies)
Discussion started by: maneesh mehta
3 Replies

4. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

5. UNIX for Dummies Questions & Answers

difference between /etc/profile and .profile?

What is the difference between /etc/profile and .profile? (5 Replies)
Discussion started by: gehlnar
5 Replies

6. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

7. UNIX for Dummies Questions & Answers

Extract out mail ID from from profile list

HI, i HAVE THE PROFILE LIST ldapsearch -D cn=root -w root -p 389 mail=dgmp_ndl@bsnl.in mail=dgmp_ndl@bsnl.in,o=Data Networks,o=Data Networks,o=Data Networks,o=Messagingdb,dc=bsnl,dc=in I NEED TO SEPERATE ONLY THE MAIL ID I m USING bash-2.05b$ ldapsearch -D cn=root -w root -p 389... (3 Replies)
Discussion started by: indoo.pathak
3 Replies

8. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

9. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
IMLS(1p)						     Internet Message commands							  IMLS(1p)

NAME
imls - list up the contents of the folder SYNOPSIS
imls [OPTIONS] [FOLDER] [RANGE] DESCRIPTION
The imls command produces a one line per message listing of the specified folder or mail/news messages. This command is provided by IM (Internet Message). OPTIONS
-s, --src=FOLDER,FOLDER... Folder name. Default value is "+inbox". "--src=+xxx" is equivalent to "+xxx". -f, --form=STRING Scan format. Default value is "%+5n %m%d %-14A %S || %b". -b, --buffer={on,off} Make output data buffered. -j, --jissafe={on,off} Safe manner for JIS. Default value is "on". -w, --width=NUM Width of result for scan listings. Default value is 80. -t, --thread={on,off} Make threads. -i, --indent=NUM Width of thread indent. Default value is 2. -g, --grep=STRING Grep pattern for vscan. -n, --namazu={on,off} Use namazu for vscan. -c, --casefold={on,off} Case sensitivity. Default value is "on". (This option affects both fieldname and pattern.) -d, --delimiter=STRING Mail header delimiter. Default value is " | ---- ". -D, --dupchecktarget=STRING Duplicate check target ('none', 'message-id', or 'message-id+subject'). Default value is "message-id". -x, --mimedecodequoted={on,off} Decode broken mime-encoded strings. -S, --sshserver=SERVER SSH port relay server. -q, --quiet={on,off} Do not show any messages. -v, --verbose={on,off} Print verbose messages when running. --debug=DEBUG_OPTION Print debug messages when running. -h, --help Display help message and exit. --version Output version information and exit. COPYRIGHT
IM (Internet Message) is copyrighted by IM developing team. You can redistribute it and/or modify it under the modified BSD license. See the copyright file for more details. IM151 2011-05-25 IMLS(1p)
All times are GMT -4. The time now is 10:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy