Commit e23d226d authored by putro's avatar putro

removed unused stats download command from menu and clean config.ini section

parent faa97526
......@@ -8,10 +8,7 @@ subj_types = symmetric, hsub, subject
[stats]
# set parameters fow remailer stats, change with your favourite pinger
stats_url = http://remailer.paranoici.org/stats/
stats_rlist = rlist2.txt
stats_mlist = mlist2.txt
keys_file = pgp-all.asc
remailer_min_uptime = 90
allow_from = from.html
remailer_min_uptime = 90 # do not consider remailer with uptime less than this.
[nym]
......@@ -51,7 +51,6 @@ def menu():
1 to choose/select active nym\n\
2 to write a message (as active nym)\n\
3 to delete a nym\n\
4 to download fresh remailer stats and keys\n\
5 to choose remailers chain\n\
6 to create or update a nym\n\
8 to create a new secret key\n\
......@@ -70,11 +69,6 @@ def menu():
#sendMixMsg()
deleteNym()
menu()
elif selection == "4":
download(options.stats_rlist)
download(options.stats_mlist)
download(options.keys_file, pgp=True)
menu()
elif selection == "5":
sendMixMsg(dest="drugo@autistici.org", msg="test")
menu()
......
......@@ -7,7 +7,7 @@ import getpass
class InputError(Exception):
pass
def download(file, config, pgp=False):
def download(file, config):
""" Download remailer stats file """
print "downloading %s....... please wait" % file
from urllib2 import Request, urlopen, URLError, HTTPError
......@@ -30,12 +30,6 @@ def download(file, config, pgp=False):
w.close()
pass
if pgp:
key_data = open(options.path + "/" +
options.keys_file, "r").read()
import_keys = gpg.import_keys(key_data)
last_message = "OK - remailer keys downloaded - %s keys imported" % \
import_keys.count
def pressKey():
""" wait user to press RETURN """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment