On Tue, Jul 08, 2008 at 07:04:22AM +0200, Fredrik Unger
wrote:> Have anyone coupled Exim with the Bugzilla bug_email.pl script ?
> (under Etch, newer bugzilla in Lenny has some kind of mail API)
>
> Instead of going via procmail, is it possible to use the pipe_transport
> directly ?
This should of course be possible. There is a number of examples
around for Mailman and the Debian BTS, so you should have plenty of
input.
> Procmail recomendation is from the script:
>
> # The email needs to be feeded to this program on STDIN.
> # This is usually done by having an entry like this in your
> # .procmailrc:
> #
> # BUGZILLA_HOME=/usr/local/httpd/htdocs/bugzilla
> # :0 c
> # |(cd $BUGZILLA_HOME/contrib; ./bug_email.pl)
>
> I am using the debian X_BUGZILLA_SITE as well, so the script might
> have to be adopted. I am looking into that.
>
> Would this work ?
>
> bugzilla_pipe:
> debug_print = "T: bugzilla_pipe for $local_part@$domain"
> driver = pipe
> path = "/bin:/usr/bin:/usr/local/bin"
> command = "/usr/share/bugzilla/contrib/bug_email.pl"
You would probably want to change to a different user during the
delivery, and maybe you need to take care of changing to the right
directory before invoking bug_email.pl
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don''t trust Computers. They | Mailadresse
im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Bitte beachten Sie, da? dem [m.E. grundgesetzwidrigen] Gesetz zur
Vorratsdatenspeicherung zufolge, seit dem 1. Januar 2008 jeglicher
elektronische Kontakt (E-Mail, Telefongespr?che, SMS, Internet-
Telefonie, Mobilfunk, Fax) mit mir oder anderen Nutzern verdachts-
unabh?ngig f?r den automatisierten geheimen Zugriff durch Strafver-
folgungs- u. Polizeivollzugsbeh?rden, die Bundesanstalt f?r Finanz-
dienstleistungsaufsicht, Zollkriminal- und Zollfahndungs?mter,die
Zollverwaltung zur Schwarzarbeitsbek?mpfung, Notrufabfragestellen,
Verfassungsschutzbeh?rden, den Milit?rischen Abschirmdienst, Bundes-
nachrichtendienst sowie 52 Staaten wie beispielsweise Aserbeidschan
oder die USA sechs Monate lang gespeichert wird, einschlie?lich der
Kommunikation mit Berufsgeheimnistr?gern wie ?rzten, Journalisten und
Anw?lten. Mehr Infos zur totalen Protokollierung Ihrer Kommunikations-
daten auf www.vorratsdatenspeicherung.de. (leicht ver?ndert ?bernommen
kopiert von www.lawblog.de)