Pages: 1
RSS
Search value within the list of e-mails
 
Hi All,

I have a case, where I need my manager's address to be added to the CC field every time I press reply/reply to all AND if it is not there already.

Below is the code I've come up to

%SETPATTREGEXP="^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$"%-
%VAR1=%REGEXPBLINDMATCH(%CCLIST)%-
%IF:"%VAR1"<>"mng@adress.com":%CC="mng@adress.com"%-

It works if there are none of addresses in CC. Or if there is only 1 e-mail address in CC.
The problem is it doesn't work in case there are couple of e-mail addresses in the CC field. If there are couple of addresses it will add mng@adress.com in any case.

So the question would be, how should I write the expression so it looks for and finds mng@adress.com even within the list of many e-mail addresses.
 
What about workaround? Add your code for hidden copy field.
Модератор. Не являюсь сотрудником RitLabs (I'm not an employee of Ritlabs). https://belrus.biz/vendors/ritlabs.html
 
Quote
George Salnik wrote:
What about workaround? Add your code for hidden copy field.
Can be, however not that effective, because if someone replies after mng is in Hidded copy, manager won't see the reply :(
 
Some angry offtopic:

All your workflow is not efficient. Are you work for Kirby/Herbalife? ))

If chief wants to receive any incoming messages of employee then he need to
- in mailbox settings on mailserver do auto-forwarding copies to his box
- or have it full access to employee email
- or as I write early needs to do hidden copy, if something urgent for your boss will be answered from your customer then you will resend to him manually. Why don't your chief needs all answers from all customers? Why don't your customer needs to see that you do any mail copy to the chief; Who do you think you are after such copies in eyes of customers?
Модератор. Не являюсь сотрудником RitLabs (I'm not an employee of Ritlabs). https://belrus.biz/vendors/ritlabs.html
Pages: 1