﻿ticket,summary,type,release,owner,status,created,modified,_description,_reporter
10490,installation instructions refer to non-existent mail2trac script,defect,1.0,Olivier ANDRE,new,2012-10-16T23:13:11+02:00,2012-10-29T23:58:21+01:00,"Versions: Trac 1.0, python 2.7.3, Ubuntu 12.04.1 LTS

It appears that the documentation does not match the code in svn. Something appears to be out of syc.

I installed MailToTracPlugin per MailToTracPlugin:
`easy_install http://trac-hacks.org/svn/mailtotracplugin/0.12/plugin`

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).''

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.''

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 
on http://www.gossamer-threads.com/lists/trac/users/43284?do=post_view_threaded#43284. This still has not resulted in success.

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.

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.

I installed postfix per: https://help.ubuntu.com/community/Postfix

Everything tests out fine for postfix. The alias was setup correctly as it is triggered when the email is sent to the server. I am able to send emails to the server and the ""email2trac.py"" script is triggered, but it just does't do anything. I've 

This is the setup I am using for the alias: 
{{{
#!sh
nano /etc/aliases ...
    trac: ""| python /usr/local/lib/python2.7/dist-packages/mail2trac-1-py2.7.egg/mail2trac/email2trac.py -p /var/opt/trac/projects/alasg""
}}}

The instructions instruct me to add the following alias, but:
{{{
""mail2trac"" does not exist, so that was not an option:
    foo: ""| /path/to/mail2trac -p /var/trac/bar""
}}}

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"")
{{{
    foo: ""| /var/opt/trac/projects/alasg/plugins/mail2tracAdmin -p /var/opt/trac/projects/alasg""
}}}

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:
{{{
#!sh
python /usr/local/lib/python2.7/dist-packages/mail2trac-1-py2.7.egg/mail2trac/email2trac.py -p $TRAC_ALASG_HOME <<EOF
Subject: this is my subject
This is my email body text.
.
EOF

}}}
...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.

I'm willing to try more, but I am not sure how far to go down any of these roads. Let me know if you see something I have done wrong. Thanks.",richard.lyders@…
11177,When closing a ticket the resolution is not set,defect,1.0,Olivier ANDRE,new,2013-06-19T15:57:35+02:00,2013-06-19T15:57:35+02:00,"Steps to reproduce:

Reply to a ticket notification with no matter which resolve command, eg. `#fixed` or '#resolve: wontfix'.

Result:

The ticket is closed without a resolution.

Expected result:

The ticket is closed with a resolution, eg. 'fixed' or 'wontfix'.

I've attached a bugfix.",Jan Beilicke
9662,MailToTracPlugin can only handle text/plain emails?,defect,0.12,Olivier ANDRE,new,2012-01-04T18:28:48+01:00,2012-01-04T18:28:48+01:00,"utils.get_body_and_attachments()
{{{
		elif (ctype not in ('application/pgp-signature')):
			file_name = part.get_filename()
			attachments.append(part)
			
	return contents['text/plain'], attachments
}}}",anonymous
9536,ReplyToTicket fails to recognize replies to tickets if trac.ini contains a custom ticket_subject_template,defect,0.12,Olivier ANDRE,new,2011-11-10T12:56:46+01:00,2012-09-04T20:26:08+02:00,"ReplyToTicket fails to recognize replies to tickets if trac.ini contains a custom ticket_subject_template with a variable //other// than $prefix, $ticket.id and $summary.",Olivier ANDRE
10168,mail2trac: accept any subject with a ticket number in it (update feature),enhancement,0.12,Olivier ANDRE,new,2012-07-21T14:03:45+02:00,2012-07-21T14:03:45+02:00,"Hello,

I'd like to have mail2trac update a ticket when the subject contains a
ticket number, not only when the subject matches the ticket complete
subject (as constructed with 'ticket_subject_template' and
'smtp_subject_prefix' in email2ticket.py around line 300).

So I suggest a regex like this :

        subject_re = '.*#([0-9]+).*'

It will accept any email with a subject containing a ticket number,
whatever the remaining of the subject.

I find this behavior handy because team members can now update a
ticket easily : they just have to know the ticket number.

I tested that on my local trac. Tell me if you need a patch against SVN
to integrate this feature ?

Moreover you may want to have this behavior configurable. I suggest a
setting like 'accept_simple_subject'.

Best regards,
Michel
",michelbriand@…
10351,Feature to parse Custom Ticket fields and Custom Statuses,enhancement,0.12,Olivier ANDRE,new,2012-09-20T19:57:37+02:00,2012-09-20T19:57:37+02:00,"Hi, 

I mainly use mail2trac to create tickets, but I have many custom ticket fields (mentioned in [ticket-custom] of trac.ini) which I need to specify. Since custom fields are a part of the main trac release it would be great if mail2trac were enhanced to include parsing of the custom fields. 

This is a relevant ticket http://trac-hacks.org/ticket/9536. 

The same goes for new statuses declared when adopting a new ticket workflow. 

Thanks",prav
7222,an IEhandler to create a wiki topic?,task,0.11,Olivier ANDRE,new,2010-06-08T23:19:32+02:00,2011-11-10T13:00:37+01:00,"Alas, not knowing the internals of trac I cannot know the depth of the request I make.  Would it be possible to have an IEhandler that creates a wiki topic?  Doing the right thing if possible, by setting the owner to the email sender, a couple other features possible...

thanks!

--Chan",chan wilson
9850,Cannot get MailToTracPlugin to parse mail correctly,defect,0.11,Olivier ANDRE,new,2012-02-24T19:06:50+01:00,2012-02-24T19:06:50+01:00,"The plugin creates tickets however when an e-mail is sent with the subject ""create : New Ticket"", a ticket is created with the subject ""create : New Ticket"". Replying to an e-mail that was received after creating the ticket with the subject ""Re: [trac] #47: create : New Ticket"" creates another ticket with a similar subject.
",mehmet.avcioglu@…
11400,How to set email2trac on windows platform?,task,,Olivier ANDRE,new,2013-11-20T13:31:57+01:00,2013-11-21T05:09:07+01:00,How to set email2trac on windows platform?,anuja.bakshi@…
