cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1571
Views
0
Helpful
3
Replies

What are the possible values of the "filetype" content-filter variable?

Hi,

 

we want to attach a header to our mails with the attached mime-types. In the Content-Filter/Action Variables documentation section we found a list of possible variables. The "filetypes" variable sounded very promising:

 

File Types

$filetypes
Replaced with a comma-separated list of the message's attachments' file types.

 

Unfortunately it seems not to attach the "mime-type" of the files:

We attached a ".zip" and the variable says "compressed/zip" but the mime-type should be "application/zip".

 

Is there a way to attach the "mime-types" or is there a list of the possible values of the "$filetypes" variable?

 

Best regards,

Ronny

3 Replies 3

ppreenja
Cisco Employee
Cisco Employee

Hi Ronny,

 

I couldn't find any way we can attach the "mime-types" variable but for the filetypes we can use the variable $filetypes as you have already mentioned.


For more details on the filetype, you can navigate to Mail Policies-->Incoming Filter-->Add Filter-->Add condition-->Attachment File info-->File type is. Here you will be able to see all the filetype details.

 

I have also attached the screenshots here for the reference.

I hope this helps.

 

BR,
Pratham

Hello Pratham,

thank you for your fast response.

I have extrapolated the list out of that dropdown menu (and the sourcecode of the html):

Spoiler

compressed/7z

compressed/ace

compressed/arc

compressed//arj

compressed/binhex

compressed/bz

compressed/bz2

compressed/cab

compressed/cpio

compressed/gzip

compressed/lha

compressed/lz

compressed/rar

compressed/rpm

compressed/sit

compressed/tar

compressed/unix

compressed/x-windows-packager

compressed/zip

compressed/zoo

 

document/doc

document/latex

document/lwp

document/mdb

document/mpp

document/msg

document/ole

document/pdf

document/ppt

document/pub

document/rtf

document/torrent

document/wps

document/x-wmf

document/xls

 

executable/exe

executable/java

executable/mrc

executable/msi

executable/pif

executable/sis

image/bmp

image/cdr

image/cr2

image/crw

image/cur

image/djvu

image/emf

image/gif

image/icc

image/ico

image/jp2

image/jpeg

image/mbm

image/orf

image/pcx

image/pdn

image/png

image/pnm

image/ps

image/psd

image/psp

image/qtif

image/svg

image/tga

image/tiff

image/x-pict2

image/x3f

image/xcf

 

media/3g2

media/3gp

media/aac

media/aiff

media/ape

media/asf

media/avi

media/flac

media/flash

media/midi

media/mod

media/mov

media/mp2p

media/mp2t

media/mp3

media/mp4

media/mp4a

media/mpeg

media/ogg

media/ram

media/snd

media/w64

media/wav

media/webm

media/wma

media/wmv

 

text/html

text/txt

text/xml

Unfortunately it seems that there is some inconsistency, i.e.:

  1. The list says Text -> --txt - so i would consider "text/txt" for a plain .txt File (mime-type should be "text/plain"). The $filetype says: "text/plain"
  2. The list Says Document -> --doc - so "document/doc" should be right (mime-type: "application/msword"). The $filetype says "document/doc" -> so this seems to be okay

I have also tested some files which are not in the list:

  1. a PHP File (mime-type is "text/x-php") -> $filetype says: "text/plain"
  2. a OpenDocument File (.odt - mime-type is "application/vnd.oasis.opendocument.text") -> $filetype says "application/octet-stream"

But nevermind, we will try to find another solution. :-)

 

Best Regards,

Ronny

Hello Ronny,

Thanks for the update. Yes, there will be some inconsistencies as file-type won't be showing equivalent of the mime-type.
Glad to know, I was of some help to you.

Cheers,
Pratham