|
|
@ -5,6 +5,7 @@ import sys |
|
|
|
import thunderbird |
|
|
|
import re |
|
|
|
from subprocess import Popen, PIPE |
|
|
|
import xml.etree.ElementTree as ET |
|
|
|
|
|
|
|
|
|
|
|
if sys.platform == 'darwin': |
|
|
@ -97,3 +98,11 @@ def pubkey_iterator(): |
|
|
|
if x[0] == 'pub': |
|
|
|
yield keydata(x[4]) |
|
|
|
|
|
|
|
class Rules: |
|
|
|
def __init__(self): |
|
|
|
try: |
|
|
|
self.et = ET.parse(os.path.join(profile_path(thunderbird_base), 'pgprules.xml')) |
|
|
|
except: |
|
|
|
self.et = None |
|
|
|
|
|
|
|
|