Sunday, May 03, 2020

Re: [update] mail/mu-1.4.3

Stefan Hagen wrote:
> Miguel wrote:
>> - Added README for upgrade
>
> I just saw we can just put the release announcement here.
> https://github.com/djcb/mu/releases/tag/1.4
>
> The new release is incompatible. The mu commands are reporting the
> incompatibility, for example mu index -m ~/Mails reports, that you need
> to run mu init first and omit the -m. But it will break scripts if the
> user does not adapt them.
>
> I think it would make sense to add a pkg/MESSAGE to notified the user
> about the incompatibility.

I created a new patch, but now as I see it in action I'm unsure about
the MESSAGE:

===>Installing mu-1.4.3 from /usr/ports/packages/amd64/all/
mu-1.4.3: ok
New and changed readme(s):
/usr/local/share/doc/pkg-readmes/mu
--- +mu-1.4.3 -------------------
The mu tools command line interface and default paths have been changed.
Review share/doc/pkg-readmes/mu for details.

The last line may be redundant. What do you think?

Changes:
+ WANTLIB+= curses readline
+ README
+ MESSAGE

Cheers,
Stefan

Index: mail/mu/Makefile
===================================================================
RCS file: /cvs/ports/mail/mu/Makefile,v
retrieving revision 1.19
diff -u -p -u -p -r1.19 Makefile
--- mail/mu/Makefile 24 Jan 2020 10:36:41 -0000 1.19
+++ mail/mu/Makefile 3 May 2020 11:05:11 -0000
@@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.19 2020/01/24 10:36:41 sthen Exp $

COMMENT= maildir indexer and searcher with emacs frontend
-
-DISTNAME= mu-1.2.0
-REVISION= 0
+V= 1.4.3
+DISTNAME= mu-${V}

CATEGORIES= mail
HOMEPAGE= http://www.djcbsoftware.nl/code/mu/
@@ -13,12 +12,12 @@ MAINTAINER= Stefan Hagen <sh+ports@codev
# GPLv3+
PERMIT_PACKAGE= Yes

-WANTLIB += ${COMPILER_LIBCXX} assuan c ffi gio-2.0 glib-2.0 gmime-3.0
-WANTLIB += gmodule-2.0 gobject-2.0 gpg-error gpgme gthread-2.0
-WANTLIB += iconv idn2 intl json-glib-1.0 m pcre unistring uuid
+WANTLIB += ${COMPILER_LIBCXX} assuan c curses ffi gio-2.0 glib-2.0
+WANTLIB += gmime-3.0 gmodule-2.0 gobject-2.0 gpg-error gpgme gthread-2.0
+WANTLIB += iconv idn2 intl json-glib-1.0 m pcre readline unistring uuid
WANTLIB += xapian z

-MASTER_SITES= https://github.com/djcb/mu/releases/download/1.2/
+MASTER_SITES= https://github.com/djcb/mu/releases/download/${V}/
EXTRACT_SUFX= .tar.xz

BUILD_DEPENDS= emacs->=24:editors/emacs
Index: mail/mu/distinfo
===================================================================
RCS file: /cvs/ports/mail/mu/distinfo,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 distinfo
--- mail/mu/distinfo 21 Jul 2019 00:10:04 -0000 1.7
+++ mail/mu/distinfo 3 May 2020 11:05:11 -0000
@@ -1,2 +1,2 @@
-SHA256 (mu-1.2.0.tar.xz) = 9jTH8kTcaET/cdw8PhiT5I4ZPKqeDnR+umFjCXdfBTo=
-SIZE (mu-1.2.0.tar.xz) = 844192
+SHA256 (mu-1.4.3.tar.xz) = f819db50a21eb200f015ff3486e9bb9db51e0a616aa9dd257b6654512c7c782a
+SIZE (mu-1.4.3.tar.xz) = 875272
Index: mail/mu/patches/patch-lib_parser_utils_cc
===================================================================
RCS file: /cvs/ports/mail/mu/patches/patch-lib_parser_utils_cc,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-lib_parser_utils_cc
--- mail/mu/patches/patch-lib_parser_utils_cc 26 Jul 2019 06:41:59 -0000 1.1
+++ mail/mu/patches/patch-lib_parser_utils_cc 3 May 2020 11:05:11 -0000
@@ -1,11 +1,11 @@
$OpenBSD: patch-lib_parser_utils_cc,v 1.1 2019/07/26 06:41:59 pvk Exp $
Bring g_vasprintf into scope
-Index: lib/parser/utils.cc
---- lib/parser/utils.cc.orig
-+++ lib/parser/utils.cc
-@@ -17,7 +17,7 @@
- ** 02110-1301, USA.
+Index: lib/utils/mu-utils.cc
+--- lib/utils/mu-utils.cc.orig
++++ lib/utils/mu-utils.cc
+@@ -18,7 +18,7 @@
*/
+

-#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED 1
Index: mail/mu/pkg/MESSAGE
===================================================================
RCS file: mail/mu/pkg/MESSAGE
diff -N mail/mu/pkg/MESSAGE
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ mail/mu/pkg/MESSAGE 3 May 2020 11:05:11 -0000
@@ -0,0 +1,2 @@
+The mu tools command line interface and default paths have been changed.
+Review share/doc/pkg-readmes/${PKGSTEM} for details.
Index: mail/mu/pkg/PLIST
===================================================================
RCS file: /cvs/ports/mail/mu/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 PLIST
--- mail/mu/pkg/PLIST 20 May 2018 08:02:14 -0000 1.6
+++ mail/mu/pkg/PLIST 3 May 2020 11:05:11 -0000
@@ -8,6 +8,8 @@
@man man/man1/mu-find.1
@man man/man1/mu-help.1
@man man/man1/mu-index.1
+@man man/man1/mu-info.1
+@man man/man1/mu-init.1
@man man/man1/mu-mkdir.1
@man man/man1/mu-remove.1
@man man/man1/mu-script.1
@@ -22,6 +24,7 @@
share/doc/mu/
share/doc/mu/NEWS.org
share/doc/mu/mu4e-about.org
+share/doc/pkg-readmes/${PKGSTEM}
share/emacs/
share/emacs/site-lisp/
share/emacs/site-lisp/mu4e/
@@ -37,6 +40,8 @@ share/emacs/site-lisp/mu4e/mu4e-draft.el
share/emacs/site-lisp/mu4e/mu4e-draft.elc
share/emacs/site-lisp/mu4e/mu4e-headers.el
share/emacs/site-lisp/mu4e/mu4e-headers.elc
+share/emacs/site-lisp/mu4e/mu4e-icalendar.el
+share/emacs/site-lisp/mu4e/mu4e-icalendar.elc
share/emacs/site-lisp/mu4e/mu4e-lists.el
share/emacs/site-lisp/mu4e/mu4e-lists.elc
share/emacs/site-lisp/mu4e/mu4e-main.el
@@ -47,6 +52,8 @@ share/emacs/site-lisp/mu4e/mu4e-message.
share/emacs/site-lisp/mu4e/mu4e-message.elc
share/emacs/site-lisp/mu4e/mu4e-meta.el
share/emacs/site-lisp/mu4e/mu4e-meta.elc
+share/emacs/site-lisp/mu4e/mu4e-org.el
+share/emacs/site-lisp/mu4e/mu4e-org.elc
share/emacs/site-lisp/mu4e/mu4e-proc.el
share/emacs/site-lisp/mu4e/mu4e-proc.elc
share/emacs/site-lisp/mu4e/mu4e-speedbar.el
@@ -61,5 +68,3 @@ share/emacs/site-lisp/mu4e/mu4e.el
share/emacs/site-lisp/mu4e/mu4e.elc
share/emacs/site-lisp/mu4e/org-mu4e.el
share/emacs/site-lisp/mu4e/org-mu4e.elc
-share/emacs/site-lisp/mu4e/org-old-mu4e.el
-share/emacs/site-lisp/mu4e/org-old-mu4e.elc
Index: mail/mu/pkg/README
===================================================================
RCS file: mail/mu/pkg/README
diff -N mail/mu/pkg/README
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ mail/mu/pkg/README 3 May 2020 11:05:11 -0000
@@ -0,0 +1,131 @@
+1.4 (released, as of April 18 2020)
+═══════════════════════════════════
+
+mu
+╌╌
+
+ • mu now defaults to the [XDG Base Directory Specification] for the
+ default locations for various files. E.g. on Unix the mu database
+ now lives under `~/.cache/mu/' rather than `~/.mu'. You can still
+ use the old location by passing `--muhome=~/.mu' to various `mu'
+ commands, or setting `(setq mu4e-mu-home "~/.mu")' for `mu4e'.
+
+ If your `~/.cache' is volatile (e.g., is cleared on reboot), you may
+ want use `--muhome'. Some mailing-list dicussion suggest that's
+ fairly rare though.
+
+ After upgrading, you may wish to delete the files in the old
+ location to recover some diskspace.
+
+
+ • There's a new subcommand `mu init' to initialize the mu database,
+ which takes the `--maildir' and `--my-address' parameters that
+ `index' used to take. These parameters are persistent so `index'
+ does not need (or accept) them anymore. `mu4e' now depends on those
+ parameters.
+
+ `init' only needs to be run once or when changing these parameters.
+ That implies that you need to re-index after changing these
+ parameters.
+
+ • There is another new subcommand `mu info' to get information about
+ the mu database, the personal addresses etc.
+
+ • The contacts cache (which is used by `mu cfind' and `mu4e''s
+ contact-completion) is now stored as part of the Xapian database
+ rather than as a separate file.
+
+ • The `--xbatchsize' and `--autoupgrade' options for indexing are gone
+ now; both are determined implicitly now.
+
+
+[XDG Base Directory Specification]
+<https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>
+
+
+mu4e
+╌╌╌╌
+
+ • `mu4e' no longer uses the `mu4e-maildir' and
+ `mu4e-user-mail-address-list' variables; instead it uses the
+ information it gets from `mu' (see the `mu' section above).
+
+ It is strongly recommended that you run `mu init' with the
+ appropriate parameters to (re)initialize the Xapian database, as
+ mentioned in the mu-section above.
+
+ The main screen shows your address(es), and issues a warning if
+ `user-email-address' is not part of that (and refer you to `mu
+ init'). You can avoid the addresses in the main screen and the
+ warning by setting `mu4e-main-view-hide-addresses' to non-nil.
+
+ • In many cases, `mu4e' used to receive /all/ contacts after each
+ indexing operation; this was slow for some users, so we have updated
+ this to /only/ get the contacts that have changed since the last
+ round.
+
+ We also moved sorting the contacts to the mu-side, which speeds
+ things up further. However, as a side-effect of this,
+ `mu4e-contacts-rewrite-function' and
+ `mu4e-compose-complete-ignore-address-regexp' have been obsoleted;
+ users of those should migrate to `mu4e-contact-process-function';
+ see its docstring for details.
+
+ • Christophe Troestler contributed support for Gnus'
+ calender-invitation handling in mu4e (i.e., you should be able to
+ accept/reject invitations etc.). It's very fresh code, and likely
+ it'll be tweaked in the future. But it's available now for testing.
+ Note that this requires the gnus-based viewer, as per `(setq
+ mu4e-view-use-gnus t)'
+
+ • In addition, he added support for custom headers, so the ones for
+ for the non-gnus-view should work just as well.
+
+ • Pierre Neidhardt contributed an experimental "Account Setup Helper"
+ which wraps the existing context setup with some niceties for
+ accounts. See the manual for details.
+
+ • `org-mode' support is enabled by default now. `speedbar' support is
+ disabled by default.
+
+ • `mu4e' now adds message-ids to messages when saving drafts, so we
+ can find them even with `mu4e-headers-skip-duplicates'.
+
+ • Bookmarks (as in `mu4e-bookmarks') are now simple plists (instead of
+ cl structs). `make-mu4e-bookmark' has been updated to produce such
+ plists (for backward compatibility). A bookmark now looks like a
+ list of e.g. `(:name "My bookmark" :query "banana OR pear" :key ?f)'
+ this format is a bit easier extensible.
+
+ • `mu4e' recognizes an attribute `:hide t', which will hide the
+ bookmark item from the main-screen (and speedbar), but keep it
+ avilable through the completion UI.
+
+ • `mu4e-maildir-shortcuts' have also become plists. The older format
+ is still recognized for backward compatibility, but you are
+ encouraged to upgrade.
+
+ • Replying to mailing-lists has been improved, allowing for choosing
+ for replying to all, sender, list-only.
+
+ • A very visible change, `mu4e' now shows unread/all counts for
+ bookmarks in the main screen. This is on by default, but can be
+ disabled by setting `:hide-unread' in the bookmark `plist' to `t'.
+ For speed-reasons, these counts do _not_ filter out duplicates or
+ messages that have been removed from the filesystem behind mu4e's
+ back.
+
+ • `mu4e-attachment-dir' now also applies to composing messages; it
+ determines the default directory for inclusion.
+
+ • The mu4e <->mu interaction has been rewritten to communicate using
+ s-expressions, with a repl for testing. If you have readline
+ installed, you also get history.
+
+
+toys
+╌╌╌╌
+
+ • Updated the `mug' toy UI to use Webkit2/GTK+. Note that this is just
+ a toy which is not meant for distribution. `msg2pdf' is disabled for
+ now.

No comments:

Post a Comment