removed bogus bugfix of mine
This commit is contained in:
parent
fe5bc93a52
commit
b3ebabb5fc
1 changed files with 1 additions and 6 deletions
|
|
@ -175,7 +175,6 @@ sub execute {
|
||||||
});
|
});
|
||||||
return $self->COMPLETE unless (defined $mail);
|
return $self->COMPLETE unless (defined $mail);
|
||||||
my $i18n = WebGUI::International->new($self->session, "Asset_Collaboration");
|
my $i18n = WebGUI::International->new($self->session, "Asset_Collaboration");
|
||||||
my $msgnum = 1;
|
|
||||||
while (my $message = $mail->getNextMessage) {
|
while (my $message = $mail->getNextMessage) {
|
||||||
next unless (scalar(@{$message->{parts}})); # no content, skip it
|
next unless (scalar(@{$message->{parts}})); # no content, skip it
|
||||||
my $from = $message->{from};
|
my $from = $message->{from};
|
||||||
|
|
@ -183,10 +182,7 @@ sub execute {
|
||||||
$from = $1 || $from;
|
$from = $1 || $from;
|
||||||
$from =~ /(\S+\@\S+)/;
|
$from =~ /(\S+\@\S+)/;
|
||||||
my $user = WebGUI::User->newByEmail($self->session, $from);
|
my $user = WebGUI::User->newByEmail($self->session, $from);
|
||||||
if (!$cs->get("requireSubscriptionForEmailPosting") && !(defined $user)) { #this one is for unregistered posters
|
unless (defined $user) {
|
||||||
$user = WebGUI::User->new($self->session, undef);
|
|
||||||
}
|
|
||||||
unless (defined $user ) {
|
|
||||||
my $send = WebGUI::Mail::Send->create($self->session, {
|
my $send = WebGUI::Mail::Send->create($self->session, {
|
||||||
to=>$message->{from},
|
to=>$message->{from},
|
||||||
inReplyTo=>$message->{messageId},
|
inReplyTo=>$message->{messageId},
|
||||||
|
|
@ -225,7 +221,6 @@ sub execute {
|
||||||
$send->send;
|
$send->send;
|
||||||
}
|
}
|
||||||
# just in case there are a lot of messages, we should release after a minutes worth of retrieving
|
# just in case there are a lot of messages, we should release after a minutes worth of retrieving
|
||||||
$msgnum ++;
|
|
||||||
last if (time() > $start + 60);
|
last if (time() > $start + 60);
|
||||||
}
|
}
|
||||||
$mail->disconnect;
|
$mail->disconnect;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue