As reported by Customer via RT#53148
Environment
• Affected Versions: GnuPG / GpgOL 3.4.0.0 – 3.4.1.0
• Last Known Working Version: 3.3.6.1 (March 2026)
• Client: Microsoft Outlook (Desktop) connected to Exchange Server (Online Mode / Cached Exchange Mode disabled)
• Downloadfile: GnuPG-VS-Desktop-3.4.1.0-Standard.msi
• OS: Windows (local C:\ storage, no OneDrive/cloud sync involved)
Description Since upgrading to the 3.4.x branch, importing locally saved .msg files (specifically PGP-encrypted messages saved from external email attachments to strip external warning banners) back into Outlook via drag-and-drop fails consistently. Furthermore, Outlook retains an exclusive file handle on the .msg file until the entire Outlook process is terminated.
Steps to Reproduce
- Save an attached PGP-encrypted .msg file to a local directory on C:\.
- Drag and drop the .msg file from Windows Explorer into an Outlook folder (e.g., Inbox).
- Repeat step 2 with the same file.
- Attempt to delete the .msg file from C:\ while Outlook is still running.
Actual Behavior
• 1st drag-and-drop attempt: Fails with:
"Cannot copy the items. A resource is busy or you lack sufficient access rights or permissions."
• 2nd drag-and-drop attempt: Fails with:
"Cannot copy the items. We can't open <NAME>.msg. It's possible the file is already open, or you don't have permission to open it..."
• File Lock: The .msg file cannot be deleted until OUTLOOK.EXE is completely closed (confirming a handle leak; read-only tools like vim can still open the file).
Expected Behavior The .msg file imports cleanly into the target Outlook folder and the file handle is released immediately, allowing deletion without restarting Outlook.
Related Observation (Outbox / Deferred Send) In the same version, navigating to the Outbox folder (even with the Reading Pane disabled) immediately cancels the queued/italic send state of messages using Deferred Delivery (PR_DEFERRED_SEND_TIME), leaving them stuck in the Outbox. This strongly points to a MAPI/COM reference or SelectionChange hook regression introduced in 3.4.0.0.
Workaround Downgrading back to 3.3.6.1 immediately resolves the .msg import error and file handle leak.