Changes between Version 33 and Version 34 of Email2tracConfiguration
- Timestamp:
- 10/04/07 13:30:33 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Email2tracConfiguration
v33 v34 4 4 = Configuration = 5 5 6 After installation, edit ''email2trac.conf;; for your site. Most important 7 parameter is ''project''. below is a table which options there are with a short description and the default value: 8 || NAME || VALUE || Description || 9 || [DEFAULT] || || REQUIRED || 10 || project: || /data/trac/jouvin || REQUIRED || 11 || debug: || 1 || OPTIONAL, if set print some DEBUG info || 12 || spam_level: || 4 || OPTIONAL, if set check for SPAM mail || 13 || drop_spam: || 0 || OPTIONAL:, if set then reject mail marked as SPAM || 14 || reply_all: || 1 || OPTIONAL, if set then put all CC-addresses in ticket CC-field || 15 || umask: || 022 || OPTIONAL, Use this umask for saving attachments || 16 || mailto_link: || 1 || OPTIONAL, if set then {{{[mailto:reporter]}}} in description || 17 || mailto_cc: || ticket@test.nl || OPTIONAL, Use ths address as CC in mailto line || 18 || ticket_update: || 1 || OPTIONAL, if set then check if this is an update for a ticket || 19 || email_header: || 1 || OPTIONAL, if set then show TO/CC fields in description|| 20 || trac_version: || 0.9 || OPTIONAL. if set then use this as version number, default 0.10 21 || alternate_notify_template || a_ticket.css || OPTIONAL if set then use this style sheet for notify || 22 || enable_syslog || 1 || OPTIONAL, if set log errors to syslog, note they are ''not'' mailed back to the reporter || 23 || verbatim_format || 1 || OPTIONAL, default: 1, if unset then do not use format: ''{{{'' mail body text ''}}]'' || 24 || strip_signature || 1 || OPTIONAL, It will try to remove the user signature from the mail, default: 0 || 25 || use_textwrap || 70 || OPTIONAL, It will wrap line longer then 70 chars. default: 0/off || 26 || python_egg_cache || || OPTIONAL, When set use this setting as environment variable, some installations depend on it.|| 27 || tmpdir || /tmp || OPTIONAL, if set use this as temporary directory, default: ''/tmp'' || 6 After installation, edit [wiki:Email2tracConfiguration email2trac.conf] 7 for your site. The 8 most important parameter is ''project''. Below is a table 9 of options with short descriptions and their default value: 10 || NAME || DEFAULT VALUE || Description || 11 || [DEFAULT] || || REQUIRED || 12 || project: || `/data/trac/jouvin` || REQUIRED || 13 || debug: || 0 || OPTIONAL, if set print some DEBUG info || 14 || spam_level: || 0 || OPTIONAL, if set check for SPAM mail || 15 || drop_spam: || 0 || OPTIONAL:, if set then reject mail marked as SPAM || 16 || reply_all: || 0 || OPTIONAL, if set then put all CC-addresses in ticket CC-field || 17 || umask: || process's umask || OPTIONAL, if set use this umask for saving attachments. E.g., `022`. || 18 || mailto_link: || 0 || OPTIONAL, if set then {{{[mailto:reporter]}}} in description || 19 || mailto_cc: || || OPTIONAL, use this address as CC in mailto line. E.g., `ticket@test.nl` || 20 || ticket_update: || 0 || OPTIONAL, if set then check if this is an update for a ticket (see below) || 21 || email_header: || 0 || OPTIONAL, if set then show TO/CC fields in description || 22 || trac_version: || 0.10 || OPTIONAL, if set then use this as version number || 23 || alternate_notify_template || None || OPTIONAL if set then use this style sheet for notify. E.g., `a_ticket.css` || 24 || enable_syslog || 0 || OPTIONAL, if set log errors to syslog, note they are ''not'' mailed back to the reporter || 25 || verbatim_format || 1 || OPTIONAL, default: 1, if unset then do not use format: ''{{{'' mail body text ''}}]'' || 26 || strip_signature || 0 || OPTIONAL, if set try to remove the user signature from the mail, default: 0 || 27 || use_textwrap || 0 || OPTIONAL, if set wrap text lines longer then the indicated number of characters. A value of 0 disables wrapping. || 28 || python_egg_cache || `$PYTHON_EGG_CACHE` || OPTIONAL, if set use this setting as environment variable; some installations depend on this. || 29 || tmpdir || `/tmp` || OPTIONAL, if set use this as temporary directory, default: ''/tmp'' || 30 || emacs_comment || > || OPTIONAL, prefix used to comment original text of ticket when using mailto_link || 28 31 29 32 30 || ||||31 || ||||32 || [bas] || || OPTIONALproject declaration, also set project and use --project option ||33 || project: || /data/trac/bas ||||34 || spam_level: || 2 || Override DEFAULT spam_level, can also be done for other options||33 || FURTHER ENTRIES || EXAMPLE VALUE || DESCRIPTION || 34 || || || || 35 || [bas] || || OPTIONAL next project declaration, also set project and use --project option || 36 || project: || `/data/trac/bas` || path to Trac project `bas` || 37 || spam_level: || 2 || Override DEFAULT spam_level for project `bas`. All above settings also can be set for project `bas`. || 35 38 36 39 37 40 == Spam == 38 41 39 There are two configuration options to handle spam. Both options depend on the {{{X-Spam-Score}}} line in the message header. This line is set by a spam detecting program like ''!SpamAssassin''. It count the '''*''' in the {{{X-Spam-Score}}} line, eg: 42 There are two configuration options to handle spam. Both 43 options depend on the {{{X-Spam-Score}}} line in the message 44 header. This line is set by a spam detecting program like 45 ''!SpamAssassin''. Email2trac counts the number of '''*''' 46 characters in the {{{X-Spam-Score}}} line. 47 48 For example, with the configuration: 40 49 {{{ 41 50 spam_level: 4 42 51 drop_spam: 1 43 52 }}} 44 This setup drops all email with ''Spam-score'' greater the 4. With this setting the email below is rejected: 53 Email2trac drops all email with ''Spam-score'' greater the 4. 54 Given this setting, an email with the below header is rejected: 45 55 {{{ 46 56 From lijuydru@example.com Tue Dec 5 12:47:04 2006 … … 63 73 == Ticket Update == 64 74 65 If you have enabled ''ticket_update'' in email2trac.conf then you have to configure 66 one of the two options explained below. Email2trac will scan the subject field to 67 determine if this is a ticket update and if we have to update ticket fields, eg: 68 * This will update ticket number 1529: 75 If you have enabled ''ticket_update'' in 76 [wiki:Email2tracConfiguration email2trac.conf] then you have to configure 77 one of the two options explained below. Email2trac will scan the subject field of 78 all emails to determine if a given email is a ticket update, and consequently it 79 must update ticket fields. 80 81 For example: 82 * This subject line will trigger an update of ticket number 1529: 69 83 {{{ 70 84 Subject: [hic] #1529: Re: LRZ 71 85 }}} 72 86 73 * This will update ticket 1529 and will set owner to bas and priority to medium 87 * This subject line will trigger an update of ticket number 88 1529 and will set its owner to ''bas'' and priority to ''medium'': 74 89 {{{ 75 90 Subject: [hic] #1529?owner=bas,priority=medium: Re: LRZ … … 78 93 === Email address === 79 94 80 This is the preferred method. This will setup an email address where the ticket 81 information will be sent to. This is a different email address then the ticket email address. 82 When you reply on this email a copy will be sent to the ticket email address. Here is an example 83 setup: 95 This is the preferred method. This will setup an email address 96 where the ticket information will be sent to. This is a different 97 email address than the ticket email address. When you reply on 98 this email a copy will be sent to the ticket email address. 99 100 Here is an example setup: 84 101 {{{ 85 102 (ticket address: ticket@test.nl) … … 91 108 always_notify_reporter = true 92 109 }}} 93 ''smtp_always_cc'' is the adress where the ticket information is sent to and ''smtp_from'' is the ticket 94 email address. So if somebody replies a copy is sent to this address 110 ''smtp_always_cc'' is the address where the ticket information is 111 sent to and ''smtp_from'' is the ticket email address. So if 112 somebody replies a copy of the ticket is sent to this address. 95 113 96 114 97 115 === html code === 98 116 99 Use the mailto_cc and mailto_link in email2trac.conf. This will add a ''html mailto link'' in the description field. If you click on this link it will open the default mail program which will send an email to the reporter and Carbon Copy to the ticket address. 117 Use the ''mailto_cc'' and ''mailto_link'' in 118 [wiki:Email2tracConfiguration email2trac.conf]. 119 This will add a ''html mailto link'' in the description field. 120 If you click on this link it will open the default mail program 121 which will send an email to the reporter and Carbon Copy to 122 the ticket address. 100 123 101 124 == Formatting options == 102 125 103 There are several options that control the behaviour of the format of a ticket. Below there is a brief explanation of the options: 126 There are several options that control the behaviour of the 127 format of a ticket. Below there is a brief explanation of the options: 104 128 105 129 verbatim_format:: 106 Default this option is enabled. When mail is inserted in the trac ticket system the plain text is between !{{{ ''body_text'' }}}. Then trac does not process the body_text. You can disable this option in [wiki:Email2tracConfiguration email2trac.conf]: 130 By default, this option is enabled. When mail is inserted in the 131 trac ticket system the message's body is inserted as plain text 132 in between !{{{ ''body_text'' }}}. Thus, Trac does not process 133 the body text. You can disable this option in 134 [wiki:Email2tracConfiguration email2trac.conf]: 107 135 {{{ 108 136 verbatim_format : 0 … … 110 138 111 139 strip_signature:: 112 When enabled it will try to strip the signatures from the email. It scans the message for a ''-- '' line. All lines after this line will be skipped. 140 When enabled it will try to strip the signatures from the email. 141 It scans the message for a line containing the string `--`. All lines after this 142 line will be skipped. 113 143 {{{ 114 144 strip_signature : 1 … … 116 146 117 147 use_textwrap:: 118 When enabled it will break lines greater then the the number specified, eg: 148 When enabled it will break lines greater then the the number specified. 149 For example: 119 150 {{{ 120 151 use_textwrap : 40