Hey everyone, I am trying to make a "FROM" script that basically shows the person running the script who the mail is from that they have. Not very complex, but I can't seem to get it exactly how I want it. Currently, it works fine, but it shows too much info. This is what I have...
 
  cat /var/spool/mail/$uname | sed -e '/[Ff][Rr][Oo][Mm]:/b' -e d
 
K, this shows all combinations of from:, which is kind of what I want, but I only want the from: at the beginning of a email, not all the from: in reply's etc...
 
Can anyone help me out with this?
 
 
Thanks,
Jake

Reply via email to