[Mimedefang] Get recipients

Richard Laager rlaager at wiktel.com
Mon Mar 20 16:18:11 EDT 2017

On 03/20/2017 10:52 AM, Stagiair 2. Cisa wrote:
> Now coming to the point: I always had a fixed value for the email adress
> to test my functions but now I want to get the email address(es) from
> the incoming mails.

Look at the @Recipients array.

Obviously, a single message may have multiple recipients, so you need to
deal with that accordingly. For example, if you have one recipient who
wants the attachment replaced and one who does not, what do you do? The
details of how you want to handle that depend on the situation. If you
want to honor both, you will need to do something involving resending
the message--see resend_message(). See also stream_by_recipient().

See `man mimedefang-filter` for more details.


More information about the MIMEDefang mailing list