I have updated the documentation at https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracInstallation/Windows. A summary of my posts can be found at my blog (shameless plug!) http://functionalelegant.blogspot.com/2008/03/email2trac-on-windows.html.
- Matthew Carlson On Mar 23, 1:00 am, Nicole <[EMAIL PROTECTED]> wrote: > The page has moved > tohttps://subtrac.sara.nl/oss/email2trac/wiki/Email2tracInstallation/Wi... > > On Mar 21, 5:09 pm, Nicole <[EMAIL PROTECTED]> wrote: > > > > > I thought it seemed most relevant to add it to the email2trac website, > > so I have. I'm considering it a "work in progress" as of now. > > > See:https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracOnWindows > > > Matthew -- If you have time, could you look at the pieces specific to > > using the built-in SMTP server to make sure it's accurate? > > > Thanks everyone! > > > --Nicole > > > On Mar 12, 2:57 pm, Mike Henke <[EMAIL PROTECTED]> wrote: > > > > You should upload your solution > > > tohttp://trac.edgewall.org/wiki/Email2tracOnWindows?action=edit&template= > > > > On Mar 12, 12:43 pm, Nicole <[EMAIL PROTECTED]> wrote: > > > > > Thanks, Matthew, for your detailed response. It's amazing what a > > > > couple edits to the email2trac.py script can do! I'm happy to say > > > > that I've now got it all working smashingly. > > > > > A bit about my working solution: > > > > > 1. Fetchmail -- Retrieves email from the Exchange server. I have it > > > > set up to automatically feed retrieved messages to the script so I > > > > don't need an additional script to do this. At some point I might > > > > want to change this piece of the equation to get rid of the overhead > > > > of the Cygwin component, but it's working and I like having to do a > > > > little Unix-y work. Relevant .fetchmailrc file: > > > > > poll mail.domain.com with proto IMAP, auth ntlm user "[EMAIL PROTECTED]" > > > > with password "xxx" is trac here options keep > > > > mda "C:/python25/python.exe C:/projects/email2trac/email2trac.py" > > > > > 2. email2trac script -- As can be seen in the above .fetchmailrc file, > > > > I put my script and related files in the path C:/projects/email2trac. > > > > I made the changes to email2trac.py that Matthew mentions along with a > > > > couple changes specific to my solution. > > > > * Config file variable -- Since I'm calling the script from > > > > fetchmail, I needed to specify the full path to the config file in the > > > > email2trac.py script, i.e. C:/projects/email2trac/email2trac.conf > > > > * Signature stripping -- I found that the signature stripping done > > > > in the script when the strip_signature config variable was set didn't > > > > work correctly for the format of our emails so I made a slight edit to > > > > the script. In the section of the script that defines useful mail > > > > constants (around line 141), I added the variable > > > > self.get_signature_match = '---'. Then in the strip_signature method > > > > (around line 728) I replaced the line "if line == '-- ':" with "if > > > > line.startswith(self.get_signature_match):". This resulted in the > > > > successful stripping of most signatures as well as old original > > > > message info I didn't want to get added on each response. > > > > > Note: > > > > Seehttps://subtrac.sara.nl/oss/email2trac/wiki/Email2tracConfiguration > > > > for complete configuration instructions. > > > > > 3. email2trac.conf -- Matthew covered this, but might as well mention > > > > it again along with a caveat I found related to using email2trac with > > > > trac 0.11. So, important config variables: > > > > [DEFAULT] > > > > project: C:\projects\trac\environmentname > > > > tmpdir: C:\tmp > > > > ticket_update: 1 > > > > strip_signature: 1 > > > > python_egg_cache: C:\Python25\Scripts > > > > trac_version: 0.11 > > > > > Obviously, if you don't wish to strip signatures, you would set that > > > > to 0. The trac_version variable is important if you're running trac . > > > > 11 so that you don't receive an error like "str object is not > > > > callable". Seehttps://subtrac.sara.nl/oss/email2trac/ticket/34for > > > > more information about the background of this one. > > > > > 4. Making it all work together -- I created a simple batch file that > > > > is run by Scheduled Tasks. All it does is run fetchmail. > > > > > C:\cygwin\bin\fetchmail -v --fetchmailrc C:/cygwin/path/to/fetchmailrc > > > > --logfile c:/projects/email2trac/fetchmail.log > > > > > Thanks everyone for your responses and hopefully this can help someone > > > > in the future! > > > > > --Nicole- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
