[CentOS] email subject length issue

Wed Apr 12 20:03:13 UTC 2017
Richard <lists-centos at listmail.innovate.net>

> Date: Wednesday, April 12, 2017 15:48:06 -0400
> From: Jerry Geis <jerry.geis at gmail.com>
> So I am using sendmail on C7.
> I added to the .procmailrc file VERBOSE and a log file.
> procmail: Assigning "SUBJECT= Tornado Monday, 03/27/2017 at
> 20:27:02. The Point BB.OBSURGRH is"
> This command:
> echo "" | mail -s "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" email_test
> With email_test being a local account... clearly my subject is
> truncated. Is there a way to expand that?

A "Subject:" line is just a structured text line in the message body
and MTAs (e.g., sendmail) don't do anything differently with it than
any other line in a message body. The max length is 998 "characters".

I suspect that your MUA or more likely procmail is where the
truncation is taking place. I just did:

   /bin/mailx -s"... 200+ character subject ..."

on a C6/sendmail machine and it worked fine.