poprelayd in Python without DB problems
Brought to you by:
cjs
http://www.aspekt1.net/ms/dev/
Here you can download a rewritten version in Python
without the DB hassle that perl sometimes has. This
script generates a text file with the IPs and calls
"makemap" manually to avoid that problems. V1.01 has
easier user config and should work almost
out-of-the-box if you use qpopper from qualcomm.com.
regards,
zmi
Version in Python, easy to use
Logged In: NO
# ./poprelayd-nodb.py
Traceback (innermost last):
File "./poprelayd-nodb.py", line 92, in ?
if time.time() - secondsoldentry <= time.mktime
(time.strptime(time.strftime(
"%Y",time.localtime()) + " " + logDate,"%Y %b %d %X")):
TypeError: function requires at least one argument
poprelayd started. PID = 16666
# ps -ax|grep poprelayd
#
Logged In: YES
user_id=131437
This sounds like a great solution. I personally don't know
Python so I'll keep working on the perl version. Some day I
should make an option for having this version dump a text
file and run makemap also.
-Eric
Logged In: YES
user_id=482669
Hi, I would guess you made a mistake: In Python it's vital to
watch for correct identing. So if you make a line-break
somewhere, you get the error. Try moving all this into one line
again and it should work. You can get the original version at
http://zmi.at/linuxstuff/poprelayd/
HTH, zmi