#!/usr/bin/env bash test_description='Do duplicate message ids get shown in arrival order' . ./test-lib.sh || exit 1 find ${MAIL_DIR} generate_message [id]=duplicate-id [subject]=first [body]=first mkdir "${MAIL_DIR}"/b mv "$gen_msg_filename" "${MAIL_DIR}"/b notmuch new generate_message [id]=duplicate-id [subject]=second [body]=second mv "$gen_msg_filename" "${MAIL_DIR}"/a notmuch new find ${MAIL_DIR} echo echo SEARCH: observe \"first\" is the subject notmuch search id:duplicate-id echo echo SHOW: observe \"second\" is the subject and body notmuch show --format=json id:duplicate-id |json_pp