From owner-freebsd-questions@FreeBSD.ORG Fri Jul 1 06:40:18 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B570A16A41F for ; Fri, 1 Jul 2005 06:40:18 +0000 (GMT) (envelope-from wizlayer@gmail.com) Received: from engraver.valleygate.net (12-215-216-27.client.mchsi.com [12.215.216.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6628543D1D for ; Fri, 1 Jul 2005 06:40:18 +0000 (GMT) (envelope-from wizlayer@gmail.com) Received: from wizard.valleygate.net (wizard.valleygate.net [10.51.10.3]) by engraver.valleygate.net (8.13.3/8.13.3) with ESMTP id j616eGfC000970 for ; Fri, 1 Jul 2005 02:40:17 -0400 (EDT) (envelope-from wizlayer@gmail.com) From: wizlayer To: freebsd-questions@freebsd.org Date: Fri, 1 Jul 2005 02:40:14 -0400 User-Agent: KMail/1.8 X-Face: "e_)EG1Ia?&ecqhxa3_`G|cr35_87a'T"AlQ5IdTBhZiRj}wk9EdPBnW, oSeBhvgAPmZZU$ W'Edks*9`,UQ3y\zk%deq;(N8p5>>Pdje|W%i2b7_C{KOi"JBmNTeItUGg\FX9`b#U4P X-Copyright: Copyright 2005, Michael Hauber, All rights reserved. X-Notice: Duplication, modification, and/or redistribution are prohibited without proper consent from the author. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507010240.15259.wizlayer@gmail.com> Subject: HTML mail - hypatheticaly speaking, of course... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: wizlayer@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2005 06:40:18 -0000 I know this doesn't particularly pertain to FreeBSD, but I'm not sure where I can ask... I started a while back on a set of filters to convert html, multipart, alternative email (any email containing HTML) to an "alternative" form of HTML. From there, my intention was to convert it right back to HTML and reintroduce the HTML part back into the email before sending it on. (part of my "mail gateway" project)... I found that trying to create the filters was a severe pain in the arse because of the sloppyness that HTML allows (endless variances in the ways different composers produce it). So as far as writing the filters, I've rm'd the project. I still think the idea behind it could work, but I'm not sure how to go about it. Mail traffic as follows: ISP <---> OBSD <---> FBSD <---> 2 desktops OBSD- firewall/gateway FBSD- somewhat of a mixed bag of projects, but includes an in-house mail server (sendmail/procmail/SpamAssassin/ClamAV) with relaying limited to the two desktops. 2 desktops - FreeBSD, WinXP Could I perhaps filter out useless/malicious code by converting the html to pdf/latex/whatever and then convert it back to html? Any suggestions welcome. And by the way... Personally, I prefer plain ol' text, so I don't want to hear it... However, I don't see why there can't be a way for anyone to have their cake and eat it too (IE, my girlfriend wants HTML. I'm not willing to fix her box everytime I turn around. There's got to be a server-side solution - this my compromise! :) ). Thanks in advance, WizLayer