Re: [Mimedefang] Empty Variables in filter_recipient

2017-05-12 Thread Dianne Skoll
On Fri, 12 May 2017 10:36:46 +
"Stagiair 2. Cisa"  wrote:

> Can I presume there isn't an answer for this question?

What MTA are you using?  Sendmail?  Postfix?

Can you post the Milter configuration lines from your MTA configuration file?

How are you invoking mimedefang and mimedefang-multiplexor?

Nobody else has ever encountered this, to my knowledge, which is why
nobody has responded.

Regards,

Dianne.
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Empty Variables in filter_recipient

2017-05-12 Thread Stagiair 2. Cisa
Hey

Can I presume there isn't an answer for this question?

I didn't receive a decline either.

Kind regards

Jente Busschodts

From: Stagiair 2. Cisa
Sent: donderdag 4 mei 2017 15:55
To: mimedefang@lists.roaringpenguin.com
Subject: Empty Variables in filter_recipient

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

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Empty Variables in filter_recipient

2017-05-08 Thread Marcus Schopen
Hi Jente,

see man page of mimedefang-filter

"In filter_recipient, it is set to the single recipient currently under
consideration."

There is also a good "sub filter_recipient" example in that man page.

Ciao!


___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] Empty Variables in filter_recipient

2017-05-04 Thread Stagiair 2. Cisa
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.
--


___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang