Commit graph

275 commits

Author SHA1 Message Date
Henrik Lissner
dabca5d24e refactor(notmuch): remove redundant ol-notmuch config
ol-notmuch autoloads itself, so we don't need to do anything.

Amend: db94569143
Ref: hlissner/doom-emacs@db94569143
Ref: https://git.sr.ht/~tarsius/ol-notmuch/tree/main/item/ol-notmuch.el#L93-97
2021-11-25 01:33:39 +01:00
Henrik Lissner
89fbc3776d refactor(notmuch): unlink ol-notmuch from +org flag
Amend: db94569143
Ref: hlissner/doom-emacs@d522cc347d
2021-11-25 01:25:25 +01:00
Henrik Lissner
db94569143 refactor(notmuch): remove redundant config
Ref: hlissner/doom-emacs@d522cc347d
2021-11-25 01:04:23 +01:00
Leonard Lausen
d522cc347d fix(notmuch): ol-notmuch missing
ol-notmuch.el was moved out of org-contrib into its own repo.

Ref: e14dfea5/item/lisp/ol-notmuch.el (L8)
2021-11-24 13:10:40 +01:00
Thomas Friese
54c4ae4853 feat(notmuch): only tag new messages w/ afew
Indexing all messages can be very expensive, so some time can be saved
by only indexing new messages.
2021-11-21 19:04:14 +01:00
Leonard Lausen
196ea03281
refactor(notmuch): parameterize delete/spam tags 2021-11-21 19:02:18 +01:00
Clément Haëck
59f78dc966 fix(notmuch): incorrect type used for window 2021-11-18 19:12:21 +01:00
Hanno Perrey
2b1cb2620a
fix(mu4e): do not set coding-system-for-read globally
`+mu4e-lock-pid-info` had unintentional side effects: it changed
`coding-system-for-read` globally.

Fix: #5788
2021-11-18 19:11:55 +01:00
Dominik Schrempf
d49693da91 fix(mu4e): only bind h when workspaces loaded 2021-11-18 19:08:51 +01:00
TEC
13163888a1 fix(mu4e): incorrect access of from addr slot
Within +mu4e/capture-msg-to-agenda, the from address is stored in the
cdar not the cadr.
2021-11-18 19:05:57 +01:00
Henrik Lissner
df64e5024b nit: remove email address
Ref: hlissner/doom-emacs-private@064c19884c
2021-11-14 17:38:23 +01:00
Henrik Lissner
3b0eeb104b revert: fix(mu4e): reflect upstream naming changes (#5620)
Revert 390fd1a7b0
Ref #5620
2021-10-18 14:53:32 +02:00
Dylan Barker
390fd1a7b0
fix(mu4e): reflect upstream naming changes (#5620) 2021-10-18 01:36:21 +02:00
SukBeom Kim
8e285177d9
fix(mu4e): invalid bookmark error
Adding 'Flagged messages' to mu4e-bookmarks with attributes results in
mu4e loading failure. Change the line not to use attributes.

error in process filter: mu4e-error: [mu4e] Invalid bookmark in
mu4e-bookmarks error in process filter: [mu4e] Invalid bookmark in
mu4e-bookmarks
2021-10-10 18:36:23 +02:00
Henrik Lissner
473eda795a fix(notmuch): missing notmuch-version.el
Notmuch, like org, uses git describe to build a version string variable
at install time, but Doom preforms shallow clones of its packages, where
git describe does not work.

Notmuch is one of our bigger packages and the variable isn't essential
for normal use, so I've opted to build notmuch-version.el by hand.  It
lacks the commit offset, but it has enough information to work with.

Fix #5581
2021-10-06 01:30:45 +02:00
TEC
3ced11e7cb fix(mu4e): make alerts work again
At some point in the original PR alerts stopped working. I've finally
tracked down why and found three components to the problem:
- I'm calling `start-process` incorrectly
- `truncate-string-to-width` is called on `nil` when no from name is
  given
- mu4e-alert uses :docid to check for duplicates, which is not provided
  in mu 1.6, and so :message-id must be used instead.
2021-10-05 02:30:36 +02:00
Henrik Lissner
7f54afef55
merge: pull request #5550 from tecosaur/org-msg-quick-fixes
fix(mu4e): minor errors with org-msg LaTeX eqns
2021-10-03 12:51:12 +02:00
Hugo Nobrega
f394d9f65b feat(notmuch): allow notmuch module without (:ui workspaces)
Remove the dependency of (:ui workspaces) from the notmuch module
2021-10-03 12:50:36 +02:00
TEC
86a69ecf62 tweak(mu4e): change org-msg ch units to em
Because Outlook interprets 90ch as 90px ... nice job Outlook.

I also adjusted text size and padding with code snippets while we're
tweaking.

Close #5439
2021-10-03 12:49:04 +02:00
TEC
9e8e1d93ea
nit(mu4e): correct indentation 2021-10-02 16:04:06 +08:00
TEC
090c7b9afa
fix(mu4e): minor errors with org-msg LaTeX eqns
A typo and a missing "*" break the creation and insertion of LaTeX
images.

Close #5416
2021-10-02 16:01:34 +08:00
Henrik Lissner
d29a2fd865 fix(notmuch): messages open in tiny popup
We couldn't write a popup rule for message buffers because they were
named *X*, where X was the email's subject line. There was no distinct
pattern to target via regex, and the buffer is display before its mode
is initialized, so a more sophisticated popup rule wouldn't work either.

By renaming message buffers *subject:X*, we now have a chance to target
it.
2021-09-30 01:26:25 +02:00
Itai Y. Efrat
173e0f3cc0 fix(notmuch): notmuch-read-tag-changes error
Due to notmuch abusing the completing-read-multiple api,
notmuch-read-tags-changes errors out without this fix. A bug report has
been filed about this upstream, so hopefully this is a strictly
temporary measure.

Ref https://yhetil.org/notmuch/87h7efuv6i.fsf@tethera.net/T/
Ref minad/vertico#119
2021-09-23 14:55:58 +02:00
TEC
9fa122cc31 feat(mu4e): prompt for subject when absent
Give the user a chance to set the subject when about to send a message
without a subject line.
2021-09-23 11:40:44 +02:00
TEC
4373109721 feat(mu4e): more precise attachment detection rx 2021-09-23 11:40:44 +02:00
Hyunggyu Jang
7274f73500 fix(notmuch): window is not a valid window error on sync end
Notmuch sync process is done asynchronously, but if the user switch to
other buffer before update process, it complains like

```
error in process sentinel: #<window 98> is not a valid window
```

This commit simplifies cleanup process after mail syncing, and still
maintain its functionality.
2021-09-23 11:37:59 +02:00
Henrik Lissner
b0e084e416
merge: pull request #5353 from iyefrat/vertico-things
Improve `:completion vertico`
2021-09-15 01:00:04 +02:00
TEC
083c81e44b
refactor(mu4e): use doom-call-process to check XDG
This is a bit safer than shell-command-to-string, and we also now check
that the command exited successfully, and fall back if not.
2021-09-15 02:43:40 +08:00
TEC
7ab825157f
feat(mu4e): make the unicode bullet customizable
By popular demand.

Close #5452.
2021-09-15 02:43:40 +08:00
TEC
4fee7cf953
refactor(mu4e): extract part pickers duplication
Both the attachment and part selection functions generate string
representations of the parts. No need to do the same thing twice.
2021-09-15 02:43:40 +08:00
TEC
b489ae6452
feat(mu4e): show size in part/attachment picker 2021-09-15 02:43:40 +08:00
TEC
b05d8e8082
feat(mu4e): use file icons in part/attachment pick
Along with some other improvements and refactoring to the part picker
for a generally nicer experience, improved readability, and more
flexibility.
2021-09-15 02:43:40 +08:00
TEC
ea53ab9ef1
tweak(mu4e): end default attachment-dir with "/"
Having "/" at the end allows for a single backspace to remove the
directory, instead of just the last character - making it easier to
select a different location in a completing read.
2021-09-15 02:43:40 +08:00
TEC
6d1e86affc
tweak(mu4e): be consistent with mu4e naming style 2021-09-15 02:43:40 +08:00
TEC
c4aba242a3
feat(mu4e): improve part selection experience
It's not nice having to think of the index of the MIME part you want to
look at, it's much nicer to get a completing read with information about
those parts.
2021-09-15 02:43:40 +08:00
TEC
251705149b
feat(mu4e): reimplement attachment opening command
This can be done via 'a', but it's a nice convenience to have,
particularly as it filters out non-attachment MIME parts.

Closes #5027.
2021-09-15 02:43:39 +08:00
TEC
47be8e292e
feat(mu4e): reintroduce A and p view keybindings
When viewing a message, in mu4e < 1.6 'A' gives actions that can be
performed on the attachments, and 'p' / 'P' save attachments. The
functions are removed in 1.6, and their nearest replacements are not
bound. I think it makes sense to actually bind them.
2021-09-15 02:43:39 +08:00
Itai Y. Efrat
3112b9a6d6 bump: consult-notmuch
https://codeberg.org/jao/consult-notmuch.git@67cf219fcce2 -> https://codeberg.org/jao/consult-notmuch.git@a5133b9e1f19

Needed for consult-notmuch to work with the new async consult api

Fix: #5369
2021-09-14 20:44:55 +03:00
Henrik Lissner
09ead843ae bump: :email mu4e
jeremy-compostella/org-msg@4c92c627b6 -> jeremy-compostella/org-msg@599e8b056c

- jeremy-compostella/org-msg#118 adds support for attachments from
  dired (#5307).

Close #5307
2021-09-14 14:30:06 +02:00
Paul A. Patience
1467c075f7
fix(wanderlust): start wl-summary-mode in emacs state (#5266) 2021-09-14 14:29:41 +02:00
Itai Y. Efrat
777783c144 docs(mu4e): fix msmtp config in readme
- requires being in an (after! mu4e ...) to work
- minor fixes
2021-09-04 16:09:26 +03:00
Itai Y. Efrat
891628379d docs(mu4e): minor readme fixes
- use links instead of ~code~ markup for early project mentions
- fix install matrix
2021-08-06 03:16:52 -04:00
Itai Y. Efrat
78a75608bd docs(notmuch): fix links in readme 2021-08-06 03:16:52 -04:00
Henrik Lissner
f74debdea8 fix(mu4e): remove forced dependency on doom-themes
Fix #5340
2021-08-04 01:53:12 -04:00
Henrik Lissner
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
Ralf Beckmann
0df8d78bd7 docs(mu4e): explain how to fetch/sync mail in other ways
Add explanation on how to use other backends that are neither mbsync
nor offlineimap.
2021-08-03 23:04:38 -04:00
Ralf Beckmann
2fa7bee91f docs(mu4e): remove reference to non-existing variable
The variable +mu4e-mu4e-mail-path is not present in the codebase.
2021-08-03 23:04:38 -04:00
Ralf Beckmann
451afea47b docs(mu4e): clarify impact of user-full-name
The variable is not really required. It seems to be only used by mu4e
to determine the contents of the FROM field when composing mail.
2021-08-03 23:04:38 -04:00
TEC
eaa392c00b
docs(mu4e): fix a typo (errors, plural)
Someone politely requested I add this to my PR on Discord ... why not.
2021-08-03 10:03:10 +08:00
TEC
61126c6bb4
fix(mu4e): improve mu-lock compatability with mac
On mac process args aren't defined, but comm is. Since comm also works
on Linux, we now check for that instead, accounting for a potential
capitalisation difference.
2021-08-03 03:36:57 +08:00