how to reject for a given recipient when there are multiple recipients

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
Babita
New user
New user
Posts: 5
Joined: 2020-08-07 05:49

how to reject for a given recipient when there are multiple recipients

Post by Babita » 2020-08-07 07:03

Hi

Trying to write a script to reject message for particular user based on their number of emails received for day/month. I observed the events are called once for all the recipients.
So when the reject is sent on that event [ result.value = 1 ] , the message is getting rejected for all recipients. Is there a way to reject message for particular recipient.

User avatar
mattg
Moderator
Moderator
Posts: 21268
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: how to reject for a given recipient when there are multiple recipients

Post by mattg » 2020-08-07 09:39

Is this a local account or an external account

If local, easiest to create an account rule

If external, I'd copy the message to a new message, grab all recipients and remove the one you don't want to get the message, before adding them to the copied message

read this thread >> https://www.hmailserver.com/forum/viewt ... =9&t=17190
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply