Commit Graph

7278 Commits

Author SHA1 Message Date
37bb5fe8c0 mu4e-headers: fix elisp docstring warnings 2024-09-03 23:02:35 +03:00
89f2162729 mu4e-draft/helpers: use newer message-hide-headers
It seems the older (<= emacs 28 at least) message-hide-headers caused
trouble when editing drafts with mu4e in some cases.

So use the _newer_ version of this function, imported as
mu4e--message-hide-headers.

Fixes #2661.
2024-09-03 23:02:35 +03:00
b9cf667be9 mu4e-helpers: cosmetics
Whitespace etc. fixes
2024-09-03 23:02:35 +03:00
e9ca3ad9f6 scanner: ignore emacs auto-saves
It's better to _not_ have auto-saves for your draft directory, but if
you do, ignore them at least in mu.

It may still trip up mbsync and friends, but not much we can do about
that.

Clean up the implementation a bit as well.
2024-09-03 23:02:35 +03:00
db28b15f99 Merge pull request #2752 from quaepoena/mu4e-context-policy-help
Fix typo in mu4e-context.el
2024-09-02 17:49:57 +03:00
4397c03049 Fix typo in mu4e-context.el 2024-09-02 08:36:58 +02:00
797ca3e37f mu4e-draft: move the user-agent setting
This updates commit 411407f03e and moves
the check to where we set the special headers.
2024-08-28 23:08:15 +03:00
fbe8c24cef Merge pull request #2751 from manphiz/issue-2750
Ensure `User-Agent' is set
2024-08-28 23:03:41 +03:00
411407f03e Ensure `User-Agent' is set
* Set `message-newsreader' before calling `mu4e--prepare-draft-buffer' so that
`User-Agent' is properly set.

* Fixes #2750.
2024-08-28 12:40:53 -07:00
f101e0d4ca mu4e: cosmetics 2024-08-26 22:55:05 +03:00
e63110fad9 Merge pull request #2749 from MatthewGentoo/utils-datetime-max
lib: use time_t_max for empty datetime
2024-08-26 22:26:30 +03:00
075394b35f lib: use time_t_max for empty datetime
In Mu::parse_date_time, when provided with an empty string, return
time_t_max instead of G_MAXINT64. For systems with a 64-bit time_t, there
is no difference. With a 32-bit time_t it caused a test to fail:

    not ok /utils/date-basic - ERROR:../mu-1.12.4/lib/utils/tests/test-utils.cc:92
    void test_date_basic(): assertion failed
    (parse_date_time(std::get<0>(test), std::get<1>(test)).value_or(-1)
      == std::get<2>(test)): (18446744073709551615 == 2147483647)

This edge case probably only affected the test, as when other parts of
the application call parse_date_time (e.g. mu-server.cc and
mu-query-processor.cc), they check if the input string is empty first.
2024-08-26 14:46:54 +00:00
aee76e47a8 mu4e-view: fix epg error handling 2024-08-23 08:19:59 +03:00
1930d4b663 mu4e-view: fallback to raw view for unreadable messages
So users can at least see _something_...
2024-08-22 23:02:15 +03:00
c28bfe04e1 message: detect top-level smime parts + test
Fixes #2745
2024-08-22 22:34:34 +03:00
79dd15424b mu4e-compose: fix mu4e-compose-captured-message from sans-subject
In some but not all cases, a missing subject yielded a description=
without anything else.

Let's avoid that.

Fixes #2746.
2024-08-22 22:12:55 +03:00
687db1aed6 mu-server: cosmetic 2024-08-21 06:19:35 +03:00
407c6ed4d1 xapian-db: improve errors, fix warnings 2024-08-21 06:18:37 +03:00
c58eacc0d5 mu4e: whitespace / typo fixes 2024-08-19 22:13:02 +03:00
6092a26d02 IDEAS.org: move guile revamp 2024-08-18 11:36:52 +03:00
2bf978ea1d github: update issue templates 2024-08-18 11:36:39 +03:00
3de2bc04ab mu4e-draft: handle case where draft was not deleted
Ensure draft is removed also when there's no fcc-path. As suggested by
@malb in #2719.
2024-08-17 11:36:31 +03:00
806033f164 mu4e-query-items: improve documentation
Possibly useful for #2741.
2024-08-16 21:14:00 +02:00
e04d1cf42c mu4e: mention database-caching in FAQ
As a reason for discrepancies between mu and mu4e results; as per #2741.
2024-08-16 21:13:44 +02:00
52e388923f mu4e-view-save-attachments: document limitation
This function assumes that file names are unique; document this
limitation and point users to mu4e-view-mime-part-action.

Fixes #2742
2024-08-16 20:17:03 +02:00
af6ca080a4 mu4e: doc fixes 2024-08-08 12:54:54 +03:00
57a611f1e1 Merge pull request #2740 from eval-exec/patch-1
Update mu-store-worker.hh, remove duplicate `;`
2024-08-08 12:47:14 +03:00
d7426238bd Update mu-store-worker.hh, remove duplicate ;
Fix gcc warning:
```
mu4e                           pre-build              [26/198] Compiling C++ object lib/libmu.a.p/mu-query-parser.cc.o               34.390111
mu4e                           pre-build              In file included from ../lib/mu-store.hh:34,                                   34.390132
mu4e                           pre-build                               from ../lib/mu-query-parser.hh:25,                            34.390140
mu4e                           pre-build                               from ../lib/mu-query-parser.cc:20:                            34.390146
mu4e                           pre-build              ../lib/mu-store-worker.hh:162:23: warning: extra ‘;’ [-Wpedantic]              34.390152
mu4e                           pre-build                162 |         Store& store_;;                                                34.390166
mu4e                           pre-build                    |                       ^                                                34.390172
mu4e                           pre-build                    |                       -                                                34.390177
mu4e                           pre-build              [27/198] Compiling C++ object lib/libmu.a.p/mu-contacts-cache.cc.o             34.538682
```
2024-08-08 15:47:38 +08:00
e6c32f6b02 Merge pull request #2738 from rabuu/canonicalize-maildir
Canonicalize init --maildir argument after expanding
2024-08-06 23:09:35 +03:00
2d7288effa Canonicalize init --maildir argument after expanding
Ensure that `maildir` is an absolute and _canonical_ path when user passes
a custom maildir path using `mu init --maildir PATH`
2024-08-06 16:01:39 +02:00
f01360ae9f lib: commit to disk after indexing 2024-08-04 22:28:13 +03:00
b825e39fdc Merge pull request #2736 from Chris00/master
Make toggling search properties easier to discover
2024-08-03 17:31:51 +03:00
3ec3bedbce Make toggling search properties easier to discover 2024-08-03 13:24:05 +02:00
bf49f72915 mu4e: use mu4e-search-full in doc
mu4e-headers-full-search is obsolete.
2024-08-03 14:02:15 +03:00
208b2c2e04 Merge pull request #2735 from Chris00/master
Minor improvements
2024-08-03 13:59:21 +03:00
9e3c8ba6c2 Doc: Use mu4e-search-toggle-property instead of its obsolete alias 2024-08-02 22:16:21 +02:00
68435a1fdf Fix the "Next" header menu entry 2024-08-02 22:13:10 +02:00
f1923fff7c build: bump version to 1.12.6 2024-07-27 16:42:33 +03:00
e399fdc8b2 IDEAS.org: add idea about encoding-guessing
Fixes #2700
2024-07-27 12:27:58 +03:00
c6e8f894c1 test_index_move: extend unit test
Double-check the changed values are seen in a newly opened store.
2024-07-27 09:36:15 +03:00
18c9b14c6d mu4e.texi: complete half-sentence
Fixes #2723.
2024-07-25 20:19:11 +03:00
737c891a21 mu4e.texi: update build / install instructions
The were outdated.

Fixes #2729.
2024-07-25 20:07:00 +03:00
c1da456564 Merge pull request #2728 from Tristan02d/man-typeset
Try to improve overall manual page typesetting
2024-07-25 20:06:47 +03:00
547cc4ce74 mu-man: typeset option values differently
Use underlining only, do not use <>, as it is the most often done.
2024-07-22 16:09:17 +09:00
cee4823f33 mu-man: typeset file names using underlining
Make the emphasis more consistent, and do it using underscores in
Org documents, since verbatim is rendered as underlined anyway.
2024-07-22 15:40:57 +09:00
d46b428f7b mu-man: delete suspicious words 2024-07-22 15:28:47 +09:00
5ed773aa4d mu-man: include whole prefooter in mu-view 2024-07-22 15:26:31 +09:00
ec42817a5c mu-man: typeset reference in included file 2024-07-22 15:26:27 +09:00
b09ac79330 mu-man: fix the BUGS section of mu-view 2024-07-22 15:21:09 +09:00
dcc3807155 mu-man: improve typesetting of references
Try to stick to the man-pages(7) standard.
2024-07-22 15:18:46 +09:00