Skip to content

Conversation

@baumea
Copy link

@baumea baumea commented May 20, 2025

  • Added configuration options: from, logfile, and sent_folder.
  • By default, the option from is set to the sender as specified in your
    notmuch configuration.
  • By default, the option logfile is set to nil, which disables logging of
    msmtp calls. Otherwise, msmtp is called with logfile for logging.
  • By default, the option sent_folder is set to nil, which disables the
    insertion of sent emails to your notmuch library. Otherwise, if the email is
    sent successfully, then the email is inserted in that folder.
  • Updated the configuration to take the default notmuch_db_path from the
    notmuch configuration.
  • Added function require('notmuch.send').savemail. This function takes two
    arguments, a filename of an email message, and a folder, and inserts that
    email in that folder.
  • When sending an email, the output of msmtp is parsed and displayed. On
    error, the email is not inserted to the sent folder.
  • Enabling the use of multiple sending accounts. This is achieved by adding the
    'From' header to the emails, and by using --read-envelope-from in the
    msmtp invocation.

baumea added 3 commits May 20, 2025 09:56
Extended autocompletion:
- `search_terms_list` now also contains `is:`, `to:`, `from`, `body:`
  and the logical expressions `and`, `or`, `not`.
- Added autocomplete functionality for `mimetype:`, `to:`, `from:`,
  `path:`, and `folder:` search.
- Extended `:ComposeMail` to optionally accept recipient, incl. autocomplete

Key binding and visual control
- Extended `:TagAdd`, `:TagRm`, and `:TagToggle` to accept line ranges
- Extended key bindings `+`, `-`, `=`, `a`, `A`, and `x` in the threads
  view to the visual mode
- Added `f` key binding (visual mode and normal mode) in the threads
  view to toggle the `flagged` tag
- Adds the command `:DelThread` in the thread view. This command adds
  the tag "del" to the emails. This command also works in visual mode,
  so multiple threads can be deleted simultaneously.
- Binds `:DelThread` to `dd` in normal mode and `d` in visual mode.
- Update the hint text to display `dd` key.
- Binds `D` to the function call `purge_del()`. With this, emails marked
  to be deleted are removed from the drive. After hitting `D`, the user
  sees all emails marked to be delete. Puring is then initiated by
  hitting `DD` (see line 8 in `lua/notmuch/delete.lua`)
- Added configuration options: `from`, `logfile`, and `sent_folder`.
- By default, the option `from` is set to the sender as specified in
  your notmuch configuration.
- By default, the option `logfile` is set to `nil`, which disables
  logging of `msmtp` calls. Otherwise, `msmtp` is called with `logfile`
  for logging.
- By default, the option `sent_folder` is set to `nil`, which disables
  the insertion of sent emails to your notmuch library. Otherwise, if
  the email is sent successfully, then the email is inserted in that
  folder.
- Updated the configuration to take the default `notmuch_db_path` from
  the notmuch configuration.
- Added function `require('notmuch.send').savemail`. This function takes
  two arguments, a filename of an email message, and a folder, and
  inserts that email in that folder.
- When sending an email, the output of `msmtp` is parsed and displayed.
  On error, the email is not inserted to the sent folder.
- Enabling the use of multiple sending accounts. This is achieved by
  adding the 'From' header to the emails, and by using
  `--read-envelope-from` in the `msmtp` invocation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant