From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34984 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Mime headers relating to fax images Date: Sun, 25 Feb 2001 09:35:28 -0800 Organization: mobile Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170804 598 80.91.224.250 (21 Oct 2002 03:26:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:26:44 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 1A4F0D049F for ; Sun, 25 Feb 2001 13:42:05 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id MAB00248; Sun, 25 Feb 2001 12:41:58 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 25 Feb 2001 12:41:19 -0600 (CST) Original-Received: from Post-Office.UH.EDU (Post-Office.UH.EDU [129.7.1.20]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id MAA26747 for ; Sun, 25 Feb 2001 12:41:08 -0600 (CST) Original-Received: from CONVERSION-DAEMON by Post-Office.UH.EDU (PMDF V5.2-32 #40812) id <0G9B00H01T9BT5@Post-Office.UH.EDU> for ding@hpc.uh.edu; Sun, 25 Feb 2001 12:41:35 -0600 (CST) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by Post-Office.UH.EDU (PMDF V5.2-32 #40812) with ESMTP id <0G9B00FDDT9B8Z@Post-Office.UH.EDU> for ding@hpc.uh.edu; Sun, 25 Feb 2001 12:41:35 -0600 (CST) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.0/8.11.1) id f1PIfNF13215 for ding@hpc.uh.edu; Sun, 25 Feb 2001 12:41:23 -0600 Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA26395 for ; Sun, 25 Feb 2001 11:35:06 -0600 (CST) Original-Received: from mail.networkone.net (mail.networkone.net [209.144.112.246]) by mailhost.sclp.com (Postfix) with SMTP id 57654D049F for ; Sun, 25 Feb 2001 12:35:35 -0500 (EST) Original-Received: (qmail 16118 invoked from network); Sun, 25 Feb 2001 17:35:31 +0000 Original-Received: from unknown (HELO reader.local.lan) (209.144.117.151) by mail.networkone.net with SMTP; Sun, 25 Feb 2001 17:35:31 +0000 Original-Received: (from reader@localhost) by reader.local.lan (8.11.0/8.11.0) id f1PHZSu32406; Sun, 25 Feb 2001 09:35:28 -0800 Original-To: ding@gnus.org User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Posted-To: gnu.emacs.gnus Original-Newsgroups: gnu.emacs.gnus X-Authentication-warning: reader.local.lan: reader set sender to reader@newsguy.com using -f Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 59 Xref: main.gmane.org gmane.emacs.gnus.general:34984 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34984 [The following message is a courtesy copy of an article that has been posted to gnu.emacs.gnus as well.] Running cvs gnus from 983032537 (Also posted to ding in case it is alpha code related) I recently started using an online outfit to send and recieve faxes by email ( www.eFax.com ). They perform an fax => to => email operation and send it on to me. The images they send me are *.tif images but they have mime content headers that look like: --==__==__A8420XZ382__==__== Content-Type: application/octet-stream; name="aeanvga9.tif" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="aeanvga9.tif" Content-MD5: hQDlIJsGMxaNw/DKPKZWmg== [...] --==__==__A8420XZ382__==__==-- This confuses my mailcap settings since *.tif is considered an image far as I know. I seem to recall seeing it listed as such in an RFC once apon a time. Is this something I should take up with eFax.com? Or is this compliant with what RFCs have to say about mime? I have a hunch gnus can do something for this that I don't know how to do, but currently, gnus only offers to save the file for me. For the time being I'm using a `procmail' solution and have it rewrite the Mimeheaders replacing "application/octet-stream" with "image/tif" :0f *^Subject:.*page eFax ## (line wrapped for mail - Note extra backslash) |sed 's/\(^Content-Type: \)\(application\/octet-stream\)\ \(; name=\"[^.]*\.tif\"\)/\1image\/tif\3/' The header shown above becomes: Content-Type: image/tif; name="aeanvga9.tif" I think this may lead to problems in the event something else that is `application/octet-streem' is also mime encapsulated in the same message, but at the present that isn't very likely. Along with the mailcap setting: `image/tif; viewfax %s' This seems to work without breaking anything I've noticed, and gnus opens them neatly with `viewfax' But I have a feeling there are bigger issues here. Or is this just a case of `eFax.com' blundering?