<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using mail folder to create a reply email message? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326704#M13705</link>
    <description>&lt;P&gt;After looking at DocumentListManager my guess is&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2011 19:21:01 GMT</pubDate>
    <dc:creator>karl_harris_</dc:creator>
    <dc:date>2011-12-14T19:21:01Z</dc:date>
    <item>
      <title>Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326695#M13696</link>
      <description>&lt;P&gt;I have a requirement to implement a reply function using an extended Nuxeo mail folder.&lt;/P&gt;
&lt;P&gt;Basically I need to include the Nuxeo stored subject and message body as well as the from/to email addresses in the mailTo mail action when the from field is clicked in the extended mail folder's content view.&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;P&gt;Since I do not have the standard mail content view when I extended the mail folder: What .xml extensions to I need to provide/override in Studio to get the standard mail content view and add the subject and email body text to the 'reply" email?&lt;/P&gt;
&lt;P&gt;Is there a better approach?&lt;/P&gt;
&lt;P&gt;Is Java Mail an overkill?&lt;/P&gt;
&lt;P&gt;Thanks, in advance for any assistance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2011 16:24:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326695#M13696</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-11-29T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326696#M13697</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Here is a suggestion of how you could do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Create a MailResponse Document type (or not, you could simply use in the step after, the MailMessage)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Add a User Action on the Document Summary  Actions filtering on MailMessage document type.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In the automation chain bound to the user action,use multiple time "set context variable" to put in the context of the chain the value of the fields that stores the sender and the body of the email you want to reply to,&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In the same automation chain,get the parent MailFolder, then use Document &amp;gt; Create to create a document of type MailResponse (orMailMessage). For the properties, use the context variable you computed previously, so that you update the title (with a "Re" prefix string), the recipients and the begining of the body. You can use the Service &amp;gt; Create Relation to create a relation between them at the same time.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In the same automation chain, use UI &amp;gt; Navigate to Document to go to the document type&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In the same automatin chain, use UI &amp;gt; Change tab to switch to edit tab. (That's why I think you'd better have your own mail response document type)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Add a user action displayed in the Document edition form category that save and send the email (using the Notification &amp;gt; Send Email operation)&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;That's is just the idea. I can give a complete solution tomorrow if necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 23:21:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326696#M13697</guid>
      <dc:creator>Alain_ESCAFFRE</dc:creator>
      <dc:date>2011-11-30T23:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326697#M13698</link>
      <description>&lt;P&gt;Thanks, I will try this method as soon as I get the  extended mail folders working correctly. See my latest posting.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2011 00:50:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326697#M13698</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-02T00:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326698#M13699</link>
      <description>&lt;P&gt;Finally got around to trying this. Here are my results so far......&lt;/P&gt;
&lt;P&gt;I have a user action which fires the automation chain that seems to work.&lt;/P&gt;
&lt;P&gt;When I tried number 3 above I got an error complaining about Null document.&lt;/P&gt;
&lt;P&gt;The context of the document does not seem to be available to the automation chain after the I use the Fetch-&amp;gt;UI Selected Documents.&lt;/P&gt;
&lt;P&gt;I simplified the troubleshooting by trying to just output some of the email fields in a message block to verify the context using User Interface-&amp;gt; Add Info Message with fields like dc:title and mail:sender by using expr:@{Document["mail:sender"]} as the message content. I've also tried
#{Document['mail:sender"]} with the same result: I get a blank for the message. If I put a prefix on the output only the prefix prints.&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 19:24:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326698#M13699</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-09T19:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326699#M13700</link>
      <description>&lt;P&gt;I tracked this problem to the Fetch-&amp;gt; UI Selected Documents does not seem to working correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2011 19:22:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326699#M13700</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-12T19:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326700#M13701</link>
      <description>&lt;P&gt;I still cannot get past number 3 on the listing.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2011 17:17:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326700#M13701</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-13T17:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326701#M13702</link>
      <description>&lt;P&gt;A few more pieces to this puzzle.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 00:04:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326701#M13702</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-14T00:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326702#M13703</link>
      <description>&lt;P&gt;It appears this class(GetSelectedDocuments) is getting a Null value from the DocumentsListManager, yet the ClipBoardActionsBean (called by "Add to worklist" button) seems to be working (non null)  with a similar call to DocumentsListManager.&lt;/P&gt;
