Changes between Initial Version and Version 1 of Ticket #10490


Ignore:
Timestamp:
Oct 16, 2012, 10:11:34 PM (12 years ago)
Author:
Ryan J Ollos
Comment:

Attempt to make text more readable.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10490 – Description

    initial v1  
    33It appears that the documentation does not match the code in svn. Something appears to be out of syc.
    44
    5 I installed MailToTracPlugin per http://trac-hacks.org/wiki/MailToTracPlugin
    6 easy_install http://trac-hacks.org/svn/mailtotracplugin/0.12/plugin/
     5I installed MailToTracPlugin per MailToTracPlugin:
     6`easy_install http://trac-hacks.org/svn/mailtotracplugin/0.12/plugin`
    77
    8 The instructions refer to "a trac-admin command, a bash script (mail2tracAdmin) calling trac-admin...The bash script, mail2tracAdmin may be called by an MTA (e.g. postfix)."
     8The instructions refer to ''a trac-admin command, a bash script (mail2tracAdmin) calling trac-admin...The bash script, mail2tracAdmin may be called by an MTA (e.g. postfix).''
    99
    10 When detailing the install for Postfix, it is noted that "The mail2trac script takes a -p command line argument for the path to the project environment."
     10When detailing the install for Postfix, it is noted that ''The mail2trac script takes a -p command line argument for the path to the project environment.''
    1111
    12 The problem is that there is no existence of any "mail2trac" script. Is this refering to the "mail2tracAdmin" bash script? I've tried to use the "mail2tracAdmin" bash script in place of the non-existent "mail2trac" script, but the "mail2tracAdmin" bash script does not accept a "-p" command line argument as noted for the "mail2trac script". I've tried to leave of the "-p" argument with no success. I've tried about every combination of arguments and commands that might make sense to no avail. I've replaced the "mail2trac" script with "python /path/to/mail2trac/email2trac.py" as suggested by ethan.jucovy at gmail
     12The problem is that there is no existence of any "mail2trac" script. Is this refering to the "mail2tracAdmin" bash script? I've tried to use the "mail2tracAdmin" bash script in place of the non-existent "mail2trac" script, but the "mail2tracAdmin" bash script does not accept a "-p" command line argument as noted for the "mail2trac script". I've tried to leave of the "-p" argument with no success. I've tried about every combination of arguments and commands that might make sense to no avail. I've replaced the "mail2trac" script with `python /path/to/mail2trac/email2trac.py` as suggested by ethan.jucovy at gmail
    1313on http://www.gossamer-threads.com/lists/trac/users/43284?do=post_view_threaded#43284. This still has not resulted in success.
    1414
    15 I've begun to debug email2trac.py but it just starts and then ends without calling any of the methods/procedures defined in the file. I am now very experienced at python, so it is a struggle to figure out why nothing is happening.
     15I've begun to debug `email2trac.py` but it just starts and then ends without calling any of the methods/procedures defined in the file. I am now very experienced at python, so it is a struggle to figure out why nothing is happening.
    1616
    1717I was initially having permission problems because the "nobody" user needed permission to run the required files, so I gave access as needed. No more permission problems reported.
     
    2222
    2323This is the setup I am using for the alias:
     24{{{
     25#!sh
    2426nano /etc/aliases ...
    2527    trac: "| python /usr/local/lib/python2.7/dist-packages/mail2trac-1-py2.7.egg/mail2trac/email2trac.py -p /var/opt/trac/projects/alasg"
     28}}}
    2629
    27 The instructions instruct me to add the following alias, but "mail2trac" does not exist, so that was not an option:
     30The instructions instruct me to add the following alias, but:
     31{{{
     32"mail2trac" does not exist, so that was not an option:
    2833    foo: "| /path/to/mail2trac -p /var/trac/bar"
     34}}}
    2935
    3036I downloaded mail2tracAdmin script and then tried to make use of it in the alias, but that failed to work as it appears to accept different parameters (eg, doesn't accept "-p")
     37{{{
    3138    foo: "| /var/opt/trac/projects/alasg/plugins/mail2tracAdmin -p /var/opt/trac/projects/alasg"
     39}}}
    3240
    3341I've tried to run a test on the command-line just to see if I can make sense of the parameters and output using the following:
     42{{{
     43#!sh
    3444python /usr/local/lib/python2.7/dist-packages/mail2trac-1-py2.7.egg/mail2trac/email2trac.py -p $TRAC_ALASG_HOME <<EOF
    3545Subject: this is my subject
     
    3848EOF
    3949
    40 
     50}}}
    4151...however, the above appears to result in no commands being run within the email2trac.py python script. I've inserted debugging to find out what is going on, but it appears nothing is going on. None of the procedures within the file appear to be executed.
    4252