On 02/04/2015 04:16 PM, Sri Ram Kannan wrote:
> Hi Mathew,
>
> Thanks for replying back. I would look into your notes to install the
> mail server.
>
> Before that, can you say how to test Email2Trac and Mail2Trac plugins
> locally ? I have installed the Trac in my local machine successfully. I
> don't have the idea of how to proceed to test the plugins.
I'll answer each point individually and try to help.
I'm also not familiar with Mail2Trac. I only use email2trac and achieve
the behavior which I think you're trying to get working.
Looking at
http://trac-hacks.org/wiki/MailToTracPlugin, it seems that
MailToTrac and Email2Trac may provide the same functions, so you would
want to pick one, and not do both.
> To be precise where I'm struggling to continue is:
> 1. Able to create a ticket and the ticket is sent to Gmail successfully.
It sounds like this is working.
> 2. No clue on where the email generated is stored in the local machine.
It isn't. Email is only stored on the local machine until the remote
machine (Google's servers) accept it for delivery. Then it is deleted.
> 3. The main functionality to check is to modify the ticket and send to
> Email2Trac and Mail2Trac plugin so that the modification must be added
> as a comment in the ticket page.
I presume you mean that you want to reply to the email and have it get
added to the ticket. For that, you need a local mailserver that accepts
email destined for the original from address.
So, if you send email to
sriram...@gmail.com, and it's from
tr...@yourdomain.com, you need to be able to hit reply and the email goes
to
tr...@yourdomain.com, which means that you need to set up a mailserver
@
yourdomain.com which will accept email and route it to the email2trac
script.
> 4. How to receive the mail locally in the machine to see rather than
> sending to the gmail.
Once your mailserver is working, you'd want to change the email address
associated with that user in the admin panel, so instead of trying to
send it to
sriram...@gmail.com, you want it to go to
sriram...@yourdomain.com. You may also want to change the trac config
to use the local mail server. Then you can check that email account
instead of the IMAP account and get email there.
> I kindly request you to explain if possible step - by - step so that I
> can understand easily. I'm working in ubuntu 14.0.4 and see a good
> article for email2trac on windows but not for ubuntu.
IIRC, Installation is standard Unix configure/make/make install:
https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracInstallation
You could follow the Debian Package instructions, but I believe I just
followed "No package manager".
And this covers the config:
https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracConfiguration
And the stuff I posted earlier covers adding it to your exim.
Unfortunately, I can't be more specific than this, because the specifics
are determined by your site's individual requirements.