Changeset 9


Ignore:
Timestamp:
01/04/06 16:58:54 (16 years ago)
Author:
bas
Message:

EmailtoTracScript?:

Makefile:

  • Added clean option
  • Changed some defaults

email2trac.py:

  • Updated documentation

INSTALL:

  • Changed the docs
Location:
emailtotracscript/0.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/0.9/INSTALL

    r5 r9  
    1717    mailto_link: 1          # OPTIONAL, if set then [mailto:<CC>] in description
    1818    email_header: 1         # OPTIONAL, if set then show TO/CC fields in description
     19    trac_version: 0.8       # OPTIONAL, if set use this as trac version
    1920
    2021
     
    2425It depends on your MTA how the setup is. Below is an example of the SARA setup
    2526that uses postfix as our MTA. 
     27  - Edit Makefile, adjust the variables
     28  - make
     29  - make install
    2630  - Copy email2trac.conf to /etc  (default location for email2trac.py)
    27     If different location use the -f <filename> option for email2trac.py
    28   - Postfix run as user 'nobody' and the apache as user 'www-data'. To enable
    29     saving of attachments we must use 'run_email2trac.c'. We do not have to
    30     adjust the values. If you use other accounts then adjust the c-file:
    31        gcc -o run_email2trac run_email2trac.c
     31    If different location use the "-f <config file> or --file=<config file>" to run_email2trac
    3232
    33     default path for email2trac.py is /usr/sbin
    34   - cp run_email2trac /usr/sbin
    35   - chmod 4111 run_email2trac
    36   - cp email2trac.py /usr/sbin
    3733  - vi /etc/aliases
    38      bas: |/usr/sbin/run_email2trac
     34     bas: |/usr/sbin/run_email2trac [-f <config file>| --file=<config file>]
     35
    3936  - newaliases
    4037  - Test
  • emailtotracscript/0.9/Makefile

    r8 r9  
    66# TRAC_USER "www-data"
    77# TRAC_SCRIPT_NAME "email2trac.py"
    8 # INSTALL_DIR "/usr/bin"
    98#
    109#MTA_USER=daemon
     
    1312#INSTALL_DIR=/www/Web/servers/trac/site-config/scripts
    1413#PYTHON_BIN=/usr/local/Python/pro/bin/python
     14
     15INSTALL_DIR=/usr/bin
     16PYTHON_BIN=/usr/bin/python
    1517
    1618CC=gcc
     
    3537          chmod a+x $(INSTALL_DIR)/$$script ; \
    3638        done
     39
     40clean:
     41        rm run_email2trac
  • emailtotracscript/0.9/email2trac.py

    r5 r9  
    5252        spam_level: 4                # OPTIONAL, if set check for SPAM mail
    5353        reply_address: 1             # OPTIONAL, if set then fill in ticket CC field
    54     umask: 022                   # OPTIONAL, if set then use this umask for
    55                                                                                                 creation of the attachments
    56         mailto_link: 1               # OPTIONAL, if set then [mailto:<CC>] in
    57                                                                                                 description
     54        umask: 022                   # OPTIONAL, if set then use this umask for creation of the attachments
     55        mailto_link: 1               # OPTIONAL, if set then [mailto:<CC>] in description
    5856       
    5957 * Configure script as a mail (pipe) filter with your MTA
Note: See TracChangeset for help on using the changeset viewer.