From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: George Gallen Newsgroups: gmane.os.tru64.managers Subject: [summary] Either sendmail or PERL is inserting ! in my HTML email .... Date: Fri, 22 Aug 2003 10:34:14 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <6B869BD47339444C958405F559DADCF140AE1F@smtp.slackinc.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1061562903 17819 80.91.224.253 (22 Aug 2003 14:35:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2003 14:35:03 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Aug 22 16:35:01 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19qD0G-00068e-00 for ; Fri, 22 Aug 2003 16:35:01 +0200 Original-Received: (qmail 30420 invoked by uid 5); 22 Aug 2003 14:34:48 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 30411 invoked by uid 49493); 22 Aug 2003 14:34:48 -0000 Original-Received: from ggallen@slackinc.com by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-5.1/5.0):. Processed in 17.200552 secs); 22 Aug 2003 14:34:48 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 22 Aug 2003 14:34:30 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HK0005MDZ5HTM@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 22 Aug 2003 10:34:30 -0400 (EDT) Original-Received: from poison.slackinc.com (poison.slackinc.com [12.35.245.16]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HK0009H6Z5DV6@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 22 Aug 2003 10:34:25 -0400 (EDT) Original-Received: by smtp.slackinc.com with Internet Mail Service (5.5.2656.59) id ; Fri, 22 Aug 2003 10:34:25 -0400 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2656.59) Xref: main.gmane.org gmane.os.tru64.managers:5174 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5174 As a couple people pointed out that sendmail will insert the ! after 1000 bytes line is reached. Which in this case looks like the culprit. I inserted a print MAIL "\n"; a couple times withing the HTML code, to break up the lines so they are under 1000 bytes. and magically, the ! disappeared. Thanks for the info. George >-----Original Message----- >From: George Gallen [mailto:ggallen@slackinc.com] >Sent: Friday, August 22, 2003 9:59 AM >To: 'tru64-unix-managers@ornl.gov' >Subject: Either sendmail or PERL is inserting ! in my HTML email.... > > >Hi. > >I'm sending an HTML email using PERL (routine below). >in this case, it's on a PERL 5 and T64 3.2c, I don't think the > t64 being old has anything to do with it, as it also does it > on a Redhat 7.2 system with PERL 5. > >Apparantly x # of bytes into the email, something is inserting >an "!" in the middle of the email. It's not the HTML coding, as >if I add or remove characters, the ! doesn't follow, it stays in >the same offset spot. > >Has anyone had this occur before? Aside from trying to shift the >email so the ! falls in an appropriate spot :) any ideas on how to >fix (stop) this? > >I've tried breaking up the HTML coding into many lines of prints >so each line of print is no more than 70 characters. The ! gets >put in the email, whether I use one line of 600 or so bytes or >8 or 9 lines of 70 character maximums. > >I did a view source on the original HTML, then cut and pasted the >HTML from the view into the email below. Aside from the ! the >email looks identicle. > >Any ideas? >Thanks > >#!/usr/local/bin/perl >use CGI qw/:standard/; >my $PID = $$; >my $ml_pgm = '/usr/sbin/sendmail'; >my $ml_to = 'ggallen@slackinc.com'; >open (MAIL,"|$ml_pgm $ml_to") or die "Sendmail $ml_pgm $ml_to >would not open >:$ \n"; >print MAIL "To: $ml_to\n"; >print MAIL "From: webmaster\@return.com \n"; >print MAIL "Subject: This is an HTML test\n"; >print MAIL "MIME-Version: 1.0\n"; >print MAIL "Content-Type: text/html; charset=us-ascii\n\n"; >print MAIL ".......HTML CODING....."; >close MAIL or die "Sendmail would not close :$\n"; > > >George Gallen >Senior Programmer/Analyst >Accounting/Data Division >ggallen@slackinc.com >ph:856.848.1000 Ext 220 > >SLACK Incorporated - An innovative information, education and >management >company >http://www.slackinc.com > George Gallen Senior Programmer/Analyst Accounting/Data Division ggallen@slackinc.com ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com