151917ce51
mu-maildir.cc: fix typo
...
Use the right #define in the dirent check. Seems we were always following the
slow path.
2025-06-10 10:04:53 +03:00
e6fd83d00d
logging: reduce debug logging a bit
2024-06-17 21:40:58 +03:00
8bdf6b42a2
lib: debug-log moving / unlinking
2023-12-06 20:29:27 +02:00
5d37c18d7d
lib: use flags_maildir_file
...
It's a better name. And fix some typos.
2023-09-24 17:29:56 +03:00
1a3dc46866
lib: maildir/store: more tests
2023-09-23 09:28:45 +03:00
8ba153067b
mu-maildir: use the new run_command0
...
And fix some docstrings.
2023-09-21 23:41:15 +03:00
9dcbe1d96c
lib: unit tests: improve / better coverage
2023-09-13 23:02:53 +03:00
2f5602b938
unit tests: improve
...
and add a new one for the indexer
2023-09-12 21:38:57 +03:00
c8568eecd4
utils/file: add basename/dirname helpers and use them
2023-09-10 10:15:28 +03:00
f3bfdf5add
lib/maildir: use mv for moving to avoid warnings
...
using gio gives some (false, we assume) valgrind warnings, so for now
use 'mv' instead.
Also slightly update the code with some mu_format overtaking format.
2023-07-10 23:17:06 +03:00
4920b56671
update to use fmt-based apis
...
Not complete, but a first big stab converting users of Mu::Error and
various g_warning & friends, format to the new libfmt-based APIs.
2023-07-05 23:10:13 +03:00
e43452fa18
test: don't "uniqify" link names during test
2023-04-09 11:02:58 +03:00
a8daec9598
lib: use join_paths
...
Convert some manual concatenation to the new join_paths helper.
2023-01-29 10:13:29 +02:00
6979a66630
utils: get rid of mu-util.[ch]
...
It was getting old...
Remove the unused parts, refactor the few parts still in use.
2023-01-14 20:02:05 +02:00
0055b40a8d
mu-maildir: improve error handling / reporting
2022-10-30 11:27:54 +02:00
97459beed9
maildir: improve testing coverage
...
Remove some dead/unused code. Update docs. Add test cases.
2022-06-29 22:19:26 +03:00
23ac71e6a7
maildir: add tests for maildir_link / maildir_clear_links
2022-06-29 07:50:16 +03:00
172ff25bb6
mu-maildir: refactor some duplicate code
...
mu-flags & mu-maildir were having some duplicate code; refactor it into mu-message-file.{cc,hh}
2022-06-04 00:41:28 +03:00
26d64ec78f
mu-maildir: fix message_file_parts / empty flags
...
Remove the suffix part even with no flags.
Fixes: issue #2268
2022-05-31 23:41:50 +03:00
dbd15cf704
mu-maildir: don't allow empty path for new maildir
...
be a bit stricter.
2022-05-18 00:35:02 +03:00
dc69505580
mu-maildir: No need for namespaced function names
...
Mu::mu_maildir_... -> Mu::maildir_...
2022-05-09 22:25:28 +03:00
d79488efdc
avoid warnings, update tests
2022-05-06 22:54:41 +03:00
4b9c663ded
mu-maildir: rework mu_maildir_from_path
...
Take a 'root' parameter
2022-04-30 10:40:45 +03:00
478ef67fc6
flags: rename flags_to_string -> to_string
...
For consistency.
2022-04-16 16:20:38 +03:00
9f062ae482
message/flags: add flags_from_path
...
Borrow from mu-maildir, to which we cannot link.
2022-03-28 22:35:45 +03:00
f7c84006d7
many: update for lib/message updates
...
Adapt to the new names / directory. Big commit, but mostly just very boring renaming.
2022-03-26 17:19:10 +02:00
abd2a4a8f1
lib: Update mu-maildir for modern times
...
Update the good-old mu-maildir to be a bit more... modern.
2022-02-17 23:48:59 +02:00
3dd721d5a3
clang-format: update c/cc coding style
...
Update all cc code using .clang-format; please do so as well for future PRs
etc.; emacs has a handy 'clang-format' mode to make this automatic.
For comparing old changes with git blame, we can disregard this one using
--ignore-rev
(see https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame )
2021-10-20 12:26:16 +03:00
c8a2151cb9
mu: use g_strerror instead of strerror
...
Some #includes were missing for the latter (but only noticeable on some
systems - e.g., build breaks on Cygwin).
So let's replace with something that works equally everywhere.
Fixes : #2060
2021-07-29 00:02:30 +03:00
98744c66f7
remove some dead code
2021-01-22 23:24:53 +02:00
e282d80bc0
lib: Update for new querying machinery
...
Port to c++ and use new APIs.
2021-01-22 22:51:33 +02:00