From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YNSFInUNml7lXwAA0tVLHw (envelope-from ) for ; Fri, 17 Apr 2020 20:11:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YL2GH3kNml5xYgAAB5/wlQ (envelope-from ) for ; Fri, 17 Apr 2020 20:11:37 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AE83F941F5E for ; Fri, 17 Apr 2020 20:11:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 32AB06DE13C8; Fri, 17 Apr 2020 13:11:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GkuMYpiG-IDi; Fri, 17 Apr 2020 13:11:29 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 68F626DE138F; Fri, 17 Apr 2020 13:11:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 320906DE136D for ; Fri, 17 Apr 2020 12:59:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KKRh0BSAHeXc for ; Fri, 17 Apr 2020 12:59:58 -0700 (PDT) X-Greylist: delayed 586 seconds by postgrey-1.36 at arlo; Fri, 17 Apr 2020 12:59:58 PDT Received: from omr1.cc.vt.edu (outbound.smtp.vt.edu [198.82.183.121]) by arlo.cworth.org (Postfix) with ESMTPS id 40F416DE119D for ; Fri, 17 Apr 2020 12:59:58 -0700 (PDT) Received: from mr6.cc.vt.edu (mr6.cc.ipv6.vt.edu [IPv6:2607:b400:92:8500:0:af:2d00:4488]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 03HJoA0q014916 for ; Fri, 17 Apr 2020 15:50:10 -0400 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by mr6.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 03HJo4Lg004439 for ; Fri, 17 Apr 2020 15:50:10 -0400 Received: by mail-oi1-f198.google.com with SMTP id i126so3189089oif.0 for ; Fri, 17 Apr 2020 12:50:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FQIYvWknOulZXmfrliTcYMrDCZpRqMbMyMAOTN1z1Rw=; b=tv3HMvK84fi3Z827QF9+wUzc9iScJM/suev7Za5LoYe4NM3F3IyHYxajeSU7yuEXZZ 8ovi3nJeJjSbPqEsp5LndsDyQyAz/6u6dg1tTO+4fLZj+7mM6MTUTrUBLEbQF/BSHrjb XcLXR/uHod7XUv6N8j4bnO5JwpkIVMN/JzOCZrHUlleGqGK5dXaVYnJx4RU0d0mpRQ2U DE3BvfHur+VhP5rsVNYMybUiOJ5SDTIedQwgG6OhL4O9N971eZIdSpSHXcA8l2I58YrT SyEVoyegRFNuqRjdWc5Vknmyyin4CknBH0RpUodLTOcPmFri+qFZB477Pp4aCk8p3mI1 HUqQ== X-Gm-Message-State: AGi0PuYZ0txBydB3KDeTjWs8b6U3nXs8Kq+NSFGD/jJwAVNMkivFZ8jZ 0XtM6dhDyZwTvsLT9TJyLFlIvyMA4V6kgGfAlsQfGlSKTwn3imKgiqj9B2/A3gfq59061s3xjDo xQLsxFo5aAIX3VXueMcOduGHREPG2sVABreJvrSdNl7o= X-Received: by 2002:a9d:19f0:: with SMTP id k103mr411782otk.324.1587153004368; Fri, 17 Apr 2020 12:50:04 -0700 (PDT) X-Google-Smtp-Source: APiQypJQDFN8649hmI1+DeehAC8fA5kcPx4uTHgG8ngkv0LvRfFAb4nXvCtWUaSCInOTRB6oCnEDilIBlSjejfdVgG4= X-Received: by 2002:a9d:19f0:: with SMTP id k103mr411762otk.324.1587153003978; Fri, 17 Apr 2020 12:50:03 -0700 (PDT) MIME-Version: 1.0 From: Mark Gardner Date: Fri, 17 Apr 2020 15:49:27 -0400 Message-ID: Subject: Emacs sending email via gmailieer To: notmuch@notmuchmail.org X-Mailman-Approved-At: Fri, 17 Apr 2020 13:11:27 -0700 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1051169660420987362==" Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 X-Spam-Score: -0.11 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=vt.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Scan-Result: default: False [-0.11 / 13.00]; ARC_NA(0.00)[]; GENERIC_REPUTATION(0.00)[-0.4578149691939]; URIBL_BLOCKED(0.00)[notmuchmail.org:email,gnu.org:url]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; IP_REPUTATION_HAM(0.00)[asn: 27017(-0.18), country: US(-0.01), ip: 50.126.95.6(-0.46)]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[notmuch@notmuchmail.org]; TO_DN_NONE(0.00)[]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; MX_GOOD(-0.50)[cached: notmuchmail.org]; CTYPE_MIXED_BOGUS(1.00)[]; RCVD_IN_DNSWL_MED(-0.20)[50.126.95.6:from]; MAILLIST(-0.20)[mailman]; FORGED_SENDER_MAILLIST(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:+]; ASN(0.00)[asn:27017, ipnet:50.126.64.0/18, country:US]; FROM_NEQ_ENVFROM(0.00)[mkg@vt.edu,notmuch-bounces@notmuchmail.org]; RCVD_COUNT_SEVEN(0.00)[10]; DMARC_POLICY_SOFTFAIL(0.10)[vt.edu : SPF not aligned (relaxed), No valid DKIM,none] X-TUID: UzaO5pIIDKvC Content-Transfer-Encoding: 7bit --===============1051169660420987362== Content-Type: multipart/alternative; boundary="00000000000001b2ec05a381db51" --00000000000001b2ec05a381db51 Content-Type: text/plain; charset="UTF-8" I am so close to getting my ideal email setup working... Instead of offlineimap or mbsync, I use gmailieer to pull down emails. It is quite fast and works with notmuch to map Gmail labels to notmuch tags. Much cleaner than the awkward way of accessing Gmail through IMAP. Where I am stuck is in sending the email. I could set up smtpmail as described in https://notmuchmail.org/emacstips/#index12h2 but gmailieer recently (v1.1) gained the capability to send mail. I would like to use that if I can so. Gmailieer sends a draft through Gmail without a problem (once I create a draft using message mode in emacs). Both sending a file and sending from stdin work: $ gmi send -C path/to/mailbox 1586809748.A123456Z12345.test\:2\,D $ cat 1586809748.A123456Z12345.test\:2\,D | gmi send -C path/to/mailbox But I am stuck configuring emacs to use gmailieer instead of sendmail or smtpmail.el. According to the emacs manual, the variable send-mail-function can be set but none of the choices looks appropriate for gmailieer: https://www.gnu.org/software/emacs/manual/html_node/emacs/Mail-Sending.html Anyone have an idea how to configure emacs to use gmailieer to send emails? mkg --00000000000001b2ec05a381db51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I a= m so close to getting my ideal email setup working...

Instead of offlineimap or mbsync, I use gmaili= eer to pull down emails. It is quite fast and works with notmuch to map Gma= il labels to notmuch tags. Much cleaner than the awkward way of accessing G= mail through IMAP. Where I am stuck is in sending the email.

I could set up smtpmail as describe= d in https://notmu= chmail.org/emacstips/#index12h2 but gmailieer recently (v1.1) gained th= e capability to send mail. I would like to use that if I can so.

Gmailieer sends a draft through Gma= il without a problem (once I create a draft using message mode in emacs). B= oth sending a file and sending from stdin work:
$ gmi send -C path/to/mailbox 1586809748.A= 123456Z12345.test\:2\,D
$ cat 1586809748.A123456Z12345.test\:2\,D | gmi send -C path/to/ma= ilbox

But I am stuck configuring emacs to use gmailieer instead of sen= dmail or smtpmail.el. According to the emacs manual, the variable send-mail= -function can be set but none of the choices looks appropriate for gmailiee= r:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Mail-S= ending.html

Anyone ha= ve an idea how to configure emacs to use gmailieer to send emails?

mkg
--00000000000001b2ec05a381db51-- --===============1051169660420987362== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1051169660420987362==--