RSS

trunk : 6059

lpsolit%gmail.com
2008-05-13 22:28:12
Revision ID: cvs-1:lpsolitgmail.com-20080514032812-q32syndfhe4t5lms
Bug 431704: Remove useless newlines in replies sent by email_in.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit

collapse all collapse all

added added

removed removed

287
    $var =~ s/\&gt;/>/g;
287
    $var =~ s/\&gt;/>/g;
288
    $var =~ s/\&quot;/\"/g;
288
    $var =~ s/\&quot;/\"/g;
289
    $var =~ s/&#64;/@/g;
289
    $var =~ s/&#64;/@/g;
 
 
290
    # Also remove undesired newlines and consecutive spaces.
 
 
291
    $var =~ s/[\n\s]+/ /gms;
290
    return $var;
292
    return $var;
291
}
293
}
292
 
294
 
312
       my $reply = reply(to => $input_email, top_post => 1, body => "$msg\n");
314
       my $reply = reply(to => $input_email, top_post => 1, body => "$msg\n");
313
       MessageToMTA($reply->as_string);
315
       MessageToMTA($reply->as_string);
314
    }
316
    }
315
    print STDERR $msg;
317
    print STDERR "$msg\n";
316
    # We exit with a successful value, because we don't want the MTA
318
    # We exit with a successful value, because we don't want the MTA
317
    # to *also* send a failure notice.
319
    # to *also* send a failure notice.
318
    exit;
320
    exit;

Loggerhead runs on Bazaar branches