[Python-apps-team] Bug#792108: alot: please backport upstream fix	to make alot work as a mailto: browser handler
    Johannes Schauer 
    josch at debian.org
       
    Sat Jul 11 10:42:03 UTC 2015
    
    
  
Package: alot
Version: 0.3.6-1
Severity: wishlist
Tags: patch
Hi,
using `alot compose` one can use alot as a handler for mailto: links in
a web browser. The only thing that stops one from doing so is a small
bug in alot/helper.py. This is the fix:
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -576,7 +576,7 @@ def parse_mailto(mailto_str):
         for s in parms_str.split('&'):
             key, value = s.partition('=')[::2]
             key = key.capitalize()
-            if key is 'body':
+            if key == 'Body':
                 body = urllib.unquote(value)
             elif value:
                 headers[key] = [urllib.unquote(value)]
It was applied upstream in this commit:
https://github.com/pazz/alot/commit/dc236be51a1e136b7ddd01e2e02f7a7a29e9a9dc
Please consider adding this patch to the Debian package until the next
upstream version is released.
Thanks!
cheers, josch
    
    
More information about the Python-apps-team
mailing list