Browse Source

read pgprules.xml

master
Volker Birk 2 years ago
parent
commit
de535bd819
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      enigmail.py

+ 9
- 0
enigmail.py View File

@ -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

Loading…
Cancel
Save