Commit 7853c126 authored by Hiro's avatar Hiro 🏄
Browse files

Update how Gettor processes emails

parent dd799fd5
{
"platforms": ["linux", "osx", "windows"],
"dbname": "gettor.db",
"email_parser_logfile": "email_parser.log",
"dbname": "/srv/gettor.torproject.org/home/gettor-hiro/gettor.db",
"email_parser_logfile": "/srv/gettor.torproject.org/home/gettor-hiro/log/email_parser.log",
"email_requests_limit": 5,
"sendmail_interval": 10,
"sendmail_addr": "email@addr",
......
......@@ -9,14 +9,15 @@
# :license: This is Free Software. See LICENSE for license information.
import sys
sys.path.insert(0, '..')
import os
from twisted.python import log
from twisted.internet import defer, reactor
from gettor import EMAIL_PARSER_LOGFILE
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from gettor.parse.email import EmailParser, AddressError, DKIMError
EMAIL_PARSER_LOGFILE = "/srv/gettor.torproject.org/home/gettor-hiro/log/email_parser.log"
@defer.inlineCallbacks
def process_email(message):
......
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