unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Emacs sending email via gmailieer
@ 2020-04-17 19:49 Mark Gardner
  2021-02-14 16:55 ` Matt Armstrong
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Gardner @ 2020-04-17 19:49 UTC (permalink / raw)
  To: notmuch


[-- 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 --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs sending email via gmailieer
  2020-04-17 19:49 Emacs sending email via gmailieer Mark Gardner
@ 2021-02-14 16:55 ` Matt Armstrong
  2021-02-14 17:49   ` Gaute Hope
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Armstrong @ 2021-02-14 16:55 UTC (permalink / raw)
  To: Mark Gardner, notmuch

Mark Gardner <mkg@vt.edu> writes:

> 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?

Mark, you'll likely have to write a send-mail-function that works with
ilieer. Or, you'll have to write a wrapper script that makes ilieer's
command line behave similarly to the classic Unix sendmail. At my former
employer we took the second option. SMTP was locked down but the
security folks provided a command line tool that could send email. The
Emacs afficionados patched that program to be behavior-compatible with
sendmail so we could set Emacs' 'send-mail-function' to
the 'sendmail-send-it' function.

Hope that helps!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs sending email via gmailieer
  2021-02-14 16:55 ` Matt Armstrong
@ 2021-02-14 17:49   ` Gaute Hope
  0 siblings, 0 replies; 3+ messages in thread
From: Gaute Hope @ 2021-02-14 17:49 UTC (permalink / raw)
  To: Matt Armstrong; +Cc: Mark Gardner, notmuch


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

Check out: https://github.com/gauteh/lieer/wiki/GNU-Emacs-and-Lieer

Regards, Gaute

søn. 14. feb. 2021, 17:55 skrev Matt Armstrong <matt@rfc20.org>:

> Mark Gardner <mkg@vt.edu> writes:
>
> > 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?
>
> Mark, you'll likely have to write a send-mail-function that works with
> ilieer. Or, you'll have to write a wrapper script that makes ilieer's
> command line behave similarly to the classic Unix sendmail. At my former
> employer we took the second option. SMTP was locked down but the
> security folks provided a command line tool that could send email. The
> Emacs afficionados patched that program to be behavior-compatible with
> sendmail so we could set Emacs' 'send-mail-function' to
> the 'sendmail-send-it' function.
>
> Hope that helps!
> _______________________________________________
> notmuch mailing list -- notmuch@notmuchmail.org
> To unsubscribe send an email to notmuch-leave@notmuchmail.org
>

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

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-14 17:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 19:49 Emacs sending email via gmailieer Mark Gardner
2021-02-14 16:55 ` Matt Armstrong
2021-02-14 17:49   ` Gaute Hope

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).