Skip to content

Rework mail move logic #188

Open
Open
@flokli

Description

Currently, when moving files, we move the file in the filesystem and shell out to notmuch new, and pick up new file locations in doing that.

This causes problems, as users often call afew via notmuch's hook system, and in general, it's a bit invasive operation.

A better way would be to do the following on mail move:

  • Copy the file to the new location
  • Call notmuch.database.add_message() with the new location
  • Remove the file on the old location
  • Call notmuch.database.remove_message() with the old location

This would supersede #187, and fix #139.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions