Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailx behaviour

Status
Not open for further replies.

fimleys

Programmer
Jun 1, 2001
2
GB
Hi, I'm using the "mailx -H" command on SunOS 5.6 to list out the headers of all my mail in my /var/mail/userid mailbox. New messages are indicated by a 'N' in column one. If i then run the following script

#!/bin/sh
mail <<EOD
q
EOD

then issue the mailx -H command again the 'new' messages are now shown as 'U' in column one, super, that's exactly what I want. When I schedule the above script via cron it runs, but does not change the 'N' flags to 'U'.
Any ideas why this is, it definitely finds my mailbox as it lists out the headers
Any help gratefully received....thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top