Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Extract email information
function extractEmailInformation(notification)
{
var created = new Notification(notification);
//eg. using BenkoDesk, card title is like:
//From Name <user@example.org> "Subject"
if(/.+ <(.+)> "(.+)"/.test(created.name())
{
created.setCustomFieldValue("Email",parts[1]);
created.setDue(Trellinator.parseDate(parts[2]));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment