]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.el
notmuch search: Change default search order to be newest messages first.
[notmuch] / notmuch.el
index 8894a8e194716f444489b1676c3630c545c82c95..9de16e006fd3cac225be5c723936512279bd1022 100644 (file)
@@ -874,8 +874,8 @@ This function advances point to the next line when finished."
       (goto-char (point-min))
       (save-excursion
        (if oldest-first
-           (call-process "notmuch" nil t nil "search" query)
-         (call-process "notmuch" nil t nil "search" "--reverse" query))
+           (call-process "notmuch" nil t nil "search" "--sort=oldest-first" query)
+         (call-process "notmuch" nil t nil "search" "--sort=newest-first" query))
        (notmuch-search-markup-thread-ids)
        ))))