On 4/12/2017 4:17 PM, Jerry Geis wrote:
Oh I understand now what is happening. The subject is coming in as three lines. Subject: Tornado Monday, 03/27/2017 at 20:27:02. The Point BB.OBSURGRH is in Alarm at PRI3 with a value of 63.4 %.Informational Text: OB SURGERY HUMIDITY ALARM I'm not getting the second two lines. How "should" one correctly get the subject ??? What I did was in my .procmailrc file SUBJECT=`cat | grep Subject:` So this resulted in only the first line and not grabbing the additional 2 lines. Is there a way to correctly get the subject that I have not found?
You'll need to grab the line that starts with "Subject:" and then continue grabbing lines until you find one that doesn't start with whitespace. I don't think you can do this with grep, but you should be able to do it with perl, sed, or awk.
-- Bowie _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx https://lists.centos.org/mailman/listinfo/centos