&lt;P&gt;ClipBoardActionsBean fails more gracefully if a null is found.&lt;/P&gt;
&lt;P&gt;The GetSelectedDocuments call looks like "almost" the same call except for the OperationsHelper wrapper.&lt;/P&gt;
&lt;P&gt;I guess that's where I'll go next....... on to OperationsHelper.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:29:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326702#M13703</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-14T17:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326703#M13704</link>
      <description>&lt;P&gt;Looks like OperationsHelper gets a SEAM DocumentsListManager from a SEAM utility called Contexts.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 18:45:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326703#M13704</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-14T18:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326704#M13705</link>
      <description>&lt;P&gt;After looking at DocumentListManager my guess is&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:21:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326704#M13705</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-14T19:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326705#M13706</link>
      <description>&lt;P&gt;JIRA entry created&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:35:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326705#M13706</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-14T19:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326706#M13707</link>
      <description>&lt;P&gt;How is you Automation chain called from the UI? A button? An action? Something else? This is not clear to me from your description as you did several different tests.&lt;/P&gt;
&lt;P&gt;Normally chains that are called through action buttons or links produce an action link of &lt;CODE&gt;#{operationActionBean.doOperation('yourchain')}&lt;/CODE&gt; and this propagates the Seam context automatically. Are you doing the call differently?&lt;/P&gt;
&lt;P&gt;If you call a Seam-related operation from an Automation chain that's not called through Seam, you have to propagate the proper Seam context from the UI level by passing the &lt;CODE&gt;conversationId&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;To do that you have two choices:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;either run your chain through another chain that uses &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.4.2/viewOperation/Seam.RunOperation"&gt;Seam.RunOperation&lt;/A&gt;,&lt;/LI&gt;
&lt;LI&gt;either start and end your chain with &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.4.2/viewOperation/Seam.InitContext"&gt;Seam.InitContext&lt;/A&gt; and &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.4.2/viewOperation/Seam.DestroyContext"&gt;Seam.DestroyContext&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 14 Dec 2011 20:15:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326706#M13707</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-12-14T20:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326707#M13708</link>
      <description>&lt;P&gt;Automation chain is called from UI via a button, created in Studio and linked to a content view. The button is next to the Delete, Add to worklist, Copy buttons on the content View. The content view is displaying the contents of a extended MailFolder.Add to worklist button works ok, my button does not, so I looked at how the Add to worklist button works for an example. I have used SEAM outside of Nuxeo, for other projects, so I assumed, as stated above, the SEAM context (conversationId) is handled "under the covers" if I used a simple Studio UI implementation.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 21:33:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326707#M13708</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-14T21:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326708#M13709</link>
      <description>&lt;P&gt;The content view is created with a Studio layout, using a set of templates used to display email message fields by the standard email folder. I needed to extend the email folder to create the button(s) I need to work on the email messages contained in the folder.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 21:45:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326708#M13709</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-14T21:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using mail folder to create a reply email message?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326709#M13710</link>
      <description>&lt;P&gt;Actually, I think that your null pointer exception is for the object "Document". What you should do is, just after the Fetch Selected Documents, to run an Execution Flow &amp;gt; Run Document Chain. The reason is that the "Document" object is not available when the input is "Documents".&lt;/P&gt;
&lt;P&gt;You can see a sample of this at the page 99 on the following &lt;A href="http://doc.nuxeo.com/display/Studio/Nuxeo+Studio+Training+slides"&gt;slides&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;A stacktrace would help to make sure of what is null.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2012 18:59:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-mail-folder-to-create-a-reply-email-message/m-p/326709#M13710</guid>
      <dc:creator>Alain_ESCAFFRE</dc:creator>
      <dc:date>2012-01-05T18:59:50Z</dc:date>
    </item>
  </channel>
</rss>

