summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-01-30 23:14:10 +0100
committermyk%mozilla.org <>2002-01-30 23:14:10 +0100
commit429456196dd7ce8ef7e0876b7e57cdc394a228ba (patch)
tree9822db1683ca3910e53f3a4b3e3d7501ae8f8b42 /processmail
parent9704bcdf20dfc01b491d4a7c76f469c9a6190685 (diff)
downloadbugzilla-429456196dd7ce8ef7e0876b7e57cdc394a228ba.tar.gz
bugzilla-429456196dd7ce8ef7e0876b7e57cdc394a228ba.tar.xz
Fix for bug 104521: Removes old attachment interface in favor of new attachment tracker.
Patch by Myk Melez <myk@mozilla.org>. r=bbaetz,kiko
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail6
1 files changed, 3 insertions, 3 deletions
diff --git a/processmail b/processmail
index f47d27e3e..844942728 100755
--- a/processmail
+++ b/processmail
@@ -160,7 +160,7 @@ sub ProcessOneBug {
$difftext .= FormatTriple("What ", "Removed", "Added");
$difftext .= ('-' x 76) . "\n";
}
- $what =~ s/^Attachment/Attachment #$attachid/ if (Param('useattachmenttracker') && $attachid);
+ $what =~ s/^Attachment/Attachment #$attachid/ if $attachid;
$difftext .= FormatTriple($what, $old, $new);
}
@@ -737,9 +737,9 @@ sub NewProcessOnePerson ($$$$$$$$$$$$) {
if ( $newcomments =~ /Created an attachment \(/ ) {
my $showattachurlbase =
- Param('urlbase') . "showattachment.cgi?attach_id=";
+ Param('urlbase') . "attachment.cgi?id=";
- $newcomments =~ s/(Created an attachment \(id=([0-9]+)\))/$1\n --> \(${showattachurlbase}$2\)/g;
+ $newcomments =~ s/(Created an attachment \(id=([0-9]+)\))/$1\n --> \(${showattachurlbase}$2&action=view\)/g;
}
$person .= Param('emailsuffix');