From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QO4JGMiPeWLuMwEAbAwnHQ (envelope-from ) for ; Tue, 10 May 2022 00:03:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6CsQGMiPeWL1dQEA9RJhRA (envelope-from ) for ; Tue, 10 May 2022 00:03:52 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 448CD13C8E for ; Tue, 10 May 2022 00:03:51 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 68F935F6BE; Mon, 9 May 2022 22:03:48 +0000 (UTC) X-Greylist: delayed 395 seconds by postgrey-1.36 at yantan; Mon, 09 May 2022 22:00:49 UTC Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mail.notmuchmail.org (Postfix) with ESMTPS id 615545F5EB for ; Mon, 9 May 2022 22:00:49 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 802E85C01B6 for ; Mon, 9 May 2022 17:54:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 09 May 2022 17:54:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1652133253; x=1652219653; bh=RiqwyAIKa1 0Fk01PqZNZh+Yq4Dt+KwbIzW3Bul1jY/o=; b=3hog53Sc6qBgXtx9Eo+lRP9ABW DHeWhwX1Z3gPhpQUxkH1O4rb0Y5oei9Ety/xtM8d8Cd/76WTQrCB2tCENXLag/nG JwoO4t9HBuo6Pyfsz7ul/XybENraoy9xjV4GZBviB8vP3LyxSkt3Dcyp4To+Zna0 VxVK5lfzW9e+gp5y9xFeAmJdOR7Odbf9RtrRaO+H5jBo7RoCj/UMJoZstU+JN8rP d7e2IVP3DL3xqEn5Av7wOx45hMJTyq9cQaYFopGZG1xH5eIdY+XZ3fwOSZwTrKpd D5OiwXMXNr+BrU9mIKjzcNHtGfRA29l66TWfHNK73lDN4xJF83rfR990Uf/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1652133253; x= 1652219653; bh=RiqwyAIKa10Fk01PqZNZh+Yq4Dt+KwbIzW3Bul1jY/o=; b=z zc6j/al0+c5r1NDp4MUgXWsKLGgPE+H34wj3KDWfB93RKUTfobdmTX7V5oh0xNT0 9YQuTtPNRcy3EU/QQs4tArkWUWVQ6yk+WAanETTxeWB+TuqqMpSWX+kjqrSro1rP pEBt8+0X3c+ge7gutb8dkd0KKWDCbgmFgTX1IJhCx2S4RHkHdH7DwChRg5de9rT7 FPxddYYEJgzYKkl65sR5RyYXDvmJIR1Jm2C7dqdT+lHryZZHA5WeHTxyb8RFZsXe zgYh8l3oNRWIRvFxrbx+N1RX549vMvmDc1Z7ilpFHjoZwiu5xqR4aeYvcGCJX6cO sWUEL187dtqKwFJ/+WtOQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurheptggggffhvffufffkfgesthhqredttd erjeenucfhrhhomhephhhgvhcuoehhghhvsehfrghsthhmrghilhdrtghomheqnecuggft rfgrthhtvghrnhepieeiueejlefgieelkefgudehgeefvdegieevteduheeuvdeghefgud euveefteeknecuffhomhgrihhnpehgihhthhhusgdrtghomhdpvghmrggtshdrlhhotggr lhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhgh hvsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 9 May 2022 17:54:13 -0400 (EDT) MIME-Version: 1.0 From: hgv To: notmuch@notmuchmail.org Subject: Help with sending mail from notmuch-emacs Date: Mon, 09 May 2022 17:54:12 -0400 Message-ID: <165213325238.16557.2841309328065638457@1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa> User-Agent: alot/0.9.1 X-MailFrom: hgv@fastmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: KKPI2OD76N35TKGJT6MVH5F26SFEG4K7 X-Message-ID-Hash: KKPI2OD76N35TKGJT6MVH5F26SFEG4K7 X-Mailman-Approved-At: Mon, 09 May 2022 22:03:46 +0000 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652133832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=V/irPWzXdonopmHsaKkXdfUlGcuGFMS6y4mTDYGyV64=; b=kufTSd5ii6D2t4GRAY2xELTcMsVDg7TRJthWU1AJgXBczfqwb+wgMkq9GMANimJVEjw/DV 3sGLgQR/KPOumkNM+P+EsFmQStAsAiNvPJuuyy4DLz1RdOTXzUGKspOHoSWeaBesbTBClM xm2W5KOqQ5jy31SOnbKtxnBr0wKOcNKkDo/ZZApDjesBh4sNWH0RUmvlD27IDSqsj92TiT UjTR/UUjvsjjEZnONIH0k6wVxKLSVOh2/tUK70jCVL6/1UlUWOnU5dz4SdTn/2mb30rxg2 uLc+aLGM+sNn4wSA6/xEzUXvC9GRruPiquYgpUkCys5qUHQ8fciJRLZYyUg1Xg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652133832; a=rsa-sha256; cv=none; b=UQIc98Ts6SVtkqRgDdJ5ThT52Mj6EvbRpTFD3fMNJ1w1H0gqkHRGEihAv/CuGs7WEv73BY KpzsNb5CIBcyyfHStJh0IQF7ZsTjiYrhqzYJ9k3GtjQBjLCG+KMHTqyJpScVR6DYdEUh0w DKKgPg3Hg3ZAyRhq4wcVZMeUbjXCu2++WTh4bNkpLgwBIO8hbwRT0/vhfvZXnp5b+gYphw aujAUdEqVM1lUoKtUGXKmE6clVr5IY9K6fu8cg+p5CwACMtlUzfazbLQlMM/8XFw5E69bF qt1AAIPhdIhDx5XFxPexglYX5e4PjMYe8grrL+2Uq/UrOKD2DfG7q5a5D3heBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=fastmail.com header.s=fm1 header.b=3hog53Sc; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b="z zc6j/a"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 7.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=fastmail.com header.s=fm1 header.b=3hog53Sc; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b="z zc6j/a"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 448CD13C8E X-Spam-Score: 7.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: RUtci9E2WDHj Dear Notmuch list, I have used notmuch (very happily) for a number of years with alot as my client. I'm now trying out the emacs client (with doom emacs), which is very cool so far. But I am struggling with two particular points around sending emails and cannot solve them on my own. I am also new to emacs, so please forgive my struggles that stem from being a newbie there. 1. Mail gets sent but doesn't save in the correct directory via FCC. I use msmtpq as my sending program. Upon sending, I receive this message: "message-send-mail-with-sendmail: Sending...failed to mail for [ -oi -f hgv@fastmail.com -t ] : send was successful;" The mail is sent but is not saved in the fcc dir nor entered into the notmuch database. I have enabled emacs debugger (on entry with different functions related to sending) and stepped through the process but didn't see any pertinent information in the messages. My fcc line reads `(setq notmuch-fcc-dirs "fastmail/Sent +sent +inbox +sent-new")` (fuller notmuch-emacs config below). Any guidance on fixing or further troubleshooting (what should I look for on debugger) is appreciated. 2. I have my emacs setup to prefer utf-8 encoding in basically all situations. Emails I send with emacs seem to be correctly encoded. But the Content-Type header is set only to "text/plain" rather than "text/plain; charset=utf-8" (as it is in alot and as it should be). Further, there is no Content-Transfer-Encoding header set. Based on my reading of the emacs message mode docs, Content-Transfer-Encoding should be set on the fly depending on the Content-Type and other factors (to either "quoted-printable" or "base64" for "text/plain"). Perhaps I should not worry about these headers; but it seems like they affect whether mail gets delivered at certain providers and certainly how it displays. Any advice on getting both Content-Type and Content-Transfer-Encoding to set correctly? (Without my settings that prefer utf-8, my emails are ascii encoded and the Content-Type is set as "text/plain; charset=us-ascii" but still no Content-Transfer-Encoding.) I'm on macos 10.15.7, with notmuch .35 (via homebrew), and GNU emacs 28.1 (from https://github.com/d12frosted/homebrew-emacs-plus via homebrew). Thank you for your help and for the tremendous software! hgv ``` ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- ---snip--- ;; mainly force utf-8 (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'utf-8) (set-file-name-coding-system 'utf-8) (set-clipboard-coding-system 'utf-8) (set-buffer-file-coding-system 'utf-8) ---snip--- ;; gnus-alias (autoload 'gnus-alias-determine-identity "gnus-alias" "" t) (add-hook 'message-setup-hook 'gnus-alias-determine-identity) (setq gnus-alias-identity-alist '(("fastmail" ---snip--- )) ;; Use "fastmail" identity by default (setq gnus-alias-default-identity "fastmail") ;; Define rules to match work identity (setq gnus-alias-identity-rules ---snip--- )) ;; sorting out regex and replying (setq gnus-alias-override-user-mail-address t) (setq gnus-alias-unknown-identity-rule 'default) ;; auto save (setq message-auto-save-directory "~/.config/emacs/.local/cache/notmuch/unsaved-drafts") ;; supposedly outdated ;; now sourced from language (setq message-default-charset "utf-8") (setq mm-coding-system-priorities '(utf-8)) ;; notmuch (after! notmuch (setq +notmuch-sync-backend "notmuch new" +notmuch-delete-tags '("+ztrash") +notmuch-spam-tags '("+spam") notmuch-draft-tags '("+draft" "-new") notmuch-archive-tags '("-inbox" "-unread")) (setq notmuch-mua-compose-in 'new-window) (setq notmuch-mua-user-agent-function 'notmuch-mua-user-agent-notmuch) (setq message-kill-buffer-on-exit t) (setq message-send-mail-function 'message-send-mail-with-sendmail) (setq sendmail-program "msmtpq" mail-specify-envelope-from t message-sendmail-f-is-evil nil mail-envelope-from 'header message-sendmail-envelope-from 'header) (setq notmuch-address-save-filename "~/.config/emacs/.local/notmuch/address-cache") (setq notmuch-draft-folder "fastmail/Drafts") ;; overwritten from ~/.config/emacs/.local/straight/repos/notmuch/emacs/notmuch-draft.el (defun notmuch-draft--mark-deleted () (when notmuch-draft-id (notmuch-tag notmuch-draft-id '("+ztrash")))) (setq notmuch-fcc-dirs "fastmail/Sent +sent +inbox +sent-new") (setq notmuch-identities ---snip--- (setq notmuch-mua-send-hook '(notmuch-mua-attachment-check)) (setq notmuch-show-empty-saved-searches nil) (setq notmuch-multipart/alternative-discouraged '("text/plain" "text/html")) (setq notmuch-saved-searches ---snip--- ))) ```