Fix MsgFiler 4’s Random Quitting on macOS

A MsgFiler user pointed me to a possible fix for the random quitting phenomenon that some users have been experiencing. As I mentioned in my original post, I had not been seeing this. It has been very difficult for me to reproduce the problem on my machines. Several people have been testing this solution, and it seems to be working.

Automatic termination on macOS

Automation termination of inactive apps has been a part of macOS since OS X Lion. The feature originated on iOS. It was designed to free up computing resources on the memory-constrained, portable devices. For many users, this can be a good thing, as users don’t have to fuss around with quitting unused applications. MsgFiler, on the other hand, relies on being available at the press of its keyboard shortcut when in Mail. So, we don’t want macOS to quit it whenever it goes inactive.

Here are some more links I came across when investigating this problem:

Here are two ways to disable automatic termination of apps on macOS. The first targets just MsgFiler 4. The second method shows you how to disable it for all applications on your Mac.

Disabling automation termination of MsgFiler 4

  1. Open Terminal.
  2. Type the following command and press Return:

    defaults write com.atow.MsgFiler4 NSDisableAutomaticTermination -bool yes
  3. Restart your computer for the changes to take effect.

The command above will just target the MsgFiler 4 application and prevent it from being automatically terminated by macOS.

Disabling automation termination of all apps

To disable Automatic Termination of all apps on macOS, follow these steps:

  1. Open Terminal.
  2. Type the following command and press Return.

    defaults write -g NSDisableAutomaticTermination -bool yes
  3. Restart your computer for the changes to take effect.

Try it out and report back

For reasons I still don’t fully understand, it seems that some users’ machines are configured in a way that causes MsgFiler 4 to be affected by the automatic termination policy. Others, like myself, have not encountered this issue. I have been developing MsgFiler 4 on a 14” M2 Max MacBook Pro without migrating any data from a previous Mac. I would expect automatic termination to be enabled by default, but I have not experienced the bug so far. I would be interested in hearing from users whose machines were affected, particularly whether they had migrated data from a previous macOS installation or if their machine was newly configured out of the box.

If you’ve been experiencing the issue where MsgFiler 4 randomly quits throughout the day, try one of the two methods mentioned above. Let us know in the comments below if this has permanently resolved the problem for you!

16 thoughts on “Fix MsgFiler 4’s Random Quitting on macOS”

  1. Adam, I’ve had no problems running MsgFile4 – on Sonoma or on Sequoia 15.0 when I upgraded a couple of days ago. Running it on a 2024 MBP Apple M3 Pro Chip and 36GB Memory

    Thank you for MsgFiler!

    w/r, David

    David Tuma Captain, USN, Retired 20500 Langley Drive Potomac Falls, VA 20165-3571 C: 703.447.4110 david_tuma@me.com

    This message and attachments, if any, is a private communication intended for the recipients only. It may contain information that is privileged or confidential. If you are not the intended recipient, please do not read, copy or use it, and do not disclose it to others. Please notify the sender of the delivery error by replying to this message, and then delete it and any attachments from your system. Thank you.

    >

  2. Running Sonoma 14.6.1 on a new Macbook Pro installed with MsgFiler 4.1.4 from AppStore after purchase (not migrated). MsgFiler set to start with the iOS start. From time to time not responding on my file command shortcuts, have to open the MsgFiler app again to get the filing shortcuts to work

      1. Using the terminal command “defaults write com.atow.MsgFiler4 NSDisableAutomaticTermination -bool yes” worked for me, at least after a few hours test now, no issues. Thanks.

      1. I can’t confirm that. Probably not. Let me restart and I will get back to you.

        Cristian Adamo

        >

      2. Good morning… just to close the loop…. I restarted my MacBook and MSGFiler has been running without a problem for several days now… so far so good.

        Best,

        Cristian

        >

  3. I installed the terminal fix to stop MsgFiler from quitting. And it WORKED! It no longer quits, at least not for 2 days. Thans, Adam, for fixing this here and also for helping me with another issue I had (due to a mildly corrupted Mail database). Really appreciate this!

    — Bruce

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.