From owner-freebsd-questions Sun Mar 31 15:56:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 0D62D37B417 for ; Sun, 31 Mar 2002 15:56:19 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id C37F97830D; Mon, 1 Apr 2002 09:26:16 +0930 (CST) Date: Mon, 1 Apr 2002 09:26:16 +0930 From: Greg 'groggy' Lehey To: Paul Bille Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Internet mail: formats - Good Work Message-ID: <20020401092616.M67252@wantadilla.lemis.com> References: <3CA7738D.9020108@ebille.cudenver.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CA7738D.9020108@ebille.cudenver.edu> User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday, 31 March 2002 at 13:37:33 -0700, Paul Bille wrote: > Appologies to the FreeBSD folks if this question is placed in the wrong > list. > > Hello Greg, > > I'm reading and enjoying your Internet mail: formats document > http://www.lemis.com/email/email-format.html > Thank you! > > I'm currently sending HTML as "page by E-mail" using MS Internet > Explorer. It's an effective technique that produces a pleasing result > for most recipients. Does that mean Microsoft users? It sounds dubious, but I'll take a look. > I'll follow this note with a message in this format. I haven't seen it yet. Did it come from another system, possibly one with broken DNS? In that case it won't get delivered to FreeBSD.org or lemis.com. > In spite of the effectiveness of this method, there are problems: > 1. The MSHTML converter filters my HTML source producing "fat" code. > 2. MSHTML modifies my code. > 3. I don't like relying on a third party product, particularly on a > Microsoft product. Indeed, three serious problems. > In defense of the technique: > 1. The "fat" code is still leaner than sending either images as > attachments Really? > or MS Word documents. Well, yes, but you shouldn't be sending proprietary attachments to generalized mailing lists. > 2. MSHTML modifications are fairly innocuous, manifesting in mostly HTML > syntax, comments and the like. 3. I'm not a Bill basher, I just don't > like relying on third party products because I've been burned when > features change with version upgrades, particularly seldom used features > or features that are used in an unorthodox manner. Yes, but they're still (apparently) HTML. > I'm looking at information, presumably on MIME types that control the > display on the mail client side. I've experimented with simply feeding > HTML source into the mail command at the UNIX prompt. This produces raw > HTML displayed at the client side. Obviously I can include HTML as an > attachment. I'm considering a cgi-bin application to format SMTP > messages directly however I don't want to contribute to the plethora of > proprietary e-mailers and the tower of Babel. > > I suspect you've already addressed this subject. Any references you can > provide will be appreciated. Well, every morning I run cron jobs to pick up things like the TV program (in HTML) and send it to me as a mail attachment. Here's the script: #!/bin/sh # Get today's TV program PATH=$PATH:/usr/local/bin # The static page fetch -o /tmp/tv-programme `date +'http://www.sofcom.com.au/cgi-bin/TV/category?date=%A_%e_%B&state=Adelaide&fta=1&fox=0&opt=0&TVperiod=Night&category=Movie&lk=sofcom' | sed 's: ::'` cat < /tmp/tv-programme.html From: Greg Lehey To: Greg Lehey , Yvonne Lehey , Yana Lehey Subject: TV Programme Mime-Version: 1.0 Content-Type: text/html; charset=iso-8859-1 EOF cat /tmp/tv-programme >> /tmp/tv-programme.html /usr/sbin/sendmail -i