Adam and Scott: THANK YOU! Thanks to your questions/thoughts, the plugin is now being loaded. Not working, but loaded.
Answers/explanations:
• I had read all of the posts here, including the "Just curious" and "WTF" threads.
• I am indeed using the Scott M./Scott L. wrapper function from github. I replaced NSClassFromString in my CLS macro with GFWMRClassFromString (my renamed version of your function). Although, I'm less worried about maintaining backward compatibility really. I'll be happy if I can make a version that works for 10.9! (No time to polish, etc.)
• I am not linking agains Mail.framework or other private frameworks. Only AppKit, Cocoa, CoreData, and Foundation. (I confess I don't know that I need all of these....)
• I was seeing a console message but didn't know what to do with it:
Aug 24 18:42:50 dev-10-9.local Mail[525]: MailRecent.mailbundle failed to load. The error was:
Error Domain=NSCocoaErrorDomain Code=3588 "The bundle “MailRecent” couldn’t be loaded." UserInfo=0x6000000642c0 {NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/welch/Library/Mail/Bundles/MailRecent.mailbundle/Contents/MacOS/MailRecent, NSDebugDescription=, NSBundlePath=/Users/welch/Library/Mail/Bundles/MailRecent.mailbundle, NSLocalizedDescription=The bundle “MailRecent” couldn’t be loaded.}
• I wasn't getting any link errors, nor knowingly suppressing any build errors/warnings, but when I checked I found the "-undefined" and "suppress" linker flags in the build settings. I removed them, and then got a linker build error related to the IMAPAccount class, which is...now MFIMAPAccount. I wrapped it w/ CLS() (not sure why it wasn't before...I must have missed it). After fixing that... no more build/link errors, no console message (other than a successful load message), and the plugin is no longer disabled. Good call Scott.
Now "back to the salt mine" as soon as I can, chipping away to figure out what's going on after loading. I can see several suspicious build warnings that I'll target first. I am hoping nothing I'm using is gone/missing—just renamed or moved. We'll see. I don't touch the code very often so getting back into it requires time/focus.
THANK YOU
--greg