fix(actions,client): resolve mail root per file and fix selection advance order #77

Merged
clanker merged 1 commit from fix/trash-file-moves into main 2026-09-06 04:37:49 +00:00
Member

Fixes mail file moves to Trash when NED runs against non-default mail root paths.

  1. In ned/actions.py:
  • Auto-detects effective mail root from Notmuch database config when settings.mail_root does not exist on disk.
  • Extracts file-specific mail root in _mail_file_account_and_root so files living in alternate mounts (e.g. /mnt/Mail) plan moves within their actual root.
  • Detects existing account Trash folders ([Gmail]/Trash, Trash, .Trash) and Inbox folders (Inbox, INBOX).
  • Uses shutil.move in BulkMoveWorker for cross-device filesystem resilience.
  1. In lazarus/actions.py:
  • Captures current thread ID before advancing selection in delete_thread and restore_thread_from_trash.
  1. In lazarus/client.py:
  • Refuses to spawn a local daemon when NED_URL is set.
Fixes mail file moves to Trash when NED runs against non-default mail root paths. 1. In ned/actions.py: - Auto-detects effective mail root from Notmuch database config when settings.mail_root does not exist on disk. - Extracts file-specific mail root in _mail_file_account_and_root so files living in alternate mounts (e.g. /mnt/Mail) plan moves within their actual root. - Detects existing account Trash folders ([Gmail]/Trash, Trash, .Trash) and Inbox folders (Inbox, INBOX). - Uses shutil.move in BulkMoveWorker for cross-device filesystem resilience. 2. In lazarus/actions.py: - Captures current thread ID before advancing selection in delete_thread and restore_thread_from_trash. 3. In lazarus/client.py: - Refuses to spawn a local daemon when NED_URL is set.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Home/lazarus!77
No description provided.