SpamSieve "Filter Messages" Shortcut not working

Hi, on one of my Macs the Filter Messages shortcut is not working. This is an older machine with Big Sur 11.7.10. I just updated SS to 3.1, but no change.

I also noticed that there was a global macOS shortcut for Cmd+Ctrl+L for “Search with Google”, which I now disabled, but it’s still not working. I restarted SpamSieve / rebooted once in the meantime. I did notice that I now get the little “blip” macOS sound for “unknown command / keystroke” when I press the shortcut now (didn’t use to before global shortcut was disabled).

What does work are the Train as Spam / Good shortcuts. Also selecting “Filter Messages” from the menu does work. On another Mac with Sequoia and Spam Sieve 3.1, also the Filter Messages shortcut works as expected.

Which mail program are you trying to use Filter Messages with?

I think the standard keyboard shortcut for the Search With Google system service is Command-Shift-L, which doesn’t conflict with SpamSieve. Does the SpamSieve command work if you go to System Preferences and change the service shortcut to something else or temporarily disable it?

Ah yes, should have said. This is with Apple Mail.

You are right, just checked, that global shortcut is Command-Shift-L indeed. I misread this. But I’m trying to use Cmd+Ctrl+L in Mail. (Then the “blip” sound must have been there before as well and I didn’t notice… I only access this machine through Screen Sharing (with the built-in viewer, launched from Finder with “Connect To Server”).

Which “service shortcut” do you mean? The “Search with Google”? Yes, I tried disabling to no effect. (But that was logical, since it’s a different key combination :see_no_evil:.)

As I think about it, could it be the Screen Sharing Viewer application is capturing Control-Command-L? Not sure how to find out :thinking:.

One more hint: In the “Message” menu in Apple Mail I see “SpamSieve - Train as Good” and “SpamSieve - Train as Spam” entries with the corresponding (working) shortcut hints. But I don’t see “Filter Messages”. (For manually running it I was using the Menu of the Spam Sieve Icon in the top-right, not the Apple Mail menu; there I see all 3.)

Screenshot 2024-12-15 at 16.26.50

Yes, because you had said that on your Mac the shortcuts were the same.

OK.

I guess you would need to try it directly, without screen sharing. But I can say that for me the shortcut works fine via screen sharing.

That’s normal, because with the older plug-in based setup the Filter Messages functionality was available via the Apply Rules menu command.

There is unfortunately no way that I know of to see which app/service is claiming a particular keyboard shortcut. If you can’t figure out where the conflict is, you could use this Terminal command to change the shortcut for Filter Messages:

defaults write com.c-command.SpamSieve KeyEquivalentFilterMessages l

(Change the l to the desired letter; the modifiers would still be Command-Control.)

Or, since you’re on Big Sur and using the plug-in, you could just use Apply Rules and its shortcut Command-Option-L.

Aha! I didn’t realize that is the way to do this for the older version. That would be perfectly fine for me, thanks for the tip. However, it seems with this the following issue has resurfaced with this: https://forum.c-command.com/t/re-filtering-message-already-in-spam-folder-results-in-message-disappearing/16515/1

I’ve just tried this with two Spam messages that were already in the Junk folder. I selected them (one at a time) and ran “Apply Rules” via shortcut. From the log I can see that they were classified as Spam by SpamSieve. But they disappeared from the Junk Mailbox. As mentioned, this is version 3.1, where I haven’t seen the original issue linked above any more. (In particular I don’t see this if I run “Filter Messages” from the Spam Sieve Menu.)

One more technical question for my understanding: Who is defining the Control-Command-L shortcut? Is that the Spam Sieve Mail Plugin? For the other two shortcuts (Train as Spam/Good), I can see that the Apple Mail “Messages” menu is “animated” when I select them (it briefly blinks once in color). This is logical, since those two are Menu entries in that menu. However, Control-Command-L is not an entry in that menu, so the mechanism to define the shortcut is maybe a different one?

Oh, I tried this by configuring Control-Command-L for some other global shortcut. This works. I disabled it again. So it’s not a Screen Share issue and not a Global Shortcut issue it seems.

I don’t understand why you are using Apply Rules on messages that are already in Junk. It’s intended for messages that have not been filtered yet.

However, if the messages are disappearing that is a different issue from the one with Filter Messages that was fixed in SpamSieve 3.0.6. With Apply Rules, the messages are moved by Apple Mail, not SpamSieve, so this sounds like a bug that Apple would need to fix.

The SpamSieve app.

The commands in Apple Mail’s Message menu are defined by the SpamSieve plug-in.

The reason is that I’m running SpamSieve on two machines. For one it’s running on my daily driver laptop. But since this is not always running, and also doesn’t always have an internet connection, I’m also running SpamSieve on my old macbook, which sits at home. So some messages in the Junk mailbox have been moved there by one SpamSieve instance and some by the other. But if there is a misclassification, I usually only “Train as Spam” for the SpamSieve on my main laptop, which means the SpamSieve database on the old laptop gets outdated. So from time to time I’m logging into the old machine, going through the spam folder. I then select the spam messages that were not filtered on that machine, run “Filter Messages” and train the ones not classified as spam. (Oh, and if I notice a wrongly classified message in the Junk mailbox, I try to “Train as Good” from the machine that put it there.)

If there is a better way to do this, I’m happy to hear it.

So then it seems there is an issue with the Spam Sieve app capturing the input while the focus is on Mail :thinking:.

Please see this page for other options or to make sure that you’re doing the above properly.

If you are getting a beep, that sounds like some other global shortcut is overriding SpamSieve. We don’t have control over the priority; the only way to ensure that it works is to remove any conflicts.

It is possible that if you choose Help ‣ Open Error Log in SpamSieve it will show an error registering the hotkey. That might be useful.

I tried directly on the machine without Screen Sharing. Same thing.

I see, I tried this again and I only get the beep sound when Mail is in focus and I press Ctrl-Cmd-L, not other applications. I wounder if it’s Mail itself that is swallowing the keypress.

Strangely, the Apple Support page claims that Ctrl-Cmd-L is the shortcut for “Apply active Mail rules”, even though I see the “Apply Rules” shortcutl as Opt-Cmd-L in the menu (and that one also works).

I see a bunch of error logs like this, but nothing that sounds like it’s related to shortcuts:

2024-12-19 10:09:04.829 SpamSieve[764:8246] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
2024-12-19 10:37:58.655 SpamSieve[777:8364] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
2024-12-19 10:38:46.166 SpamSieve[777:10967] Could not fetch group for change type 1 with identifier 94B22583-B4C4-4445-9C7D-1BBEA0CBDCF3:ABGroup, making it a delete change type.
2024-12-19 10:38:46.169 SpamSieve[777:10966] Could not fetch group for change type 1 with identifier 94B22583-B4C4-4445-9C7D-1BBEA0CBDCF3:ABGroup, making it a delete change type.
oreData: error: Failed to create safeguard location for file: /Users/demmeln/Library/Application Support/AddressBook/Sources/9472AE1B-6B52-4D7C-BF9F-E451A495A63A/.AddressBook-v22_SUPPORT/_EXTERNAL_DATA/FBBEBB6D-C40E-42C0-9F85-BEB1350EE6BF error: Error Domain=NSCocoaErrorDomain Code=4 "The file “FBBEBB6D-C40E-42C0-9F85-BEB1350EE6BF” doesn’t exist." UserInfo={NSSourceFilePathErrorKey=/Users/demmeln/Library/Application Support/AddressBook/Sources/9472AE1B-6B52-4D7C-BF9F-E451A495A63A/.AddressBook-v22_SUPPORT/_EXTERNAL_DATA/FBBEBB6D-C40E-42C0-9F85-BEB1350EE6BF, NSUserStringVariant=(
    Copy
), NSDestinationFilePath=/var/folders/ql/p12yxrkx3xg82sg17q07svtr0000gn/T/.LINKS/5D6C7364-02A9-4D5A-80A3-F319D893556D/FBBEBB6D-C40E-42C0-9F85-BEB1350EE6BF_0x600002df6a80, NSFilePath=/Users/demmeln/Library/Application Support/AddressBook/Sources/9472AE1B-6B52-4D7C-BF9F-E451A495A63A/.AddressBook-v22_SUPPORT/_EXTERNAL_DATA/FBBEBB6D-C40E-42C0-9F85-BEB1350EE6BF, NSUnderlyingError=0x60000017c930 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
CoreData: error: Failed to create safeguard location for file: /Users/demmeln/Library/Application Support/AddressBook/Sources/C3C70AD6-AC6C-4ECA-A3E4-E8271E248C58/.AddressBook-v22_SUPPORT/_EXTERNAL_DATA/D0793A78-425B-4EFB-A322-2C697F36D288 error: Error Domain=NSCocoaErrorDomain Code=4 "The file “D0793A78-425B-4EFB-A322-2C697F36D288” doesn’t exist." UserInfo={NSSourceFilePathErrorKey=/Users/demmeln/Library/Application Support/AddressBook/Sources/C3C70AD6-AC6C-4ECA-A3E4-E8271E248C58/.AddressBook-v22_SUPPORT/_EXTERNAL_DATA/D0793A78-425B-4EFB-A322-2C697F36D288, NSUserStringVariant=(
    Copy
[...]

SpamSieve only registers the hotkey when Mail or Outlook is frontmost. If you happen to have Outlook on your Mac, I wonder whether you would get the beep there.

Or if you change it to something other than L as described above.

The Apple help page is wrong.

Yeah, these are unrelated and all unimportant errors logged by macOS rather than SpamSieve.

I don’t have Outlook installed.

Just tried this. The change in shortcut is correctly picked up by SpamSieve (according to the hint in the SpamSieve Menu), but the behaviour for the new (and the old) keys is the same. In fact, if I press any key with Ctrl and Cmd pressed, it get the same beep, except for the ones that are hotkeys in Mail such as S and G. At least I tried a bunch (LPMKONJIBHIU…)

Maybe we have to leave it at that. It’s only a small inconvenience and it’s for an old version of SpamSieve. So might not be worth to spend more time here. Still, I appreciate your time and patience very much! Thank you!

In looking into this some more, I think there’s a bug where SpamSieve doesn’t try to register the Filter Messages hotkey on older versions of macOS when the plug-in is enabled. The intent was not to override the training commands in the Message menu, but it inadvertently also skips registering Filter Messages. (On the other hand, you can use Apply Rules.)

Ok, also appreciated. Happy to try something, if you find out more.

(Using Apply Rules would generally work as a fine substitute, but in my case it doesn’t help due to this Mail bug:)

OK, I will let you know when I have this fixed in beta. I guess for now I would recommend using Filter Messages via the mouse/trackpad. Or the keyboard shortcut should work if you temporarily disable Apple Mail filtering.

1 Like