Sorry for the extra email. It send to quickly. procmail: Assigning "SUBJECT= Tornado Monday, 03/27/2017 at 20:27:02. The Point BB.OBSURGRH is" jerry
On 4/12/2017 12:38 PM, Jerry Geis wrote:> Sorry for the extra email. It send to quickly. > > procmail: Assigning "SUBJECT= Tornado Monday, 03/27/2017 at 20:27:02. The > Point BB.OBSURGRH is"sounds like your issue is procmail then... I just used your exact command to send myself a message form a bone stock C6 system (sendmail as the email server) and recieved... (domain munged because I don't want to recieve ANY email at this host) From - Wed Apr 12 12:40:34 2017 X-Account-Key: account1 X-UIDL: 58ee82b100000004 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 X-Mozilla-Keys: Return-Path: <pierce at XXX.com> Received: from new.XXX.com (new.XXX.com [207.111.XXX.YY]) by hogranch.com (8.11.6/8.11.6) with ESMTP id v3CJeKi25266 for <pierce at hogranch.com>; Wed, 12 Apr 2017 12:40:20 -0700 Received: by new.freescruz.com (Postfix, from userid 500) id 98C33606BE; Wed, 12 Apr 2017 12:40:20 -0700 (PDT) Date: Wed, 12 Apr 2017 12:40:20 -0700 To: pierce at hogranch.com 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 User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20170412194020.98C33606BE at new.XXX.com> From: pierce at XXX.com (John R Pierce) -- john r pierce, recycling bits in santa cruz
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? Thanks, Jerry
> 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.
On 4/12/2017 12:48 PM, Jerry Geis wrote:> 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?still on C6... (don't have a c7 server configured with an email service). [pierce at new ~]$ mail Heirloom Mail version 12.4 7/29/08. Type ? for help. "/var/spool/mail/pierce": 1 message 1 new >N 1 John R Pierce Wed Apr 12 13:00 20/738 "Tornado Monday, 03/27/2017 at 20:27:02. The Point BB.OBSURGRH is in Alarm at PRI3 with a value of 63.4 %.I" & 1 Message 1: From pierce at XXX.com Wed Apr 12 13:00:09 2017 Return-Path: <pierce at XXX.com> X-Original-To: pierce Delivered-To: pierce at XXX.com Date: Wed, 12 Apr 2017 13:00:09 -0700 To: pierce at new.freescruz.com 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 User-Agent: Heirloom mailx 12.4 7/29/08 Content-Type: text/plain; charset=us-ascii From: pierce at XXX.com (John R Pierce) Status: R & -- john r pierce, recycling bits in santa cruz
On 4/12/2017 12:48 PM, Jerry Geis wrote:> So I am using sendmail on C7.ok, wait, I do have a c7 test VM... [piercej at c7test ~]$ 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" piercej [piercej at c7test ~]$ mail Heirloom Mail version 12.5 7/5/10. Type ? for help. "/var/spool/mail/piercej": 1 message 1 new >N 1 John R Pierce Wed Apr 12 13:06 20/888 "Tornado Monday, 03/27/2017 at 20:27:02. The Point BB.OBSURGRH is in Alarm at PRI3 with a value of 63.4 %.I" & 1 Message 1: From piercej at c7test.XXX.com Wed Apr 12 13:06:22 2017 Return-Path: <piercej at c7test.XXX.com> X-Original-To: piercej Delivered-To: piercej at c7test.XXX.com Date: Wed, 12 Apr 2017 13:06:22 -0700 To: piercej at c7test.XXX.com 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 User-Agent: Heirloom mailx 12.5 7/5/10 Content-Type: text/plain; charset=us-ascii From: piercej at c7test.XXX.com (John R Pierce) Status: R & so, your issue is something specific on your configuration. hmm, c7's default email service is postfix, not sendmail, for what /thats/ worth. -- john r pierce, recycling bits in santa cruz
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
--On Wednesday, April 12, 2017 1:43 PM -0700 John R Pierce <pierce at hogranch.com> wrote:>> procmail: Assigning "SUBJECT= Tornado Monday, 03/27/2017 at 20:27:02. The >> Point BB.OBSURGRH is" > > sounds like your issue is procmail then... I just used your exact > command to send myself a message form a bone stock C6 system (sendmail as > the email server) and recieved...Procmail unfolds headers. Could it be the logging that's truncating the subject? Where is that "Assigning" output coming from? You could dump the SUBJECT variable to a file to see what it really thinks is in there. <http://pm-doc.sourceforge.net/doc/#headers_are_unfolded_before_matching> <http://porkmail.org/era/mail/procmail-debug.html> --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus