-
Notifications
You must be signed in to change notification settings - Fork 8
Improved sending capabilities #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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.
|
ey @yousefakbar thanks for this wonderful plugin, is there a chance this is getting merged soon? |
|
Hi @jugarpeupv @baumea @mattmart3 , Thank you all for your kind words and generous contributions. I will be working on all issues/PRs today to get them merged for a new release. Apologies for the ridiculous delay 😅 I was busy with life and getting married ◡̈ . |
|
@yousefakbar don't worry! congratulations! I am moving from neomutt to this plugin and its so much more ergonomic, i see it is in a very early stage of its development however it has great potential |
|
@yousefakbar no worries for the delay and congratulations 🎉! Your plugin is coming along nicely, I'd be glad if you'll keep maintaing it and consider new PRs. I have some draft work in my fork and I'll try to submit new PRs as well. Cheers :) |
|
Ey! @yousefakbar how is it going? have you been able to get some time for this? |
from,logfile, andsent_folder.fromis set to the sender as specified in yournotmuch configuration.
logfileis set tonil, which disables logging ofmsmtpcalls. Otherwise,msmtpis called withlogfilefor logging.sent_folderis set tonil, which disables theinsertion of sent emails to your notmuch library. Otherwise, if the email is
sent successfully, then the email is inserted in that folder.
notmuch_db_pathfrom thenotmuch configuration.
require('notmuch.send').savemail. This function takes twoarguments, a filename of an email message, and a folder, and inserts that
email in that folder.
msmtpis parsed and displayed. Onerror, the email is not inserted to the sent folder.
'From' header to the emails, and by using
--read-envelope-fromin themsmtpinvocation.