Package: rss2email
Version: 1:3.9-1
Severity: normal
Tags: patch

The prettify post-process hook does not work out of the box. This
patch fixes it.

rss2email should probably also recommend python3-bs4.

--- /tmp/prettify.py    2015-11-15 23:25:03.884000000 +0100
+++ /usr/lib/python3/dist-packages/rss2email/post_process/prettify.py   
2015-11-15 23:26:30.768000000 +0100
@@ -62,9 +62,9 @@
 
 # import modules you need
 from bs4 import BeautifulSoup
+import rss2email.email
 
-
-def pretty(message):
+def pretty(feed, parsed, entry, guid, message):
     """Use BeautifulSoup to pretty-print the html
 
     A very simple function that decodes the entry into a unicode
@@ -93,7 +93,7 @@
 
 
 def process(feed, parsed, entry, guid, message):
-    message = pretty(message)
+    message = pretty(feed, parsed, entry, guid, message)
     # you could add several filters in here if you want to
 
     # we need to return the message, if we return False,

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
 .''`.   martin f. krafft <madduck@d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to