Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to save the "to" recipient without the cc with JEMH

Chiara Squilloni
Contributor
June 18, 2018

Hi everyone,

I'm evaluating the buying of the plugin of JEMH.

I'm testing it in the stage enviorment.

In detail, I want to save in a custom field *only* the other senders of the email *without* the email cc.

Is this possible?

1 answer

1 vote
Deleted user June 18, 2018

Hello,

In detail, I want to save in a custom field *only* the other senders of the email *without* the email cc.

 Can you please be more specific about what addresses you want to store?

By Default if JEMH is configured to store addressee addresses in a custom field, this will include all To: addresses that do not match the catch email address, in addition to the CC'd addresses.

If you only want to store the sender address that can be achieved via JEMH Profile -> Email -> Sender Processing -> Non-JIRA user sender address to Text custom field

For further discussion, please create a support request with us directly: The Plugin People - Jira

Kind Regards,

Reece

Chiara Squilloni
Contributor
June 21, 2018

Thank you Reece,

for example I create a JEMH profile that polling the email test.jira@somedomain.com

If for example we send an email:

from sender@somedomain.com

to: test.jira@somedomain.com; me@somedomain.com; you@somedomain.com

cc: cc1@somedomain.com; cc2@somedomain.com; cc3@somedomain.com

I configured the JEMH profile in the email section:

Sender processing: non jira-user Assign non jira-users Email to Text CustomField     Email Sender
Addressee Processing:
Assign non jira-user Email to Text CustomField     EmailTo

CC Email Custom Field     Email CC

But in the emailTo I find not only me@somedomain.com and you@somedomain.com but also the CC addressee (cc1.. ecc).

I want to store only the to recipient.

Deleted user June 21, 2018

If you only want to store the to address, you can achieve this via JEMH Custom Field Defaults

Using a dynamic velocity scripted value for your custom field default, you can store the incoming to addresses by using the following script:

#foreach ($recipient in $message.getHeader("To"))
$recipient
#end

 If you require any further assistance, please raise an issue in our Jira directly: The Plugin People - Jira

 

Kind Regards,

Reece

Chiara Squilloni
Contributor
June 21, 2018

Thank your Reece, I will try this!

Suggest an answer

Log in or Sign up to answer