From: Matt Price <moptop99@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: chen bin <chenbin.sh@gmail.com>, Org Mode <emacs-orgmode@gnu.org>,
Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: org-mime: improve handling of cc & bcc
Date: Thu, 12 Jan 2017 20:13:04 -0500 [thread overview]
Message-ID: <CAN_Dec_+fr_X3oYf-bNOkv63gmpXE84o=gf39kH2WVPFRd-pew@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY34dtCN7eToYGNje1Hnu=pBpBjR8pyOPkouMxYroA2g1A@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 761 bytes --]
I'm attaching the patch anyway, but of course don't mind moving the PR to
the melpa repo.
On Thu, Jan 12, 2017 at 3:07 PM, Kaushal Modi <kaushal.modi@gmail.com>
wrote:
> I happened just recently notice that org-mime was now added to Melpa:
> https://melpa.org/#/org-mime
>
> Would it be a better option to send the patches to https://github.com/org-
> mime/org-mime and remove org-mime from contrib/ as discussed here:
> https://lists.gnu.org/archive/html/emacs-orgmode/2016-09/msg00055.html
> ?
>
> On Thu, Jan 12, 2017 at 3:01 PM Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>> Thank you.
>>
>> Could you send it again using git format-patch and with a proper commit
>> message?
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>> --
>
> Kaushal Modi
>
[-- Attachment #1.2: Type: text/html, Size: 2188 bytes --]
[-- Attachment #2: 0004-org-mime-improve-handling-of-cc-bcc-headers.patch --]
[-- Type: text/x-patch, Size: 1252 bytes --]
From ca4dfa5e5a83fe7243affbf7e34a1435cbc5b00a Mon Sep 17 00:00:00 2001
From: Matt Price <matt.price@utoronto.ca>
Date: Thu, 12 Jan 2017 20:07:55 -0500
Subject: [PATCH 4/4] org-mime: improve handling of cc & bcc headers
---
contrib/lisp/org-mime.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el
index 2ced42ec8..465fb3416 100644
--- a/contrib/lisp/org-mime.el
+++ b/contrib/lisp/org-mime.el
@@ -257,6 +257,10 @@ otherwise export the entire body."
(to (funcall mp "MAIL_TO"))
(cc (funcall mp "MAIL_CC"))
(bcc (funcall mp "MAIL_BCC"))
+ (other-headers (cond ((and cc bcc) `((cc . ,cc) (bcc . ,bcc)))
+ (cc `((cc . ,cc)))
+ (bcc `((bcc . ,bcc)))
+ (t nil)))
(body (buffer-substring
(save-excursion (goto-char (point-min))
(forward-line 1)
@@ -265,8 +269,7 @@ otherwise export the entire body."
(forward-char))
(point))
(point-max))))
- (org-mime-compose body (or fmt 'org) file to subject
- `((cc . ,cc) (bcc . ,bcc))))))
+ (org-mime-compose body (or fmt 'org) file to subject other-headers))))
(defun org-mime-send-buffer (&optional fmt)
(run-hooks 'org-mime-send-buffer-hook)
--
2.11.0
prev parent reply other threads:[~2017-01-13 1:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-11 20:20 org-mime: improve handling of cc & bcc Matt Price
2017-01-12 20:00 ` Nicolas Goaziou
2017-01-12 20:07 ` Kaushal Modi
2017-01-13 1:13 ` Matt Price [this message]
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://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN_Dec_+fr_X3oYf-bNOkv63gmpXE84o=gf39kH2WVPFRd-pew@mail.gmail.com' \
--to=moptop99@gmail.com \
--cc=chenbin.sh@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=kaushal.modi@gmail.com \
--cc=mail@nicolasgoaziou.fr \
/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://git.savannah.gnu.org/cgit/emacs/org-mode.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).