Use a more generally runnable socketname
This commit is contained in:
+4
-1
@@ -17,6 +17,7 @@ except:
|
|||||||
import time
|
import time
|
||||||
import email
|
import email
|
||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
from socket import AF_INET, AF_INET6
|
from socket import AF_INET, AF_INET6
|
||||||
from Milter.utils import parse_addr
|
from Milter.utils import parse_addr
|
||||||
if True:
|
if True:
|
||||||
@@ -157,7 +158,9 @@ def background():
|
|||||||
def main():
|
def main():
|
||||||
bt = Thread(target=background)
|
bt = Thread(target=background)
|
||||||
bt.start()
|
bt.start()
|
||||||
socketname = "/home/stuart/pythonsock"
|
# This is NOT a good socket location for production, it is for
|
||||||
|
# playing around. I suggest /var/run/milter/myappnamesock for production.
|
||||||
|
socketname = os.path.expanduser('~/pythonsock')
|
||||||
timeout = 600
|
timeout = 600
|
||||||
# Register to have the Milter factory create instances of your class:
|
# Register to have the Milter factory create instances of your class:
|
||||||
Milter.factory = myMilter
|
Milter.factory = myMilter
|
||||||
|
|||||||
Reference in New Issue
Block a user