NAME¶
Debian::L10n::Utils - Utilities for the dl10n tools
parse_subject(SUBJECT)¶
parse_subject extract valuable informations from a subject line.
It gets a string containing the subject line (SUBJECT).
It returns an array containing the status, type, filename strings and bug number
if provided or 'undef' if no status is found.
parse_from(FROM)¶
parse_from extract the sender name from the 'From:' field.
The name is build from the phrase part of the field, or if none is found, from
the comment part where parentheses are removed, or if none is found, from the
address where all non-alphanumeric characters are turned into spaces.
It gets a string containing the 'From:' field (FROM).
It returns a string containing the name.
parse_date(DATE)¶
parse_date extract the date from a 'Date:' field.
It gets a string containing the 'Date:' field (DATE).
It returns a string containing the date in ISO format yyyy-mm-dd hh:mm:ss
AXhh:mm based on GMT
LICENSE¶
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details. #
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA.
COPYRIGHT (C)¶
2003,2004 Tim Dijkstra
2004 Nicolas Bertolissio
2004 Martin Quinson
2008 Nicolas FranA~Xois