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
#!/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