Re: [exim] How to Auto Decode RFC2047 Messages

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Craig Whitmore
Date:  
À: Tom Kistner
CC: exim-users
Sujet: Re: [exim] How to Auto Decode RFC2047 Messages
Well..

warn log_message = email = $local_part@$domain received_for = $received_for

gives in logfile

2006-01-17 22:03:51 1Eymkp-0002Nz-Nr H=(terminal) [60.234.13.222] Warning:
email = @ received_for =

so you cannot either of these 2 in acl_smtp_mine (should I be able to???)

so I had to:

acl_check_rcpt:

warn set acl_m3 = $local_part@$domain

warn log_message = email = $local_part@$domain received_for = $received_for
acl_m3 = $acl_m3
in Log File:

2006-01-17 22:11:03 1Eymrn-0002RN-4o H=(terminal) [60.234.13.222] Warning:
email = @ received_for = acl_m3 = report2@???


And final:

warn log_message = Stored spam report from $sender_address.
      condition = ${if match{$acl_m3}{report2@???}{true}{false}}
       condition = ${if eq{$mime_content_type}{message/rfc822}{1}{0}}
       decode = /tmp/spam


Now.. how do I deliver these files to a mailbox (call a transport with this
file names?)

----- Original Message -----
From: "Tom Kistner" <tom@???>
To: "Craig Whitmore" <lennon@???>
Cc: <exim-users@???>
Sent: Tuesday, January 17, 2006 9:19 PM
Subject: Re: [exim] How to Auto Decode RFC2047 Messages


> Craig Whitmore wrote:
>
>> Someone Gets Spam
>> They "forward as attachment" the message to report@???
>> exim decodes the message (or messages) forwarded and places them into a
>> Folder
>> so I can do something with them later
>> Like Spamcop does when you report spam
>
> Use the MIME ACL.
>
> Something like (untested):
>
> acl_check_mime:
>
> warn log_message = Stored spam report from $sender_address.
>      condition = ${if eq{$received_for}{report@???}{1}{0}}
>      condition = ${if eq{$mime_content_type}{message/rfc822}{1}{0}}
>      decode = /path/to/store/folder

>
> You'll then have all the unmodified attached messages in the
> /path/to/store/folder directory.
>
> /tom
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim
> details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>