[Mimedefang] Empty Variables in filter_recipient

Stagiair 2. Cisa stagiair2 at cisanet.be
Thu May 4 09:54:48 EDT 2017


Hey

Since a few I'm experiencing problems with a project I'm making with MIMEDefang.
I created a  sub filter_recipient  (mimedefang.pl):

      sub filter_recipient
      {
            my $testString = "Test";
            my ($recipient, $sender, $rest_of_the_junk) = @_;
            my $x = $Recipients[0];
            if   (open(RECIPFILE, '>>all_recipients')) {
                  print RECIPFILE "$sender - $recipient - $testString - $x";
                  close (RECIPFILE);
            }
      }

In this sub I put the $sender, 2 times the current recipient (different ways) and a teststring in a file.
I read this file again in my filter (mimedefang-filter) and append it to the mailbody with a string.

This works, only is $sender, $recipient and $x empty. The $testString is hower showing.

OUTPUT: "- - TEST -"

Is there any explanation why $Recipients(@Recipients) and $sender are empty?

After some testing I found out that he sees 3 entries in the @Recipients when I send the mail to 3 recipients (same for other amount of recipients, he sees the amounts but empty)

Kind regards

Jente Busschodts



------------------------------------------------------------------
This message has been scanned for viruses and dangerous content by
Cisa Antispam Service, and is believed to be clean.
------------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20170504/5bedccd1/attachment.html>


More information about the MIMEDefang mailing list