diff --git a/data/other/parse_todo.pl b/data/other/parse_todo.pl index 7b90605f4..6dc11148a 100644 --- a/data/other/parse_todo.pl +++ b/data/other/parse_todo.pl @@ -17,9 +17,6 @@ my %todo_hash; my $title; my $item = {}; -my $item_count; -my $total_item_count = 0; - while(<>) { chomp; @@ -37,19 +34,25 @@ while(<>) { } } elsif (/^\* /) { if ($in_body ) { - $total_item_count++; $_ =~ s/^\* //; push(@{$todo_hash{$title}}, $item); $item = {}; $item->{'asignee'} = "Unknown"; $item->{'task'} = $_ ; if(/<(.*)>/) { - $item->{'asignee'} = $1; + my $email = $1; + if ($email =~ /(.*) AT /) { + $item->{'asignee'} = $1; + $item->{'asignee_email'} = $email; + } else { + $item->{'asignee'} = $email; + $item->{'asignee_email'} = 0; + } } } } else { if ($in_body) { - if($is_title) { + if ($is_title) { $title = $_; } else { $item->{'task'} = $item->{'task'} . $_ ; @@ -69,9 +72,18 @@ for $title ( keys %todo_hash ) { print "
Asignee | Task |
$asignee | $task |
$mailto | $task |