unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Mark Gardner <mkg@vt.edu>
To: notmuch@notmuchmail.org
Subject: Emacs sending email via gmailieer
Date: Fri, 17 Apr 2020 15:49:27 -0400	[thread overview]
Message-ID: <CAG=_CgCn0hCt2wefbEOnAvE2Di4-Zhz-WO4y4V_uWFuK1iuBmA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1178 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2247 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2020-04-17 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-17 19:49 Mark Gardner [this message]
2021-02-14 16:55 ` Emacs sending email via gmailieer Matt Armstrong
2021-02-14 17:49   ` Gaute Hope

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG=_CgCn0hCt2wefbEOnAvE2Di4-Zhz-WO4y4V_uWFuK1iuBmA@mail.gmail.com' \
    --to=mkg@vt.edu \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).