I don't know if this is even possible. Mail2web it's working great with notifications, but I want to do something more. When I create a node I assign the node to a user using a user reference field, then with workflow_ng I load the cck user reference field to send an email to the referenced user and let him know that a new task has been assigned to him.

is it possible that the user could reply to the workflow_ng email and the reply could be posted as a comment on the node?

Thanks in advance

Comments

lelizondo’s picture

Title: Workflow-ng integration » Mail2web and Workflow-ng integration
Project: Mail to Web » Workflow-ng
Version: 5.x-1.0-beta1 » 5.x-2.1

After some research I found that mail2web has a function that builds the email message-id in the form of 'uid.nid.cid.time.signature@server', this way mail2web reads the message-id with the function mail2web_parse_messageparams and knows where to publish the comment. Mail2web builds $messageid with 2 functions, mail2web_build_messageid and mail2web_signature..

This way an email sent with mail2web would have a message-id like this:

1.15.38.1229216772.a9a7f8742b5895313e2afce5ff81e5cd@mydomain.com
1 is the uid
15 is the nid
39 is the cid
1229216772 is the time
and a9a7f8742b5895313e2afce5ff81e5cd is the signature

Workflow_ng, when sending an email doesn't set the Message-ID, an email sent with workflow_ng would be something like this:

Message-Id: <E2LDWOP-0002xt-05@ans49.midphase.com>

I don't really know how E2LDWOP-0002xt-05 is constructed.

the question would be how to create an action or something with workflow_ng to set the message-id in the form of 'uid.nid.cid.time.signature@server' so mail2web could know where to publish the comment.

Maybe an advanced user could help me out with this because I have no clue.

Moving this to workflow_ng because mail2web has nothing to do with this.

Thanks