aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-02-09 19:34:29 +0000
committerOlivier Blin <oblin@mandriva.com>2007-02-09 19:34:29 +0000
commit0d815cfbf95f586aa369c7554f0430cfd4251ba3 (patch)
treeecddacf283b2eefcbacd04cb6062cd2b98ae3fb9
parent2013758ad855b9a0689d8941544b92919dd13cd3 (diff)
downloadmga-youri-submit-0d815cfbf95f586aa369c7554f0430cfd4251ba3.tar
mga-youri-submit-0d815cfbf95f586aa369c7554f0430cfd4251ba3.tar.gz
mga-youri-submit-0d815cfbf95f586aa369c7554f0430cfd4251ba3.tar.bz2
mga-youri-submit-0d815cfbf95f586aa369c7554f0430cfd4251ba3.tar.xz
mga-youri-submit-0d815cfbf95f586aa369c7554f0430cfd4251ba3.zip
do not use packager adress as from, it may be invalid (non-free packages) or not subscribed to maintainers
-rw-r--r--lib/Youri/Submit/Reject/Mail.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Youri/Submit/Reject/Mail.pm b/lib/Youri/Submit/Reject/Mail.pm
index acd1f7a..c20a832 100644
--- a/lib/Youri/Submit/Reject/Mail.pm
+++ b/lib/Youri/Submit/Reject/Mail.pm
@@ -54,12 +54,8 @@ sub run {
my ($self, $package, $errors, $repository, $target, $define) = @_;
croak "Not a class method" unless ref $self;
- my $from = $package->get_packager();
my $section = $repository->_get_section($package, $target, $define);
- # force from adress if defined
- $from =~ s/<.*>/<$self->{_from}>/ if $self->{_from};
-
my $subject =
($self->{_prefix} ? '[' . $self->{_prefix} . '] ' : '' ) . ($section ? "$section " : '') .
$package->get_revision_name();
@@ -84,7 +80,7 @@ sub run {
Type => 'text/plain',
Charset => $self->{_charset},
Encoding => $self->{_encoding},
- From => $from,
+ From => $self->{_from},
To => $self->{_to},
Subject => $subject,
Data => $content,