Great Circle Associates Majordomo-Workers
(July 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: RE: MIME-munging (was Re: Current 2.0 TASKS list)
From: Peter Bowyer <pbowyer @ verity . com>
Date: Wed, 9 Jul 1997 08:21:05 -0000
To: majordomo-workers @ greatcircle . com, "'Bill Houle'" <Bill . Houle @ SanDiegoCA . NCR . COM>

I have a slight variation on this - in the particular case of
application/ms-tnef, I'd like the tnef part to survive in the main list
but be discarded in the digest. Can some syntax be added to handle cases
like this?

Peter

> ----------
> From: 	Bill Houle[SMTP:Bill.Houle@SanDiegoCA.NCR.COM]
> Sent: 	09 July 1997 03:56
> To: 	majordomo-workers@greatcircle.com
> Subject: 	MIME-munging (was Re: Current 2.0 TASKS list)
> 
	<snip>

> attachment_rules << END
> multipart/mixed           bounce
> application/ms-tnef       discard
> application/*             detach=decode
> text/*                    pass=8bit
> END
> 
> attachment_dir = "/some/path"
> attachment_url = "http://host/some/path";
> 
> 
> o $attachment_dir might be the same as $archive_dir??
> 
> o $attachment_url does not have to be set (non-Web-enabled sites).
> 
> o Order of interpretation for $attachment_rules will be top-down, and
> only
> one match is allowed. (ie, once you've discarded, there is no way to
> detach).
> 
> o Wildcards are accepted for rudimentary pattern match (the
> conventional
> '*' is converted to the equivalent regexp meta '.*').
> 
> o The BOUNCE action means presence of the MIME type causes the entire
> message to be sent to the list-owner for approval.
> 
> o The DISCARD action means the attachment will be removed from the
> message,
> neither archived nor passed on. The rest of the message will continue
> to be
> processed.
> 
> o The DETACH action means the file will be stripped from the message
> and
> saved to the $attachment_dir directory. A snippet about how to
> retrieve the
> file via email will be inserted into the message:
> 	+---------------------------------------------
> 	| To retrieve this attachment, send mail to
> 	| $list-request@$whereami with the command
> 	|	GET $list $filename
> 	+---------------------------------------------
> If $attachment_url is specified, the message will also contain
> Web-retrieval instructions:
> 	+---------------------------------------------
> 	| To retrieve this attachment, send mail to
> 	| $list-request@$whereami with the command
> 	|	GET $list $filename
> 	| or via the URL
> 	|	http://host/some/path/$filename
> 	+---------------------------------------------
> 
> o The optional argument to the DETACH command specifies an encoding
> scheme
> for how the files are saved to disk. Values are "DECODED" (apply the
> appropriate uu or BinHex to create a possibly binary file), "BINHEX"
> (for
> Macintosh text format), "UUE" for MSMail style uuencoding, "MIME" (for
> preserving MIME encoding), and "EXTERNAL" for conversion to RFC1521
> MIME
> external body types. No value means there will be no translation and
> the
> attachment will be saved exactly as it was sent (all mailer encodings
> preserved).
> 
> o The PASS command indicates the attachment will be mailed on without
> modification.
> 
> o The optional argument to the PASS command specifies an encoding
> scheme
> for how files are sent on to the list. Valid values are "8BIT" for
> 8bit
> mail and "QP" for quoted-printable. No value means there will be no
> translation and the attachment will be passed as-is.
> 
> o The attachment recognition engine could be further enhanced to
> recognize
> in-body non-MIME file attachments such as uuencode and BinHex files
> that
> are prevalent in todays mailers. This would extend the
> $attachment_rules
> functionality as follows:
> 	attachment_rules << END
> 	WINMAIL.DAT               discard
> 	FILE.PPT                  detach
> 	*.EXE                     bounce
> 	END
> 
> 	o Matches can be either based on MIME type (signified
> 	  by the xxxx/xxxx pattern) or filename.
> 	o Filenames are case-independent.
> 
> 
> The biggest problem I am having is that I come from a UUencoded
> non-MIME
> world. I tried to incorporate some of the MIME and translation stuff
> that
> Jason had talked about, but I am really clueless in that area. This
> needs
> work. But ask me to propose the non-MIME side and I'll feel
> comfortable
> with it.
> 
> What else needs work?
> Are there better "action" names? 
> Are there any other actions that you think will be necessary? 
> How should we handle no attachment_rules defined (automatically
> BOUNCED or
> PASSED)?
> 
> 
> --bill
> 

Indexed By Date Previous: Re: A buglet and some thoughts....
From: Manar Hussain <manar@ivision.co.uk>
Next: Re: archive/search... [longish] (fwd)
From: Manar Hussain <manar@ivision.co.uk>
Indexed By Thread Previous: Re: MIME-munging (was Re: Current 2.0 TASKS list)
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: MIME-munging (was Re: Current 2.0 TASKS list)
From: Bill Houle <Bill.Houle@SanDiegoCA.NCR.COM>

Google
 
Search Internet Search www.greatcircle.com