'From' name not remembered - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com 2013-05-24T00:41:35Z http://fogbugz.stackexchange.com/feeds/question/8261 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://fogbugz.stackexchange.com/questions/8261/from-name-not-remembered 'From' name not remembered Michel de Ruiter 2011-05-19T20:58:02Z 2012-09-24T20:02:10Z <p>I read <a href="http://fogbugz.stackexchange.com/questions/3193/can-i-set-my-usersdefault-return-address-for-outgoing-mail" rel="nofollow">somewhere</a>, that the e-mail address selected at <strong>From:</strong> when replying should be 'sticky'. That would be great! But somehow it doesn't work for me...</p> <p>We have two mailboxes. I don't use the first, I do use the second. In the <strong>From:</strong> dropdown, I see four entries:</p> <ol> <li><code>"A mailbox name" &lt;ourinfo@address&gt;</code></li> <li><code>"Michel de Ruiter" &lt;ourinfo@address&gt;</code></li> <li><code>"Another mailbox name" &lt;oursupport@address&gt;</code></li> <li><code>"Michel de Ruiter" &lt;oursupport@address&gt;</code></li> </ol> <p>Every time when I press <strong>Reply</strong>, the third option is selected by default. So every time I change it to the fourth, because I like to have my personal name in the mail.</p> <p>The database confirms that it <em>should</em> be remembered: <code>Person.sFrom</code> is <code>"Michel de Ruiter" &lt;oursupport@address&gt;</code> for me, whereas for most other users it's the still default name.</p> <p>Where should I look to debug this?</p> http://fogbugz.stackexchange.com/questions/8261/from-name-not-remembered/8785#8785 Answer by Rich Armstrong for 'From' name not remembered Rich Armstrong 2011-07-19T15:14:11Z 2011-07-19T15:14:11Z <p>It depends. The <strong>From</strong> name is sticky for new <strong>Send Email</strong> actions. In the case of <strong>Reply</strong>, we default to the mailbox's email address. The only way to see the ixMailbox for the case is through Javascript. Hit F12 in Chrome and type goBug.ixMailbox.</p> <p>You can go look at the mailbox associated with the case and will probably see that it's the third mailbox in your dropdown.</p> http://fogbugz.stackexchange.com/questions/8261/from-name-not-remembered/8876#8876 Answer by Michel de Ruiter for 'From' name not remembered Michel de Ruiter 2011-07-27T08:27:15Z 2012-09-24T20:02:10Z <p>This customization seems to do the trick:</p> <pre><code>name: Reply as me by default description: Change the default From address to my personal name author: Michel de Ruiter version: 1.1.1.0 js: $(document).ready(function(){ // return if not on the case page if (!$('#bugviewContainer').length) return; function ChangeFromToMe() { if ($("#sFrom").length &amp;&amp; $('#sFrom option:selected').text().indexOf($('#username').text()) == -1) { $('#sFrom option:selected + option').attr('selected', 'selected'); DropListControl.refresh($("#sFrom")[0]); } } ChangeFromToMe(); $(window).on('BugViewChange', ChangeFromToMe); }); </code></pre> <p>It changes the default selected value to the personal name variant.</p>