Mrinal Kalakrishnan saw fit to inform LI that: 

>Are you sure? Or maybe you didn't "see" it in Netscape because it was
>multipart/alternative.

Netscape is pretty ok in fact - ref RFC 2046 (or see below).

>Are you going to patch majordomo for this bug as well? (adding the
>footer to a multipart/alternative) 

Two recent posts in mutt-users

1. Post re RFCs covering this problem

At 11:12 -0500 30 May 2000, Ronny Haryanto <[EMAIL PROTECTED]> wrote:

> an RFC (about multipart or MIME, I can't remember exactly) suggests
> that the last text/plain part be shown if all of the parts are of the
> same type. Please correct me if I'm wrong.

Actually, mailers are supposed to prefer the last alternative that they
can handle, regardless of type (RFC 2046, section 5.1.4).  This way, the
sending MUA can specify which version is the best representation of the
content, and (at least in the case of things like plaintext/html
messages) people with non-MIME mailers don't have to wade through
screenfuls of garbage to get to the plaintext.

Aaron Schrab     [EMAIL PROTECTED]      http://www.execpc.com/~aarons/
To err is human, to forgive, beyond the scope of the Operating System.


2. Shell script by Roessler to view lotus notes attachments

#!/bin/bash

##
## View X-Lotus-Notes attachments.
##

mimetypes=/usr/local/share/mime.types
metamail="/usr/local/bin/metamail -m mutt"

tmpdir=/tmp/lotus.$$
trap 'rm -rf $tmpdir' 0 1 2 3

mkdir $tmpdir || exit 1

## -B means that we are used in an autoview filter.

if [ "$1" = "-B" ] ; then
        metamail="$metamail -B -x -q"
        
MAILCAPS=${MAILCAPS-$HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap}
        for i in `echo $MAILCAPS | tr : \ ` ; do
                [ -f $i ] && { grep copiousoutput $i >> $tmpdir/mailcap ; }
        done
        export MAILCAPS=$tmpdir/mailcap
        export MM_PAGER=cat
        shift
else
        metamail="$metamail -p"
fi

[ -z "$1" ] || { exec < $1 || exit 1 ; }

cd $tmpdir

cat > data
extension=`sed -n -e 's/^begin .*\.\([^.]*\)$/\1/p' data | tr '[A-Z]' '[a-z]'`
tmpfile=data.$extension
sed -e "s/^begin .*\$/begin 600 $tmpfile/" data | uudecode
ctype=`awk '/^[^#]/   { 
                        for(i = 2; i <= NF; i++) {
                          if($i == "'"$extension"'") {
                            printf("%s", $1);
                            exit;
                          }
                        }
                      }' $mimetypes`

if [ -z "$ctype" -o \( "$ctype" = "text/plain" \)  ] ; then
        recode ibmpc:latin1 $tmpfile
        ${MM_PAGER-less} $tmpfile
        exit
fi

$metamail -b -c $ctype $tmpfile


>(Christa Keil in a German posting: "Mounting is used for three things:
>climbing on a horse, linking in a hard disk unit in data systems, and, well,
>mounting during sex".)

:)

-- 
Suresh Ramasubramanian | sureshr at staff.juno.com
Captain Penny's Law:
        You can fool all of the people some of the time, and some of
        the people all of the time, but you Can't Fool Mom.

-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH

Reply via email to