<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="plaintext" style="white-space: normal;"><p dir="auto">Actually, I think that the solution you adopted was correct even in principle: attachments are part of an inbound email message, and should not be overwritten. If nothing else, what if for some reason the message was refetched from the IMAP server? What if you look at the attachment from one device, which does its own IMAP fetches, after editing it on another? I'd always assumed that attachments were locked; I was glad when MailMate finally implemented it.</p>
<br><p dir="auto">On 26 Jan 2023, at 6:16, Benny Kjær Nielsen wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;"><p dir="auto">On 7 Jan 2023, at 13:35, Robert M. Münch wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;"><p dir="auto">I see this effect I think since I use 5933.</p>
</blockquote><p dir="auto">The change is in r5927 (November 10th, 2022).</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;"><p dir="auto">I do exactly the same as in the past, but now is looks like files are somehow locked by MM. Checking the file attributes I see that the *Immutable* flag is set.</p>
<p dir="auto">Is this a known problem? How to fix/workaround it?</p>
</blockquote><p dir="auto">I can see this developed into a very large thread. Someone found the workaround, but I repeat it here to make sure it's more easily found:</p>
<p dir="auto"> defaults write com.freron.MailMate MmAttachmentsCacheImmutableStateDisabled -bool YES</p>
<p dir="auto">But it's only to be used by users who understand that attachments are saved in a *temporary* location which can be deleted at any time. It just doesn't happen very often.</p>
<p dir="auto">I can add that the change was motivated by a user working on a document for weeks (possibly hundreds of hours). The corresponding email was later deleted and MailMate cleaned up by also removing temporary files related to the email. Note that the cache is not part of a Time Machine backup. The file could not be salvaged.</p>
<p dir="auto">I have some notes on how this behavior could be improved, but the quick/safest fix was to simply disallow it.</p>
<p dir="auto">--
<br>
Benny
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__freron.com_become-5Fa-5Fmailmate-5Fpatron_&d=DwIDaQ&c=009klHSCxuh5AI1vNQzSO0KGjl4nbi2Q0M1QLJX9BeE&r=jMObdJSnQpbSLekl2NjvrJVVxCKbmtg8cvi5143NF8Q&m=CVUdP8bBLz7fRhNlLBI-ZlHpQxtZBnKht5oCemq3-XPvK8y6raf-Ua5kpSo2unz8&s=aXCUwTv4z3dPfQejXS5T4fwYNpPguD6bxo9S4XBFA64&e=_______________________________________________" style="color: #777777;">https://urldefense.proofpoint.com/v2/url?u=https-3A__freron.com_become-5Fa-5Fmailmate-5Fpatron_&d=DwIDaQ&c=009klHSCxuh5AI1vNQzSO0KGjl4nbi2Q0M1QLJX9BeE&r=jMObdJSnQpbSLekl2NjvrJVVxCKbmtg8cvi5143NF8Q&m=CVUdP8bBLz7fRhNlLBI-ZlHpQxtZBnKht5oCemq3-XPvK8y6raf-Ua5kpSo2unz8&s=aXCUwTv4z3dPfQejXS5T4fwYNpPguD6bxo9S4XBFA64&e=_______________________________________________</a>
<br>
mailmate mailing list
<br>
mailmate@lists.freron.com
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.freron.com_listinfo_mailmate&d=DwIGaQ&c=009klHSCxuh5AI1vNQzSO0KGjl4nbi2Q0M1QLJX9BeE&r=jMObdJSnQpbSLekl2NjvrJVVxCKbmtg8cvi5143NF8Q&m=CVUdP8bBLz7fRhNlLBI-ZlHpQxtZBnKht5oCemq3-XPvK8y6raf-Ua5kpSo2unz8&s=Y_VFN7KmNaHukVMnC6bkYIeo4tQuJ0NAJiiUq0lORIs&e=" style="color: #777777;">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.freron.com_listinfo_mailmate&d=DwIGaQ&c=009klHSCxuh5AI1vNQzSO0KGjl4nbi2Q0M1QLJX9BeE&r=jMObdJSnQpbSLekl2NjvrJVVxCKbmtg8cvi5143NF8Q&m=CVUdP8bBLz7fRhNlLBI-ZlHpQxtZBnKht5oCemq3-XPvK8y6raf-Ua5kpSo2unz8&s=Y_VFN7KmNaHukVMnC6bkYIeo4tQuJ0NAJiiUq0lORIs&e=</a></p>
</blockquote><br><p dir="auto"> —Steve Bellovin, <a href="https://www.cs.columbia.edu/~smb" style="color: #3983C4;">https://www.cs.columbia.edu/~smb</a></p>
</div>
</div>
</body>
</html>