Index: trunk/tools/wikibugs/wikibugs |
— | — | @@ -69,10 +69,13 @@ |
70 | 70 | } |
71 | 71 | |
72 | 72 | # Re-attempt to grab the "real name". |
73 | | - if ( m{^(.*) <\S+\@\S+> changed:$}m ) { |
| 73 | + if ( !$user && m{^(.*) <\S+\@\S+> changed:$}m ) { |
74 | 74 | $haschanges = 1; |
75 | 75 | $user = $1 if !$user; |
76 | | - } else { |
| 76 | + } |
| 77 | + |
| 78 | + # Fallback to email address username |
| 79 | + if( !$user ) { |
77 | 80 | # If "real name" isn't available and we didn't get a user from the |
78 | 81 | # comment header, just use the "X-Bugzilla-Who" header. |
79 | 82 | my @who = split '@', $mail->header( 'X-Bugzilla-Who' ); |