Changeset 1793
- Timestamp:
- 10/24/06 12:43:32
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Publish/Maildir.pm
r1790 r1793 75 75 my $from = $cfg->{mailfrom} || 'plagger@localhost'; 76 76 my $id = md5_hex($entry->id_safe); 77 my $ now =Plagger::Date->now(timezone => $context->conf->{timezone});77 my $date = $entry->date || Plagger::Date->now(timezone => $context->conf->{timezone}); 78 78 my @enclosure_cb; 79 79 … … 82 82 } 83 83 $msg = MIME::Lite->new( 84 Date => $ now->format('Mail'),84 Date => $date->format('Mail'), 85 85 From => encode('MIME-Header', qq("$feed_title" <$from>)), 86 86 To => $cfg->{mailto}, … … 142 142 143 143 for my $enclosure (grep $_->local_path, $entry->enclosures) { 144 if (!-e $enclosure->local_path) { 145 Plagger->context->log(warning => $enclosure->local_path . " doesn't exist. Skip"); 146 next; 147 } 148 144 149 my %param = ( 145 150 Type => $enclosure->type,
