diff options
author | seth%cs.brandeis.edu <> | 2000-03-16 08:39:03 +0100 |
---|---|---|
committer | seth%cs.brandeis.edu <> | 2000-03-16 08:39:03 +0100 |
commit | fbdd05dd8a942926beb67c15a804b0bd949ad45f (patch) | |
tree | 95ba058208f0753a99b9f9f9fffb8c00841f0ae6 /contrib/bugzilla_email_append.pl | |
parent | 63c4dd9e1c068c1496b56ab0386bde61120663d8 (diff) | |
download | bugzilla-fbdd05dd8a942926beb67c15a804b0bd949ad45f.tar.gz bugzilla-fbdd05dd8a942926beb67c15a804b0bd949ad45f.tar.xz |
Added a bugzilla.procmailrc as a sample procmailrc file
bugzilla_email_append.pl calls processmail.pl after writing out the changes.
Diffstat (limited to 'contrib/bugzilla_email_append.pl')
-rwxr-xr-x | contrib/bugzilla_email_append.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/bugzilla_email_append.pl b/contrib/bugzilla_email_append.pl index 065e2aba2..b10d8e030 100755 --- a/contrib/bugzilla_email_append.pl +++ b/contrib/bugzilla_email_append.pl @@ -18,6 +18,7 @@ # Contributor : Seth M. Landsman <seth@dworkin.net> # 03/15/00 : Initial version by SML +# 03/15/00 : processmail gets called # Email subject must be of format : # .* Bug ### .* @@ -26,7 +27,6 @@ # TODO : # 1. better way to get the body text (I don't know what dump_entity() is # actually doing -# 2. response emails use diagnostics; use strict; @@ -115,6 +115,8 @@ my $Body = "Subject: " . $Subject . "\n" . $Comment; my $long_desc_query = "INSERT INTO longdescs SET bug_id=$found_id, who=$userid, bug_when=NOW(), thetext=" . SqlQuote($Body) . ";"; SendSQL($long_desc_query); +system("cd .. ; ./processmail $found_id '$SenderShort'"); + sub DealWithError { my ($reason) = @_; print $reason . "\n"; |