Search

GlobalSCAPE Knowledge Base

Renaming the package ID attachment

Karla Marsh
Mail Express

  • Mail Express, v4.2 and later
  • NOTE: We haven't tested this in older versions, but it should work.

DISCUSSION

When a client receives an attachment via Mail Express, the email also include an attachment with the package identifier. This file, as shown below, has no useful data and is primarily used as static icon to allow recipients to sort/filter for emails with attachments. However, because of the file name, some clients think this could be a malicious email and are not willing to accept the email. While the icon cannot be removed, we can change the name of the file from the unique package id to something more friendly.

To change the extension or file name

  1. Stop the Mail Express service and browse to the following folder, depending on the operating system and installed version:
    “C:\Program Files\GlobalSCAPE\Mail Express\webapps\ROOT\WEB-INF\classes\META-INF”
    or
    “C:\Program Files (x86)\GlobalSCAPE\Mail Express\webapps\ROOT\WEB-INF\classes\META-INF”
  2. Locate the file named staticConfig and make a backup of this file. (Right-click the file, click Copy, then click Paste.)
  3. Open staticconfig in a text editor and browse down to the following section:
  4. <bean id="attachmentNamePattern" class="java.lang.String">

    <constructor-arg value="Package_%s.html />

    <meta key="Description" value="The format for the name of the small HTML file attached to emails …" />

  5. In <constructor-arg value'"Package_%s.html />, change the text in the quotations marks to what you would like the filename or extension to be. Be sure to maintain the quotation marks.
  6. Restart Mail Express and send a test message to confirm successful changes.
Details
Last Modified: 4 Years Ago
Last Modified By: kmarsh
Type: HOWTO
Rated 2 stars based on 1 vote
Article has been viewed 20K times.
Options
Also In This Category
Tags