I get the following error:

    Uncaught Python 2.1.1 Exception (Thu Oct 24 14:21:54 2002):
    -----------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/bin/tmda-filter", line 50, in ?
        execfile(os.path.join(execdir, 'tmda-rfilter'))
      File "/usr/bin/tmda-rfilter", line 780, in ?
        main()
      File "/usr/bin/tmda-rfilter", line 723, in main
        infilter.read(Defaults.FILTER_INCOMING)
      File "/usr/lib/python2.1/site-packages/TMDA/FilterParser.py", line 332, in read
        self.__parse(fp)
      File "/usr/lib/python2.1/site-packages/TMDA/FilterParser.py", line 379, in 
__parse
        raise file.exception
    ParsingError: Filter contains parsing errors: /home/testacct/.tmda/filters/incoming
            [line  5]: "from": missing or bogus <action> field
    Traceback (most recent call last):
      File "/usr/bin/tmda-filter", line 66, in ?
        raise NameError, 'LOGFILE_DEBUG is not defined'
    NameError: LOGFILE_DEBUG is not defined

when attempting the following: 

        # .tmdarc
        HOSTNAME = os.popen('/bin/hostname -d').read()
        LOGNAME = os.popen('/usr/bin/id -un').read()

        # The offending line from the incoming filter
        from ${LOGNAME}*@${HOSTNAME} ok

What I'm trying to do is create a portable rc file that can be used "out
of the box," and (in this particular instance) allow them to
forward/send mail to themselves.

Have I missed something basic here? The python code works as expected
from the command-line.

-- 
"The only thing that helps me maintain my slender grip on reality is the
friendship I share with my collection of singing potatoes."

                        - Holly, JMC Vessel *Red Dwarf*

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to