Changes between Version 16 and Version 17 of EmailProcessorMacro
- Timestamp:
- Apr 16, 2015, 11:30:40 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EmailProcessorMacro
v16 v17 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Fixed width text blocks =3 2 4 == Description == 3 = Insert word-wrapped text blocks 4 5 == Description 5 6 6 7 [t:WikiProcessors Wiki Processor] to wrap a {{{<pre></pre>}}} text block to a specified number of columns, 72 by default. 7 8 8 This is especially useful for pasting emails and getting blocks that don't scroll horizontally.9 This is especially useful for pasting emails and getting blocks of text that don't scroll horizontally. 9 10 10 11 [[Image(email_formatter_example.png)]] … … 12 13 The EmailProcessorMacro is installed on Trac-Hacks, so you can test it out. Please do so only by previewing, not submitting tickets. 13 14 14 == Bugs/Feature Requests ==15 == Bugs/Feature Requests 15 16 16 17 Existing bugs and feature requests for EmailProcessorMacro are [query:status!=closed&component=EmailProcessorMacro&order=priority here]. If you have any issues, create a 17 18 [/newticket?component=EmailProcessorMacro&owner=pacopablo new ticket]. 18 19 19 == Download and Source == 20 [[TicketQuery(component=EmailProcessorMacro&group=type,format=progress)]] 21 22 == Download and Source 20 23 21 24 Download the [download:emailprocessormacro zipped source], check out [/svn/emailprocessormacro using Subversion], or [source:emailprocessormacro browse the source] with Trac. 22 25 23 == Installation == 24 While this is a wiki macro, it is in the new macro format, which is actually a single-file plugin. As of 0.11, old style macros (those installed in the wiki-macros folder and only consisting of an `execute` function) are no longer supported. This means that this `macro` needs to be installed in the global plugin directory, or in the trac environment's `plugins` directory. 26 == Installation 25 27 26 * Copy `emailprocessor.py` into the environment's `plugins` directory 27 * Add the following to the environment's `trac.ini` 28 While this is a wiki macro, it is in the new macro format, which is actually a single-file plugin. As of 0.11, old style macros (those installed in the wiki-macros folder and only consisting of an `execute` function) are no longer supported. This means that this `macro` needs to be installed in the global plugin directory, or in the trac environment's `plugins` directory. 29 30 * Copy `emailprocessor.py` into the environment's `plugins` directory. 31 * Add the following to the environment's `trac.ini` file: 28 32 {{{ 29 33 [components] 30 34 emailprocessor.emailmacro = enabled 31 35 }}} 32 * Restart your server36 * Restart your web server. 33 37 34 == Example ==38 == Example 35 39 36 40 Invocation: … … 41 45 }}} 42 46 }}} 43 To wrap to a specified length, the line immediately following the invocation should contain `cols: ` followed by the number of columns at wich we wrap. For example: 47 48 To wrap to a specified length, the line immediately following the invocation should contain `cols: ` followed by the number of columns at wich we wrap. For example: 44 49 {{{ 45 50 {{{ … … 49 54 }}} 50 55 }}} 56 51 57 It is important that the `cols:` starts at the beginning of the line and that only a number follows it. 52 58 53 54 == Recent Changes == 59 == Recent Changes 55 60 56 61 [[ChangeLog(emailprocessormacro, 3)]] 57 62 58 == Author/Contributors ==63 == Author/Contributors 59 64 60 65 '''Author:''' [wiki:pacopablo] [[BR]] 61 '''Maintainer:''' [ wiki:pacopablo] [[BR]]66 '''Maintainer:''' [[Maintainer]] [[BR]] 62 67 '''Contributors:'''