See? I use the search feature to avoid making new posts on old topics!
Every day, once a day, when I post in my
kityLog, I would type in a boring email "there is a new entry in the kitylog entitled..." blah blah blah. I just wanted to click on one button and BOOM have the email sent. so here is what I changed:
CODE
my $name = 'New' . $blog->name . ' Update';
my $fill_len = $cols - length($name) - 2;
$fill_len++ if $fill_len % 2;
$name = ('There is a new entry in the ' . $blog->name . ' entitled ' . $entry->title . '.');
$body .= $name . "\n\n";
my @ts = offset_time_list(time, $blog);
my $ts = sprintf "%04d%02d%02d%02d%02d%02d",
$ts[5]+1900, $ts[4]+1, @ts[3,2,1,0];
my $date = format_ts('%B %e, %Y', $ts, $blog);
my $fill_left = ' ' x int(($cols - length($date)) / 2);
$body .= "$fill_left$date\n\n";
$body .= ('-' x $cols) . "\n\n";
(as you can see I removed those annoying parentheses and took out some extra spacing too.)
Thanks guys!
- Susan