Dealing With Attachments

From: Andrew Kuchling <akuchlin_at_cnri.reston.va.us_at_hypermail-project.org>
Date: Wed, 10 Jun 1998 16:26:53 -0400 (EDT)
Message-ID: <13694.60051.799871.261484_at_newcnri.cnri.reston.va.us>


Kent Landfield writes:
> Need to worry about uniqueness, does a valid name exist and
> what to fall back to in the event there is no decernable
> information supplied. Need to also assure that only the
> base filename is used (/etc/passwd would be passwd).

        How about creating a subdirectory for each message containing attachments, and then using the name specified by the user?

	Benefits: 
	   Don't have to worry about unique names across different messages
	   All the attachments for a given message are in the same place
	   
        Drawbacks: 
           Consumes more inodes (at least two per message w/ attachments)

Also, you'd want to be able to specify that some types of attachments, just get dumped. For example, you might not want a file for every message with a vcard attachment.

-- 
A.M. Kuchling			http://starship.skyport.net/crew/amk/
They must often change, who would be constant in happiness or wisdom.
    -- Confucius
Received on Wed 10 Jun 1998 10:29:26 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT