Find the answer to your Linux question:
Results 1 to 2 of 2
Is there a command to list all the unread mails header, i know we can do mail -u <username> to list the certain number of mail headers but the problem ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    2

    list all the mail header for the user


    Is there a command to list all the unread mails header, i know we can do mail -u <username> to list the certain number of mail headers but the problem with that is it goes to interactive mode and since i am using the mail -u <username> command to redirect the headers to the file i cannot have interactive mode.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hi,

    Do you just need the -H option to mail? e.g.:

    Code:
    mail -H -u <user>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •