Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
fbdd05dd
Commit
fbdd05dd
authored
Mar 16, 2000
by
seth%cs.brandeis.edu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a bugzilla.procmailrc as a sample procmailrc file
bugzilla_email_append.pl calls processmail.pl after writing out the changes.
parent
63c4dd9e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
README.Mailif
contrib/README.Mailif
+3
-0
bugzilla.procmailrc
contrib/bugzilla.procmailrc
+30
-0
bugzilla_email_append.pl
contrib/bugzilla_email_append.pl
+3
-1
No files found.
contrib/README.Mailif
View file @
fbdd05dd
...
@@ -34,6 +34,9 @@ additional line to procmail :
...
@@ -34,6 +34,9 @@ additional line to procmail :
fixes many problems.
fixes many problems.
See bugzilla.procmailrc for a sample procmailrc that works for me (SML) and
also deals with bugzilla_email_append.pl
Customation:
Customation:
There are some values inside the script which need to be customized for your
There are some values inside the script which need to be customized for your
...
...
contrib/bugzilla.procmailrc
0 → 100644
View file @
fbdd05dd
:0 fhw
| formail -I "From " -a "From "
BUGZILLA_HOME=/home/bugzilla/WEB/bugzilla/contrib
:0
* ^Subject: .*\[Bug .*\]
RESULT=|(cd $BUGZILLA_HOME && ./bugzilla_email_append.pl)
# Feed mail to stdin of bug_email.pl
:0 Ec
#* !^Subject: .*[Bug .*]
RESULT=|(cd $BUGZILLA_HOME && ./bug_email.pl )
# write result to a logfile
:0 c
|echo `date '+%d.%m.%y %H:%M: '` $RESULT >> $HOME/bug_email.log
:0 c
|echo "----------------------------------" >> $HOME/bug_email.log
:0 c
$HOME/bug_email.log
# Move mail to the inbox
:0
$HOME/Mail/INBOX
contrib/bugzilla_email_append.pl
View file @
fbdd05dd
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
# Contributor : Seth M. Landsman <seth@dworkin.net>
# Contributor : Seth M. Landsman <seth@dworkin.net>
# 03/15/00 : Initial version by SML
# 03/15/00 : Initial version by SML
# 03/15/00 : processmail gets called
# Email subject must be of format :
# Email subject must be of format :
# .* Bug ### .*
# .* Bug ### .*
...
@@ -26,7 +27,6 @@
...
@@ -26,7 +27,6 @@
# TODO :
# TODO :
# 1. better way to get the body text (I don't know what dump_entity() is
# 1. better way to get the body text (I don't know what dump_entity() is
# actually doing
# actually doing
# 2. response emails
use
diagnostics
;
use
diagnostics
;
use
strict
;
use
strict
;
...
@@ -115,6 +115,8 @@ my $Body = "Subject: " . $Subject . "\n" . $Comment;
...
@@ -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
)
.
";"
;
my
$long_desc_query
=
"INSERT INTO longdescs SET bug_id=$found_id, who=$userid, bug_when=NOW(), thetext="
.
SqlQuote
(
$Body
)
.
";"
;
SendSQL
(
$long_desc_query
);
SendSQL
(
$long_desc_query
);
system
(
"cd .. ; ./processmail $found_id '$SenderShort'"
);
sub
DealWithError
{
sub
DealWithError
{
my
(
$reason
)
=
@_
;
my
(
$reason
)
=
@_
;
print
$reason
.
"\n"
;
print
$reason
.
"\n"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment