Re: [MlMt] Quote string on Reply messages
On 15 Sep 2014, at 17:54, Jeremy Cowgar wrote: So, what I did was 1. Quit MailMate 2. Issue the defaults statement 3. killall cfprefsd 4. Start MailMate When MailMate asks for the preferences, cfprefsd then had to reload them from disk. At least that is my interpretation of what is going on. In my very limited searching, I didn't see a way to tell cfprefsd to reload the settings. I have never needed to do step 3. Not even if I did step 2 before step 1, but to be honest I have never read up on the details of how this is working (and how/why it could fail). Your theory makes sense, but users do not (at least not in general) have your problem. I don't know why. In any case, I've seen other developers introduce a URL scheme for setting/clearing (hidden) preferences. Eventually I should do that as well since it would be much more user friendly. This would definitely not require killing `cfprefsd`. -- Benny ___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate
Re: [MlMt] Quote string on Reply messages
On 15 Sep 2014, at 11:38, my good friend Jeremy Cowgar wrote: That looks strange. MailMate has no code that clears this setting. Do other settings stick between launches of MailMate? (You could just try the same as above with `MmDummySetting`.) % ps ax|grep MailMate 6620 s000 R+ 0:00.00 grep MailMate % defaults write com.freron.MailMate MmDummySetting -string "Hi" % defaults read com.freron.MailMate MmDummySetting Hi % open /Applications/MailMate.app % defaults read com.freron.MailMate MmDummySetting 2014-09-15 11:34:14.126 defaults[6052:507] The domain/default pair of (/Volumes/My HD/Users/jeremy/Library/Preferences/com.freron.MailMate, MmDummySetting) does not exist Not sure what to do here. Google and a little experimenting. I am not totally sure how this works, but it seems that Mavericks caches preferences. So they are read once from disk, stored in the cfprefsd daemon. When MailMate asks for preferences, it gets the data from cfprefsd automatically w/Apples system calls. defaults updates the file but not cfprefsd! So, what I did was 1. Quit MailMate 2. Issue the defaults statement 3. killall cfprefsd 4. Start MailMate When MailMate asks for the preferences, cfprefsd then had to reload them from disk. At least that is my interpretation of what is going on. In my very limited searching, I didn't see a way to tell cfprefsd to reload the settings. Would be interesting in thoughts on this. As you can see from my silly Reply To Quote String, it is working. I've tried opening and closing MailMate several times now and the setting persists. It does not persist if I do not kill cfprefsd. -- Jeremy___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate
Re: [MlMt] Quote string on Reply messages
On 15 Sep 2014, at 11:31, Benny Kjær Nielsen wrote: On 15 Sep 2014, at 15:56, my good friend Jeremy Cowgar wrote: Now, once I start mail mate, I execute: % defaults read com.freron.MailMate MmReplyWroteString and defaults returns to me an error: 2014-09-15 09:54:52.734 defaults[2365:507] The domain/default pair of (/Volumes/My HD/Users/jeremy/Library/Preferences/com.freron.MailMate, MmReplyWroteString) does not exist Any thoughts on how I can make this work? That looks strange. MailMate has no code that clears this setting. Do other settings stick between launches of MailMate? (You could just try the same as above with `MmDummySetting`.) % ps ax|grep MailMate 6620 s000 R+ 0:00.00 grep MailMate % defaults write com.freron.MailMate MmDummySetting -string "Hi" % defaults read com.freron.MailMate MmDummySetting Hi % open /Applications/MailMate.app % defaults read com.freron.MailMate MmDummySetting 2014-09-15 11:34:14.126 defaults[6052:507] The domain/default pair of (/Volumes/My HD/Users/jeremy/Library/Preferences/com.freron.MailMate, MmDummySetting) does not exist Not sure what to do here. -- Jeremy___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate
Re: [MlMt] Quote string on Reply messages
On 15 Sep 2014, at 15:56, my good friend Jeremy Cowgar wrote: However, I can never make this work. I copy that line directly, paste it into the console and all executes fine. I can even "read" it back, and all is good. % defaults write com.freron.MailMate MmReplyWroteString -string 'On %e %b %Y, at %k:%M, my good friend ${from.name:${from.address}} wrote:' Seems to work for me as seen above. Now, once I start mail mate, I execute: % defaults read com.freron.MailMate MmReplyWroteString and defaults returns to me an error: 2014-09-15 09:54:52.734 defaults[2365:507] The domain/default pair of (/Volumes/My HD/Users/jeremy/Library/Preferences/com.freron.MailMate, MmReplyWroteString) does not exist Any thoughts on how I can make this work? That looks strange. MailMate has no code that clears this setting. Do other settings stick between launches of MailMate? (You could just try the same as above with `MmDummySetting`.) -- Benny ___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate
[MlMt] Quote string on Reply messages
Good morning! I see in the manual (http://manual.mailmate-app.com/hidden_preferences) that I can change the Reply String generated by MailMate defaults write com.freron.MailMate MmReplyWroteString -string 'On %e %b %Y, at %k:%M, ${from.name:${from.address}} wrote:' However, I can never make this work. I copy that line directly, paste it into the console and all executes fine. I can even "read" it back, and all is good. % defaults write com.freron.MailMate MmReplyWroteString -string 'On %e %b %Y, at %k:%M, my good friend ${from.name:${from.address}} wrote:' % defaults read com.freron.MailMate MmReplyWroteString On %e %b %Y, at %k:%M, my good friend ${from.name:${from.address}} wrote: Notice I changed it to something silly just to see it work for now, my company wants me to have a particular reply style that I am hoping I can mimic using this method. Anyway, I then load MailMate, hit reply and it adds the line: On 15 Sep 2014, at 9:45, John Doe wrote: i.e. it does not include "my good friend" Now, once I start mail mate, I execute: % defaults read com.freron.MailMate MmReplyWroteString and defaults returns to me an error: 2014-09-15 09:54:52.734 defaults[2365:507] The domain/default pair of (/Volumes/My HD/Users/jeremy/Library/Preferences/com.freron.MailMate, MmReplyWroteString) does not exist Any thoughts on how I can make this work? Jeremy Cowgar ___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate