Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package maildir-utils for openSUSE:Factory checked in at 2022-07-14 16:34:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/maildir-utils (Old) and /work/SRC/openSUSE:Factory/.maildir-utils.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "maildir-utils" Thu Jul 14 16:34:32 2022 rev:32 rq:989100 version:1.8.6 Changes: -------- --- /work/SRC/openSUSE:Factory/maildir-utils/maildir-utils.changes 2022-07-06 15:42:28.658559492 +0200 +++ /work/SRC/openSUSE:Factory/.maildir-utils.new.1523/maildir-utils.changes 2022-07-14 16:35:00.772671254 +0200 @@ -1,0 +2,9 @@ +Thu Jul 14 07:50:32 UTC 2022 - Michael Vetter <[email protected]> + +- Update to 1.8.6: + * Fix the the minimized main menu + * Be less picky with maildirs with trailing / + * Add mu4e-copy-thing-at-point, bind to c in view + * Add more matching tests + +------------------------------------------------------------------- Old: ---- mu-1.8.5.tar.xz New: ---- mu-1.8.6.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ maildir-utils.spec ++++++ --- /var/tmp/diff_new_pack.ImoEBQ/_old 2022-07-14 16:35:01.256671731 +0200 +++ /var/tmp/diff_new_pack.ImoEBQ/_new 2022-07-14 16:35:01.268671743 +0200 @@ -17,7 +17,7 @@ Name: maildir-utils -Version: 1.8.5 +Version: 1.8.6 Release: 0 Summary: Maildir indexer and searcher License: GPL-3.0-or-later ++++++ mu-1.8.5.tar.xz -> mu-1.8.6.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/configure.ac new/mu-1.8.6/configure.ac --- old/mu-1.8.5/configure.ac 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/configure.ac 2022-07-14 07:16:01.000000000 +0200 @@ -15,7 +15,7 @@ ## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. AC_PREREQ([2.68]) -AC_INIT([mu],[1.8.5],[https://github.com/djcb/mu/issues],[mu]) +AC_INIT([mu],[1.8.6],[https://github.com/djcb/mu/issues],[mu]) AC_COPYRIGHT([Copyright (C) 2008-2022 Dirk-Jan C. Binnema]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_SRCDIR([mu/mu.cc]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/lib/message/mu-message.cc new/mu-1.8.6/lib/message/mu-message.cc --- old/mu-1.8.5/lib/message/mu-message.cc 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/lib/message/mu-message.cc 2022-07-14 07:16:01.000000000 +0200 @@ -800,14 +800,22 @@ return Ok(std::string{priv_->cache_path}); } +// for now this only remove stray '/' at the end +std::string +Message::sanitize_maildir(const std::string& mdir) +{ + if (mdir.size() > 1 && mdir.at(mdir.length()-1) == '/') + return mdir.substr(0, mdir.length() - 1); + else + return mdir; +} Result<void> Message::update_after_move(const std::string& new_path, const std::string& new_maildir, Flags new_flags) { - const auto statbuf{get_statbuf(new_path)}; - if (!statbuf) + if (auto statbuf{get_statbuf(new_path)}; !statbuf) return Err(statbuf.error()); else priv_->ctime = statbuf->st_ctime; @@ -820,7 +828,7 @@ set_flags(new_flags); - if (const auto res = set_maildir(new_maildir); !res) + if (const auto res = set_maildir(sanitize_maildir(new_maildir)); !res) return res; return Ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/lib/message/mu-message.hh new/mu-1.8.6/lib/message/mu-message.hh --- old/mu-1.8.5/lib/message/mu-message.hh 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/lib/message/mu-message.hh 2022-07-14 07:16:01.000000000 +0200 @@ -209,6 +209,16 @@ Result<void> set_maildir(const std::string& maildir); /** + * Clean up the maildir. This is for internal use, but exposed for testing. + * For now cleaned-up means "stray trailing / removed". + * + * @param maildir some maildir + * + * @return a cleaned-up version + */ + static std::string sanitize_maildir(const std::string& maildir); + + /** * Get the subject of this message * * @return the subject of this Message diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/lib/message/test-mu-message.cc new/mu-1.8.6/lib/message/test-mu-message.cc --- old/mu-1.8.5/lib/message/test-mu-message.cc 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/lib/message/test-mu-message.cc 2022-07-14 07:16:01.000000000 +0200 @@ -823,6 +823,14 @@ } } +static void +test_message_sanitize_maildir() +{ + assert_equal(Message::sanitize_maildir("/"), "/"); + assert_equal(Message::sanitize_maildir("/foo/bar"), "/foo/bar"); + assert_equal(Message::sanitize_maildir("/foo/bar/cuux/"), "/foo/bar/cuux"); +} + int main(int argc, char* argv[]) { @@ -844,6 +852,8 @@ test_message_calendar); g_test_add_func("/message/message/fail", test_message_fail); + g_test_add_func("/message/message/sanitize-maildir", + test_message_sanitize_maildir); return g_test_run(); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/lib/tests/test-mu-store-query.cc new/mu-1.8.6/lib/tests/test-mu-store-query.cc --- old/mu-1.8.5/lib/tests/test-mu-store-query.cc 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/lib/tests/test-mu-store-query.cc 2022-07-14 07:16:01.000000000 +0200 @@ -96,6 +96,7 @@ From: "Foo Example" <[email protected]> To: [email protected] Cc: "Bank of America" <[email protected]> +Bcc: Aku Ankka <[email protected]> Mime-Version: 1.0 (Apple Message framework v926) Date: Mon, 4 Aug 2008 11:40:49 +0200 X-Mailer: Apple Mail (2.926) @@ -130,6 +131,15 @@ "from:\"Foo Example\"", "from:/Foo.*Example/", "recip:\"Bank Of America\"", + "cc:[email protected]", + "cc:bank", + "cc:america", + "bcc:[email protected]", + "bcc:donald.duck", + "bcc:duckstad.nl", + "bcc:aku", + "bcc:ankka", + "bcc:\"aku ankka\"", "date:2008-08-01..2008-09-01", "prio:low", "to:[email protected]", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/meson.build new/mu-1.8.6/meson.build --- old/mu-1.8.5/meson.build 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/meson.build 2022-07-14 07:16:01.000000000 +0200 @@ -18,7 +18,7 @@ # project setup # project('mu', ['c', 'cpp'], - version: '1.8.5', + version: '1.8.6', meson_version: '>= 0.52.0', # debian 10 license: 'GPL-3.0-or-later', default_options : [ @@ -53,8 +53,6 @@ '-Wformat-security', '-Wformat=2', '-Wstack-protector', - '-Wno-keyword-macro', - # '-Wshadow', '-Wno-switch-enum', '-Wno-#warnings'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/mu4e/mu4e-helpers.el new/mu-1.8.6/mu4e/mu4e-helpers.el --- old/mu-1.8.5/mu4e/mu4e-helpers.el 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/mu4e/mu4e-helpers.el 2022-07-14 07:16:01.000000000 +0200 @@ -453,6 +453,17 @@ ;;; Misc +(defun mu4e-copy-thing-at-point () + "Copy e-mail address or URL at point to the kill ring. +If there is not e-mail address at point, do nothing." + (interactive) + (let* ((thing (and (thing-at-point 'email) + (string-trim (thing-at-point 'email 'no-props) "<" ">"))) + (thing (or thing (thing-at-point 'url 'no-props)))) + (when thing + (kill-new thing) + (mu4e-message "Copied '%s' to kill-ring" thing)))) + (defun mu4e-display-size (size) "Get a human-friendly string representation of SIZE (in bytes)." (cond diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/mu4e/mu4e-main.el new/mu-1.8.6/mu4e/mu4e-main.el --- old/mu-1.8.5/mu4e/mu4e-main.el 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/mu4e/mu4e-main.el 2022-07-14 07:16:01.000000000 +0200 @@ -275,6 +275,7 @@ (mu4e--main-redraw-buffer)))) (defun mu4e--main-redraw-buffer () + "Redraw the main buffer." (with-current-buffer mu4e-main-buffer-name (let ((inhibit-read-only t) (pos (point)) @@ -403,34 +404,22 @@ (revert-buffer)))) (defun mu4e--main-menu () - "The mu4e main menu." - (interactive) - (let ((key - (read-key - (mu4e-format - "%s" - (concat - (mu4e--main-action-str "[j]ump " 'mu4e-jump-to-maildir) - (mu4e--main-action-str "[s]earch " 'mu4e-search) - (mu4e--main-action-str "[C]ompose " 'mu4e-compose-new) - (mu4e--main-action-str "[b]ookmarks " 'mu4e-headers-search-bookmark) - (mu4e--main-action-str "[;]Switch context " 'mu4e-context-switch) - (mu4e--main-action-str "[U]pdate " 'mu4e-update-mail-and-index) - (mu4e--main-action-str "[N]ews " 'mu4e-news) - (mu4e--main-action-str "[A]bout " 'mu4e-about) - (mu4e--main-action-str "[H]elp " 'mu4e-display-manual)))))) - (unless (member key '(?\C-g ?\C-\[)) - (let ((mu4e-command (lookup-key mu4e-main-mode-map (string key) t))) - (if mu4e-command - (condition-case err - (let ((mu4e-hide-index-messages t)) - (call-interactively mu4e-command)) - (error (when (cadr err) (message (cadr err))))) - (message (mu4e-format "key %s not bound to a command" (string key)))) - (when (or (not mu4e-command) (eq mu4e-command 'mu4e-context-switch)) - (sit-for 1) - (mu4e--main-menu)))))) + "The mu4e main menu in the mini-buffer." + (let ((func (mu4e-read-option + "Do: " + '(("jump" . mu4e~headers-jump-to-maildir) + ("search" . mu4e-search) + ("Compose" . mu4e-compose-new) + ("bookmarks" . mu4e-headers-search-bookmark) + (";Switch context" . mu4e-context-switch) + ("Update" . mu4e-update-mail-and-index) + ("News" . mu4e-news) + ("About" . mu4e-about) + ("Help " . mu4e-display-manual))))) + (call-interactively func) + (when (eq func 'mu4e-context-switch) + (sit-for 1) + (mu4e--main-menu)))) -;;; _ (provide 'mu4e-main) ;;; mu4e-main.el ends here diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mu-1.8.5/mu4e/mu4e-view.el new/mu-1.8.6/mu4e/mu4e-view.el --- old/mu-1.8.5/mu4e/mu4e-view.el 2022-07-06 00:14:42.000000000 +0200 +++ new/mu-1.8.6/mu4e/mu4e-view.el 2022-07-14 07:16:01.000000000 +0200 @@ -949,9 +949,11 @@ ;; misc (define-key map "M" #'mu4e-view-massage) - (define-key map "w" 'visual-line-mode) + (define-key map "w" #'visual-line-mode) (define-key map "h" #'mu4e-view-toggle-html) - (define-key map (kbd "M-q") 'article-fill-long-lines) + (define-key map (kbd "M-q") #'article-fill-long-lines) + + (define-key map "c" #'mu4e-copy-thing-at-point) ;; next 3 only warn user when attempt in the message view (define-key map "u" #'mu4e-view-unmark)
