<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>email status not updated to Read when email is opened</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/6062/email-status-not-updated-to-read-when-email-is-opened</link><description>I am still on 11.x Professional (Yes, planning to convert/upgrade as soon as I humanly can) 
 I am not sure when exactly this happened, but it used to be that when opening an email from the emails subpanel on Cases (clicking on the name to go to Emails</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: email status not updated to Read when email is opened</title><link>https://sugarclub.sugarcrm.com/thread/28888?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 08:22:03 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:501ca00b-90a3-4fb2-a8eb-ccbfc201e744</guid><dc:creator>Enes Saridogan</dc:creator><description>&lt;p&gt;Hmm this is so strange because it works on my side ... 12.0.3 ENT on site&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: email status not updated to Read when email is opened</title><link>https://sugarclub.sugarcrm.com/thread/28791?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 17:24:17 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6cd2d109-c42a-4139-924f-eea7bbe08755</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Not working on 11.x for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: email status not updated to Read when email is opened</title><link>https://sugarclub.sugarcrm.com/thread/28788?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 14:06:43 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:c6881b2d-de75-4f1b-a0a9-a5417fe0d295</guid><dc:creator>Thomas Gallus</dc:creator><description>&lt;p&gt;Hi Enes,&lt;/p&gt;
&lt;p&gt;that didn&amp;#39;t work for our 12.0.2 Enterprise Sugar. &lt;br /&gt;I opened a support case on that.&lt;br /&gt;Thanks anyway.&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: email status not updated to Read when email is opened</title><link>https://sugarclub.sugarcrm.com/thread/28785?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 10:59:01 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:dac8bff5-6693-4428-b855-25b954919637</guid><dc:creator>Enes Saridogan</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="/members/francescas"&gt;Francesca Shiekh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Here is the solution for your problem.&lt;/p&gt;
&lt;p&gt;Create the file custom/modules/Emails/clients/base/views/record/record.js and add the following code :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="javascript"&gt;({
	extendsFrom : &amp;quot;RecordView&amp;quot;,

	initialize: function (options) {
	    this._super(&amp;#39;initialize&amp;#39;, [options]);

		this.model.on(&amp;quot;change:status&amp;quot;, this._changeEmailStatusIfNeeded, this);

		app.events.on(&amp;#39;app:view:change&amp;#39;, function(data) {
			this.model.fetch();
		}, this);
	},

    _changeEmailStatusIfNeeded: function(){
    	if(this.model.previous(&amp;quot;status&amp;quot;) == null &amp;amp;&amp;amp; this.model.get(&amp;quot;status&amp;quot;) == &amp;quot;unread&amp;quot;){ // in order to let the user change status back to unread if they want to
    		this.model.set(&amp;quot;status&amp;quot;, &amp;quot;read&amp;quot;);
    		this.model.save();
    	}
    }
})&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The change happened on V8 or V9, I don&amp;#39;t remember.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this would help you :-)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Enes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: email status not updated to Read when email is opened</title><link>https://sugarclub.sugarcrm.com/thread/28784?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 10:46:20 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:dbeb2e65-6e01-4a84-ae38-22598eed59af</guid><dc:creator>Thomas Gallus</dc:creator><description>&lt;p&gt;Hi FrancescaS,&lt;/p&gt;
&lt;p&gt;yes I do. Did you find a solution for that problem?&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>