Re: email subject length issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




> Date: Wednesday, April 12, 2017 16:17:38 -0400
> From: Jerry Geis <jerry.geis@xxxxxxxxx>
>
> 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?
> 
> Thanks for the tips. It led me to the above.
> 
> Jerry

There's supposed to be a "null" line between the structured (header)
text lines and the rest of the body. The "Subject:" is generally the
last of the structured text lines, so you should be able to start
your read with the "Subject:" tag and continue reading until you hit
the "null" line.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux