Thanks Paul, but your plugin uses find_parts() that turns it pointless if there is no Content-Type mime header...
--------PedroD >The magic number or file signature can be helpful in determining the filetype: >https://en.wikipedia.org/wiki/List_of_file_signatures >I make use of this in the OLEMacro plugin: https://github.com/fmbla/spamassassin-olemacro/ >Paul Stead #yiv6466611010 #yiv6466611010 -- _filtered #yiv6466611010 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv6466611010 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv6466611010 {font-family:HelveticaNeue;}#yiv6466611010 #yiv6466611010 p.yiv6466611010MsoNormal, #yiv6466611010 li.yiv6466611010MsoNormal, #yiv6466611010 div.yiv6466611010MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv6466611010 a:link, #yiv6466611010 span.yiv6466611010MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv6466611010 a:visited, #yiv6466611010 span.yiv6466611010MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv6466611010 span.yiv6466611010EmailStyle17 {font-family:Calibri;color:windowtext;}#yiv6466611010 span.yiv6466611010msoIns {text-decoration:underline;color:teal;}#yiv6466611010 .yiv6466611010MsoChpDefault {font-size:10.0pt;} _filtered #yiv6466611010 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv6466611010 div.yiv6466611010WordSection1 {}#yiv6466611010