From ea1fbe2298bb7adcf3b6679c3ff1b9bad051f1a0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 10 Jun 2013 16:37:05 -0400 Subject: [PATCH] test/gmane/3: Add tests for HTML generation Signed-off-by: W. Trevor King --- test/gmane/3.config | 4 + test/gmane/3.expected | 216 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 220 insertions(+) create mode 100644 test/gmane/3.config create mode 100644 test/gmane/3.expected diff --git a/test/gmane/3.config b/test/gmane/3.config new file mode 100644 index 0000000..a9794f6 --- /dev/null +++ b/test/gmane/3.config @@ -0,0 +1,4 @@ +[DEFAULT] +to = a@b.com +date-header = True +html-mail = True diff --git a/test/gmane/3.expected b/test/gmane/3.expected new file mode 100644 index 0000000..01c081f --- /dev/null +++ b/test/gmane/3.expected @@ -0,0 +1,216 @@ +SENT BY: "gmane.mail.rss2email: W. Trevor King" +MIME-Version: 1.0 +Content-Type: text/html; charset="us-ascii" +Content-Transfer-Encoding: 7bit +From: "gmane.mail.rss2email: W. Trevor King" +To: a@b.com +Subject: Re: new maintainer and mailing list for rss2email +Date: Mon, 12 Nov 2012 21:20:22 -0000 +Message-ID: <...@dev.null.invalid> +User-Agent: rss2email/... +X-RSS-Feed: gmane/feed.rss +X-RSS-ID: http://permalink.gmane.org/gmane.mail.rss2email/1 +X-RSS-URL: http://permalink.gmane.org/gmane.mail.rss2email/1 + + + + + + +
+

Re: new maintainer and mailing list for rss2email

+
+
Alrighty, this is the first email on the list and also my first
+production mlmmj list, so I've CCed you both directly.  Etienne, let
+me know if you get the direct email but not the list email, in which
+case I'll try and figure out what I've miss-configured ;).  Lindsey,
+I'll direct future rss2email stuff to my new list, so subscribe if
+you're interested.
+
+On Mon, Nov 12, 2012 at 06:17:50PM +0100, Etienne Millon wrote:
+
+Wonderful.  Let me know if you come up with anything during a
+test-drive, and I'll get it in before the 3.0 release.
+
+
+The 2.x config format is pure Python, which means the users can do
+whatever they want there (including monkey-patching urllib2, changing
+the rss2email version number, etc.).  It's hard to imagine a robust
+way to migrate everything a user may have done in there.
+
+
+If you want to take a stab at it, I'll be happy to add it to a contrib
+directory :).
+
+
+Great :).
+
+On Mon, Nov 12, 2012 at 01:48:13PM -0500, W. Trevor King wrote:
+
+Done: https://github.com/wking/rss2email
+
+
+
+ +
+ + + + +SENT BY: "gmane.mail.rss2email: Etienne Millon" +MIME-Version: 1.0 +Content-Type: text/html; charset="us-ascii" +Content-Transfer-Encoding: 7bit +From: "gmane.mail.rss2email: Etienne Millon" +To: a@b.com +Subject: Re: new maintainer and mailing list for rss2email +Date: Tue, 13 Nov 2012 10:48:07 -0000 +Message-ID: <...@dev.null.invalid> +User-Agent: rss2email/... +X-RSS-Feed: gmane/feed.rss +X-RSS-ID: http://permalink.gmane.org/gmane.mail.rss2email/2 +X-RSS-URL: http://permalink.gmane.org/gmane.mail.rss2email/2 + + + + + + +
+

Re: new maintainer and mailing list for rss2email

+
+
* W. Trevor King <wking-vJI2gpByivqcqzYg7KEe8g< at >public.gmane.org> [121112 23:18]:
+
+It seems to work, though it may have been grouped together with my
+MDA. I'll tell you if I don't receive a mail where I'm not CCed.
+
+
+We're finalizing a release ATM, so it will be the perfect time to try
+a new rss2email release in a couple of months.
+
+
+The idea is more to migrate the low hanging fruits (maybe 95% of
+users) so that they don't lose their config. I was thinking to just
+eval() the config file and output the relevant variables to the new
+format. We'll see how it turns out :)
+
+
+Do you prefer taking pull requests there or as a discussion on the
+mailing list (git send-email style) ?
+
+
+
+ +
+ + + + +SENT BY: "gmane.mail.rss2email: W. Trevor King" +MIME-Version: 1.0 +Content-Type: text/html; charset="us-ascii" +Content-Transfer-Encoding: 7bit +From: "gmane.mail.rss2email: W. Trevor King" +To: a@b.com +Subject: Re: new maintainer and mailing list for rss2email +Date: Tue, 13 Nov 2012 12:20:20 -0000 +Message-ID: <...@dev.null.invalid> +User-Agent: rss2email/... +X-RSS-Feed: gmane/feed.rss +X-RSS-ID: http://permalink.gmane.org/gmane.mail.rss2email/3 +X-RSS-URL: http://permalink.gmane.org/gmane.mail.rss2email/3 + + + + + + +
+

Re: new maintainer and mailing list for rss2email

+
+
+send-email style, although I'll accept anything ;).
+
+
+
+ +
+ + + + +SENT BY: "gmane.mail.rss2email: Etienne Millon" +MIME-Version: 1.0 +Content-Type: text/html; charset="us-ascii" +Content-Transfer-Encoding: 7bit +From: "gmane.mail.rss2email: Etienne Millon" +To: a@b.com +Subject: Re: new maintainer and mailing list for rss2email +Date: Tue, 13 Nov 2012 12:42:13 -0000 +Message-ID: <...@dev.null.invalid> +User-Agent: rss2email/... +X-RSS-Feed: gmane/feed.rss +X-RSS-ID: http://permalink.gmane.org/gmane.mail.rss2email/4 +X-RSS-URL: http://permalink.gmane.org/gmane.mail.rss2email/4 + + + + + + +
+

Re: new maintainer and mailing list for rss2email

+
+
* W. Trevor King <wking-vJI2gpByivqcqzYg7KEe8g< at >public.gmane.org> [121113 13:21]:
+
+Ack.
+
+Also, confirming that the mailing list works.
+
+
+
+ +
+ + + + +SENT BY: "gmane.mail.rss2email: W. Trevor King" +MIME-Version: 1.0 +Content-Type: text/html; charset="us-ascii" +Content-Transfer-Encoding: 7bit +From: "gmane.mail.rss2email: W. Trevor King" +To: a@b.com +Subject: split massive package into modules +Date: Tue, 13 Nov 2012 14:36:22 -0000 +Message-ID: <...@dev.null.invalid> +User-Agent: rss2email/... +X-RSS-Feed: gmane/feed.rss +X-RSS-ID: http://permalink.gmane.org/gmane.mail.rss2email/5 +X-RSS-URL: http://permalink.gmane.org/gmane.mail.rss2email/5 + + + + + + +
+

split massive package into modules

+
+
I just split the 1769-line rss2email.py module into a more manageable
+package with sub-modules:
+
+https://github.com/wking/rss2email/commit/066602efa088b4a89d67e23011613b4459db3c92
+
+
+
+ +
+ + + -- 2.26.2