Changes between Initial Version and Version 1 of Ticket #10490
- Timestamp:
- Oct 16, 2012, 10:11:34 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10490 – Description
initial v1 3 3 It appears that the documentation does not match the code in svn. Something appears to be out of syc. 4 4 5 I installed MailToTracPlugin per http://trac-hacks.org/wiki/MailToTracPlugin6 easy_install http://trac-hacks.org/svn/mailtotracplugin/0.12/plugin/ 5 I installed MailToTracPlugin per MailToTracPlugin: 6 `easy_install http://trac-hacks.org/svn/mailtotracplugin/0.12/plugin` 7 7 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)."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).'' 9 9 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."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.'' 11 11 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 gmail12 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 13 13 on http://www.gossamer-threads.com/lists/trac/users/43284?do=post_view_threaded#43284. This still has not resulted in success. 14 14 15 I've begun to debug email2trac.pybut 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.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. 16 16 17 17 I 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. … … 22 22 23 23 This is the setup I am using for the alias: 24 {{{ 25 #!sh 24 26 nano /etc/aliases ... 25 27 trac: "| python /usr/local/lib/python2.7/dist-packages/mail2trac-1-py2.7.egg/mail2trac/email2trac.py -p /var/opt/trac/projects/alasg" 28 }}} 26 29 27 The instructions instruct me to add the following alias, but "mail2trac" does not exist, so that was not an option: 30 The instructions instruct me to add the following alias, but: 31 {{{ 32 "mail2trac" does not exist, so that was not an option: 28 33 foo: "| /path/to/mail2trac -p /var/trac/bar" 34 }}} 29 35 30 36 I 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 {{{ 31 38 foo: "| /var/opt/trac/projects/alasg/plugins/mail2tracAdmin -p /var/opt/trac/projects/alasg" 39 }}} 32 40 33 41 I'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 34 44 python /usr/local/lib/python2.7/dist-packages/mail2trac-1-py2.7.egg/mail2trac/email2trac.py -p $TRAC_ALASG_HOME <<EOF 35 45 Subject: this is my subject … … 38 48 EOF 39 49 40 50 }}} 41 51 ...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. 42 52