Menu

#6 poprelayd in Python without DB problems

open-works-for-me
5
2002-08-20
2002-03-17
No

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

Discussion

  • Michael Monnerie

    Version in Python, easy to use

     
  • Nobody/Anonymous

    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
    #

     
  • Eric Garland

    Eric Garland - 2002-08-19

    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

     
  • Eric Garland

    Eric Garland - 2002-08-19
    • assigned_to: nobody --> egarland
    • status: open --> open-later
     
  • Michael Monnerie

    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

     
  • Michael Monnerie

    • status: open-later --> open-works-for-me
     

Log in to post a comment.