Commit Graph

29 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 6e37790012 mu: improve error reporting 2022-05-15 13:40:44 +03:00
Dirk-Jan C. Binnema 158117e843 mu: Make commands Result-based
Use Result<void> as the return value, simplifying some code.
2022-05-12 08:56:13 +03:00
Dirk-Jan C. Binnema 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
Dirk-Jan C. Binnema 321e747882 update (c) year
And some whitespace cleanup. The (c) year doesn't matter too much, but
let's close the ticket.

Fixes: #2075.
2021-08-03 12:47:20 +03:00
Dirk-Jan C. Binnema a1d1619bda use c++ for some more sources
Do a (superficial) port to c++ of some of the c sources. Update
deps. Fix a few compiler warnings.
2020-11-07 14:11:59 +02:00
Dirk-Jan C. Binnema 0e50bfc02c mu: better output
Improve the output of various mu commands
2020-06-27 17:07:00 +03:00
Dirk-Jan C. Binnema a9fab4abcc mu: convert command-line tools to c++ 2020-06-13 16:56:41 +03:00
Dirk-Jan C. Binnema 3e233cba9a rework logging system
reimplement the old mu-log.[ch] into mu-logging.{cc,hh}

If available (and using an appropriately equipped glib), log to the
systemd journal

Only g_criticals have stderr output, all the other g_* go to the log
file / journal.
2020-05-30 13:29:44 +03:00
Dirk-Jan C. Binnema 4e5f6b4b0a mu: make command output more useful 2020-02-09 00:15:49 +02:00
Dirk-Jan C. Binnema f51846eefc mu: implement init, info commands
'init' is for the inital database setup

'info' is for gettting information about the mu database.
2020-02-08 14:28:55 +02:00
Dirk-Jan C. Binnema 2575b2d0e3 mu: better error handling for opening database read-only
Be a bit clearer for the user.
2020-02-04 21:14:30 +02:00
Dirk-Jan C. Binnema afde8811b6 mu-cmd: update for lib/mu-store changes
* some small API updates
 * in with_store, try to rebuild automatically when possible
2019-07-30 08:51:04 +03:00
Dirk-Jan C. Binnema 5440747ba4 mu: require glib >= 2.38; remove g_type_init calls
Minor cleanup.
2019-07-11 23:30:27 +03:00
djcb c410ebfc45 mu: update copyright year in --version 2018-04-28 09:33:46 +03:00
djcb b644de548b mu4e: update copyright year 2015-01-25 23:55:23 +02:00
djcb c48d290699 * minor update 2013-12-21 10:01:04 -08:00
djcb 885554757a * mu: some improvement in script handling 2013-07-23 22:23:27 +03:00
djcb 4174ac7ed2 * fix a few compiler warnings 2013-05-13 22:30:27 +03:00
djcb 855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
djcb f5f8d6de70 * mu_store_needs_upgrade --> mu_store_versions_match 2013-01-06 15:53:42 +02:00
djcb 891f107948 * mu.cc: don't print anything if *err == NULL 2012-12-23 14:17:50 +02:00
djcb f3654aa22b * paper over the missing options bug (WIP) 2012-12-23 00:04:09 +02:00
djcb f19ede80ce * mu: small error-handling improvement 2012-10-24 23:49:54 +03:00
djcb 11ecc65109 * update (C) years 2012-10-24 11:42:57 +03:00
djcb 7d8a58896e * some fixes for the help system 2012-09-19 10:44:16 +03:00
djcb ca2fccf11e * mu: some better command error / help output 2012-09-17 19:53:30 +03:00
djcb cf37e29101 * make sure line35, cc10 pass 2012-09-09 14:21:15 +03:00
djcb 3132b8dd42 * mu: improve help output 2012-09-09 14:07:34 +03:00
djcb 46f10cfde9 * refactoring: split src/ into mu/ and lib/ 2012-05-21 09:25:53 +03:00