Congratulations on downloading my OTRS Bridge script, and for checking out this readme file.
I can't really provide this thing with any warranty that it will work. Nor can I promise that it
wont lose emails, break your OTRS, delete your MySQL databases, or impregnate your daughter. All
I can promise is that it works for me, and that I don't have a daughter. So there, the script is
free so avoid being a jerk and don't sue me.
On that whole losing emails thing, it's actually something I had a problem with. For whatever
reason I had some sort of wierd permissions problem with the OTRS ticket storage that meant that
whenever this script would run for the first time on any day (first email for the day) a new
OTRS article storage folder wouldn't be created meaning the email would never make it into OTRS,
and would fail completely silently. It's only when we noticed how quiet the helpdesk was that we
realised we had a problem.
Rather than investigating the real cause of the problem I just set up a cron job to run at midnight
to reset the permissions on the article storage directory and haven't had a problem since. Yes,
it's lazy, and yes there's probably a simple explanation, but I just can't be bothered and the
cricket is on. For that matter the code in this script could probably be done better, but it works
for what I need, so hopefully you can live with it too.
This script requires MySQLi to be compiled into PHP, which I think is the norm these days anyway. I
haven't bothered trying it, but I don't think this will work on PHP4. If it does, I'd like it if you
would let me know. This script worked on OTRS 2.4.4 and 2.4.5.
In terms of setting this up I just have it piped in from a sendmail alias. The mail isn't actually
delivered to the box this is on, so I just use Fetchmail to pull the mail in. It's pretty easy
to set up, but if you can't work it out I can probably give you a hand.
Anyway, thanks for getting this far. I'd love to know who is using my code or used it as inspiration
as this is my first time releasing anything as open source. Either send me an email, or (better yet)
send me a postcard from wherever you happen to be in the world. I've never travelled, so I've got to
see the world landmarks somehow, right? Email me for my postal details if you'd like to do that!
Thanks a bunch,