From b44270cbd7d8247ff378490731c21a2bbfb5319f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 18 Nov 2012 09:09:32 -0500 Subject: [PATCH] test:gmane: add Gmane feed for RSS testing The weird indentation is because Gmane wraps the descriptions in
tags (to preserve formatting in the initial email).  html2text is
converting the description to Markdown, so it inserts a leading 4
spaces for preformatted blocks.  The unindented initial line and
following blank are due to a bug in html2text, for which I've
submitted

  https://github.com/aaronsw/html2text/pull/63
---
 test/gmane/1.config   |   3 +
 test/gmane/1.expected | 163 ++++++++++++++++++++++++++++++++++++++++++
 test/gmane/README     |  19 +++++
 test/gmane/feed.rss   | 130 +++++++++++++++++++++++++++++++++
 4 files changed, 315 insertions(+)
 create mode 100644 test/gmane/1.config
 create mode 100644 test/gmane/1.expected
 create mode 100644 test/gmane/README
 create mode 100644 test/gmane/feed.rss

diff --git a/test/gmane/1.config b/test/gmane/1.config
new file mode 100644
index 0000000..15935c4
--- /dev/null
+++ b/test/gmane/1.config
@@ -0,0 +1,3 @@
+[DEFAULT]
+to = a@b.com
+date-header = True
diff --git a/test/gmane/1.expected b/test/gmane/1.expected
new file mode 100644
index 0000000..6a46d92
--- /dev/null
+++ b/test/gmane/1.expected
@@ -0,0 +1,163 @@
+SENT TO: "gmane.mail.rss2email: W. Trevor King" 
+MIME-Version: 1.0
+Content-Type: text/plain; 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: <1dda718c-58d2-4906-98c2-3277d50ec932@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
+
+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
+    
+    
+
+
+
+URL: http://permalink.gmane.org/gmane.mail.rss2email/1
+
+SENT TO: "gmane.mail.rss2email: Etienne Millon" 
+MIME-Version: 1.0
+Content-Type: text/plain; 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: 
+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
+
+* W. Trevor King 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) ?
+    
+    
+
+
+
+URL: http://permalink.gmane.org/gmane.mail.rss2email/2
+
+SENT TO: "gmane.mail.rss2email: W. Trevor King" 
+MIME-Version: 1.0
+Content-Type: text/plain; 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: <1745ca6f-b70f-4e96-bdae-a278d205e13d@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
+
+
+    send-email style, although I'll accept anything ;).
+    
+    
+
+
+
+URL: http://permalink.gmane.org/gmane.mail.rss2email/3
+
+SENT TO: "gmane.mail.rss2email: Etienne Millon" 
+MIME-Version: 1.0
+Content-Type: text/plain; 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: 
+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
+
+* W. Trevor King public.gmane.org> [121113 13:21]:
+    
+    Ack.
+    
+    Also, confirming that the mailing list works.
+    
+    
+
+
+
+URL: http://permalink.gmane.org/gmane.mail.rss2email/4
+
+SENT TO: "gmane.mail.rss2email: W. Trevor King" 
+MIME-Version: 1.0
+Content-Type: text/plain; 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: <4fb51e8a-120c-4c8e-8cfe-636ce61c0a36@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
+
+I just split the 1769-line rss2email.py module into a more manageable
+
+    package with sub-modules:
+    
+    https://github.com/wking/rss2email/commit/066602efa088b4a89d67e23011613b4459db3c92
+    
+    
+
+
+
+URL: http://permalink.gmane.org/gmane.mail.rss2email/5
diff --git a/test/gmane/README b/test/gmane/README
new file mode 100644
index 0000000..a26c4e1
--- /dev/null
+++ b/test/gmane/README
@@ -0,0 +1,19 @@
+feed.atom is a snapshot of
+
+  http://rss.gmane.org/gmane.mail.rss2email
+
+as of 2012-11-18.
+
+HTTP headers:
+
+  HTTP/1.1 200 OK
+  Date: Sun, 18 Nov 2012 14:01:35 GMT
+  Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny6 with Suhosin-Patch
+  Last-Modified: Sun, 18 Nov 2012 02:55:19 GMT
+  ETag: "9209e0-161b-4cebc218e73c0"
+  Accept-Ranges: bytes
+  Content-Length: 5659
+  Vary: Accept-Encoding
+  Keep-Alive: timeout=5, max=2
+  Connection: Keep-Alive
+  Content-Type: text/xml
diff --git a/test/gmane/feed.rss b/test/gmane/feed.rss
new file mode 100644
index 0000000..151b73f
--- /dev/null
+++ b/test/gmane/feed.rss
@@ -0,0 +1,130 @@
+
+
+  
+    gmane.mail.rss2email
+    http://permalink.gmane.org/gmane.mail.rss2email
+    
+    hourly
+    1
+    1901-01-01T00:00+00:00
+    
+      
+        
+        
+        
+        
+        
+      
+    
+    
+    
+  
+  
+    Gmane
+    http://gmane.org/img/gmane-25t.png
+    http://gmane.org
+  
+  
+    split massive package into modules
+    http://permalink.gmane.org/gmane.mail.rss2email/5
+    <pre>I just split the 1769-line rss2email.py module into a more manageable
+package with sub-modules:
+
+https://github.com/wking/rss2email/commit/066602efa088b4a89d67e23011613b4459db3c92
+
+</pre>
+    W. Trevor King
+    2012-11-13T14:36:22
+  
+  
+    Re: new maintainer and mailing list for rss2email
+    http://permalink.gmane.org/gmane.mail.rss2email/4
+    <pre>* W. Trevor King &lt;wking-vJI2gpByivqcqzYg7KEe8g&lt; at &gt;public.gmane.org&gt; [121113 13:21]:
+
+Ack.
+
+Also, confirming that the mailing list works.
+
+</pre>
+    Etienne Millon
+    2012-11-13T12:42:13
+  
+  
+    Re: new maintainer and mailing list for rss2email
+    http://permalink.gmane.org/gmane.mail.rss2email/3
+    <pre>
+send-email style, although I'll accept anything ;).
+
+</pre>
+    W. Trevor King
+    2012-11-13T12:20:20
+  
+  
+    Re: new maintainer and mailing list for rss2email
+    http://permalink.gmane.org/gmane.mail.rss2email/2
+    <pre>* W. Trevor King &lt;wking-vJI2gpByivqcqzYg7KEe8g&lt; at &gt;public.gmane.org&gt; [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) ?
+
+</pre>
+    Etienne Millon
+    2012-11-13T10:48:07
+  
+  
+    Re: new maintainer and mailing list for rss2email
+    http://permalink.gmane.org/gmane.mail.rss2email/1
+    <pre>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
+
+</pre>
+    W. Trevor King
+    2012-11-12T21:20:22
+  
+  
+    Search Engine
+    Search the mailing list at Gmane
+    query
+    http://search.gmane.org/?group=$group=gmane.mail.rss2email
+  
+
-- 
2.26.2