Changeset 1994
- Timestamp:
- 12/08/07 14:25:33
- Files:
-
- trunk/plagger/lib/Plagger/Plugin/Publish/Gmail.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Publish/Gmail.pm
r1904 r1994 212 212 *MIME::Lite::send_by_smtp_tls = sub { 213 213 my($self, @args) = @_; 214 my $extract_addrs_ref = 215 defined &MIME::Lite::extract_addrs 216 ? \&MIME::Lite::extract_addrs 217 : \&MIME::Lite::extract_full_addrs; 214 218 215 219 ### We need the "From:" and "To:" headers to pass to the SMTP mailer: 216 220 my $hdr = $self->fields(); 217 my($from) = MIME::Lite::extract_addrs( $self->get('From') );221 my($from) = $extract_addrs_ref->( $self->get('From') ); 218 222 my $to = $self->get('To'); 219 223 … … 222 226 223 227 ### Get the destinations as a simple array of addresses: 224 my @to_all = MIME::Lite::extract_addrs($to);228 my @to_all = $extract_addrs_ref->($to); 225 229 if ($MIME::Lite::AUTO_CC) { 226 230 foreach my $field (qw(Cc Bcc)) { 227 231 my $value = $self->get($field); 228 push @to_all, MIME::Lite::extract_addrs($value) if defined($value);232 push @to_all, $extract_addrs_ref->($value) if defined($value); 229 233 } 230 234 }
