<[EMAIL PROTECTED]> writes:

> I change orig_msgin_headers_as_raw_string to
> orig_msgin_headers_as_string and I can filter 
> "header 'subject:.*xxxx' drop" correctly

I assume you are using Chinese characters in xxxx ?

> but how can I filter my message's body (encoded by base64;
> text/plain & text/html & attachment)

Untested, but try making these changes:

In tmda-filter:

  orig_msgin_body = msgin.get_payload()

to
  
  orig_msgin_body = msgin.get_payload(decode=1)

Then use 'orig_msgin_body' instead of 'orig_msgin_body_as_raw_string'
in the infilter.firstmatch() call.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers
  • help! �ƺ�־
    • help! �ƺ�־
      • Jason R. Mastaler

Reply via email to