On Wed, 14 Oct 2015, Rejaine Monteiro wrote:


how can i write a rule to get xml attach files from an e-mail?

Headers:

Content-Type: multipart/mixed; boundary=--boundary_6_9e03550b-93b5-4e32-88c8-2a1cd6037099
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream; name=filename.xml
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream; name=filename.pdf
Content-Transfer-Encoding: base64

I tried,

header FILE_XML Content-type =~ /xml/i
header FILE_XML Content-type =~ /\.xml/i
rawbody FILE_XML  /xml/
rawbody FILE_XML  /\.xml/i
body FILE_XML  /xml/i

none took effect....

Those are MIME headers within the message, not headers at the top header
area. So you need to use the "mimeheader" type rules.

EG:

  mimeheader FILE_XML Content-type =~ /xml/i


--
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{

Reply via email to