Gossamer Forum
Home : Gossamer Threads Inc. : Official Bug Fixes :

[GMail 2.2.4] - incoming.pl bounce bug

Quote Reply
[GMail 2.2.4] - incoming.pl bounce bug
There's a bug in incoming.pl for when you it configured to not attach the original email on a bounce (the default setup). The following patches fix this problem:

Code:
--- gmail/batch/incoming.pl 2004/10/28 01:06:24 1.96.2.2
+++ gmail/batch/incoming.pl 2004/11/04 02:15:35 1.96.2.3
@@ -872,8 +872,8 @@

# Don't bounce to if the email was from certain addresses
my $from = $h->get('Return-Path') || $h->get('Reply-To') || $h->get('From');
- if (my $error = dont_send($from, $mail)) {
- GMail->debug("Not bouncing: $error") if ($CFG->{debug});
+ if (my $error = dont_send($from, $h)) {
+ GMail->debug("Not bouncing: $error") if $CFG->{debug};
return 1;
}

@@ -962,7 +962,7 @@

# Detection of bounces & loops & mailing lists
my $from = $h->get('Return-Path') || $h->get('Reply-To') || $h->get('From');
- if (my $error = dont_send($from, $mail)) {
+ if (my $error = dont_send($from, $h)) {
GMail->debug("Not sending autoreply: $error") if $CFG->{debug};
return 1;
}
@@ -1136,7 +1136,7 @@
# ----------------------------------------------------------------------------
# Check whether or not we should send emails to this email address.
#
- my ($from, $mail) = @_;
+ my ($from, $h) = @_;

$from = lc $from;

@@ -1146,7 +1146,6 @@
}

# Don't reply to mailing lists
- my $h = $mail->top_part();
if ($h->get('List-ID') or $h->get('Mailing-List') or $h->get('X-Mailing-List') or
$h->get('X-ML-Name') or $h->get('List-Help') or $h->get('List-Unsubscribe') or
$h->get('List-Subscribe') or $h->get('List-Post') or $h->get('List-Owner') or

If you prefer not to change the file yourself, then redownload the Gossamer Mail 2.2.4 installer and 'upgrade' your installation.

Adrian

Last edited by:

brewt: Nov 3, 2004, 6:58 PM
Subject Author Views Date
Post [GMail 2.2.4] - incoming.pl bounce bug brewt 6086 Nov 3, 2004, 6:58 PM