Tu Ngo wrote:
>
>1.       Does the mailman automatically rename the attachment due to the
>long name of the attachment?
>
>2.       If yes, how long should the name of the attachment be so that it
>would not be changed by mailman?
>
>3.       If no, could you please explain to me the reason why the name had
>been changed?


This is all controlled by configuration settings. The default settings
are

SCRUBBER_DONT_USE_ATTACHMENT_FILENAME = True

SCRUBBER_USE_ATTACHMENT_FILENAME_EXTENSION = False

which means that all stored attachments will have a "made up" name and
an extension based on the MIME Content-Type of the attachment.

In order to preserve the original name and extension of the attachment
when it is stored, you need to set

SCRUBBER_DONT_USE_ATTACHMENT_FILENAME = False
SCRUBBER_USE_ATTACHMENT_FILENAME_EXTENSION = True

in mm_cfg.py, but this can allow attachments to be stored with names
that might not be valid on all systems and with extensions that might
disguise the actual content type.

-- 
Mark Sapiro <[EMAIL PROTECTED]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to