Commit 2ba11575 authored by putro's avatar putro

added testnym options in config.ini and updated README

parent b37b1c85
......@@ -48,6 +48,8 @@ menu option available:
so you don't have to type it every time
(obviously this is not a good thing, AT LEAST keep config.ini on an encrypted partition).
there's also a --test command line argument to send a msg from a nym to a recipient (defined in config.ini)
which could be used in a cron to regularly test if a nym is working.
* remember to keep your stats & keys in your local mixmaster updated
......
......@@ -399,9 +399,14 @@ def main():
try:
if opts.test:
setActiveNym("1234@nymphet.paranoici.org")
parse_stats()
writeMessage(subject="prova nymphet", recipient="putro@autistici.org", text="asdadsfj", test=1)
if config['options']['testnym'] == "":
print bcolors.RED + "\nTestnym not configured in config.ini, exiting..." + bcolors.ENDC
sys.exit()
else:
setActiveNym(config['options']['testnym'])
parse_stats()
writeMessage(subject="prova nymphet", recipient=config['options']['testnym_recipient'], text="asdadsfj", test=1)
print bcolors.GREEN + "\nTest message sent from nym %s to %s" % (config['options']['testnym'], config['options']['testnym_recipient'])
else:
parse_stats()
menu()
......
......@@ -6,6 +6,9 @@ nymservers = nymphet.paranoici.org, is-not-my.name, nymserv.breaka.net
subj_types = symmetric, hsub, subject
testnym = ""
testnym_recipient = ""
[stats]
# set parameters fow remailer stats, change with your favourite pinger
stats_url = http://remailer.paranoici.org/stats/
......
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