From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: [BUG] [PATCH] ox-rss: Put email address in element Date: Tue, 14 Jun 2016 01:33:54 +0530 Message-ID: <87eg80svo5.fsf@systemreboot.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCYVi-0005Xj-Rn for emacs-orgmode@gnu.org; Mon, 13 Jun 2016 16:31:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCYVf-00084g-Jc for emacs-orgmode@gnu.org; Mon, 13 Jun 2016 16:31:02 -0400 Received: from [117.218.232.8] (port=33086 helo=hrrol) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCYVe-00083F-RU for emacs-orgmode@gnu.org; Mon, 13 Jun 2016 16:30:59 -0400 Received: from [223.227.0.67] (helo=steel) by hrrol with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1bCY61-0006oD-3s for emacs-orgmode@gnu.org; Tue, 14 Jun 2016 01:34:30 +0530 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode-email --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain The RSS specification requires the email address and the name of the author to be provided in the element in the format "email@domain.com (Name)". http://www.rssboard.org/rss-specification#ltauthorgtSubelementOfLtitemgt Currently, only the author's name is provided. This is invalid RSS. Please find attached a patch fixing this. Regards, Arun Isaac. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=ox-rss-Put-email-address-in-author-element.patch Content-Transfer-Encoding: quoted-printable From=20f5e2bf625cc14efd35dcd77340b4ab380b2f3dc8 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 14 Jun 2016 01:18:55 +0530 Subject: [PATCH] ox-rss: Put email address in element * contrib/lisp/ox-rss.el (org-rss-headline): Put author's email address in element. The RSS specification requires the email address and the name of the author to be provided in the element in the format "email@domain.com (Name)". Currently, only the author's name is provided. This is invalid RSS. =2D-- contrib/lisp/ox-rss.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el index 44ee8db..a3ba274 100644 =2D-- a/contrib/lisp/ox-rss.el +++ b/contrib/lisp/ox-rss.el @@ -231,7 +231,8 @@ communication channel." (if (> (org-export-get-relative-level headline info) 1) (org-export-data-with-backend headline 'html info) (unless (org-element-property :footnote-section-p headline) =2D (let* ((author (and (plist-get info :with-author) + (let* ((email (org-export-data (plist-get info :email) info)) + (author (and (plist-get info :with-author) (let ((auth (plist-get info :author))) (and auth (org-export-data auth info))))) (htmlext (plist-get info :html-extension)) @@ -275,13 +276,13 @@ communication channel." "\n" "%s\n" "%s\n" =2D "%s\n" + "%s (%s)\n" "%s\n" "%s\n" (org-rss-build-categories headline info) "\n" "\n" "\n") =2D title publink author guid pubdate contents)))))) + title publink email author guid pubdate contents)))))) =20 (defun org-rss-build-categories (headline info) "Build categories for the RSS item." =2D-=20 2.8.3 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXXxGqAAoJEC4l7othgCuzSYsH/RFIA8vtBxLhWZKKzkEjpIJG LoAfBWKXGi+SGU6aX0El7CHOdrVB0aSY1dfmqh0bJf2Pi64PsL/RAN/+ctEmmX+5 eG6dE7R46ouQLFvDpNbHprx7EK6auhDSXHsShRD5JQmjEbqtFPX2I20lZMb1RCti O64+J7fnlJVgMLCclYhFQxi4Jq0dV3pKkqa2K7oS9jnSPjcz+Hfg0t0ogvlNHYV/ 5AYY//RB2aExDKh3zbjfD/MQDkOQceDY0WrPiD0t+uMpCXj1tE1If2V+yAc9mRxh H3CVhYEaeWATf4BHnLgQwUBQmMjTwhMCkS+ysYxu8FjqwmcG6vIrn14KaVtbWRE= =fBfs -----END PGP SIGNATURE----- --==-=-=--