Skip to content

Tagging by plus addressing #327

Open
@daurnimator

Description

Many email setups deliver email to user+tag@domain to the inbox of user@domain.
As said user, how can I extract that tag to a notmuch tag?

My first attempt was:

[HeaderMatchingFilter.1]
header = Delivered-To
pattern = (?P<user>[^\+]+)\+(?P<box>[^@]+)@(?P<domain>.*)
tags = +{box}

But it turns out many emails have many Delivered-To headers, and I only really want to match the first one.

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