* extfs/mailfs: Try using UnixDate() from Date::Manip if it's
available. Warning fix.
Этот коммит содержится в:
родитель
848835d43b
Коммит
184ae978c0
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-11 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* extfs/mailfs: Try using UnixDate() from Date::Manip if it's
|
||||||
|
available. Warning fix.
|
||||||
|
|
||||||
2002-12-11 Andrew V. Samoilov <sav@bcs.zp.ua>
|
2002-12-11 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
* extfs/patchfs: Use quotemeta() before giving filename to
|
* extfs/patchfs: Use quotemeta() before giving filename to
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
# MC extfs for (possibly compressed) Berkeley style mailbox files
|
# MC extfs for (possibly compressed) Berkeley style mailbox files
|
||||||
# Peter Daum <gator@cs.tu-berlin.de> (Jan 1998, mc-4.1.24)
|
# Peter Daum <gator@cs.tu-berlin.de> (Jan 1998, mc-4.1.24)
|
||||||
@ -8,7 +8,13 @@ $bzcat="bzip2 -dc"; # bunzip2 to stdout
|
|||||||
$file="file"; # "file" command
|
$file="file"; # "file" command
|
||||||
$TZ='GMT'; # default timezone (for Date module)
|
$TZ='GMT'; # default timezone (for Date module)
|
||||||
|
|
||||||
if (eval "require Date::Parse") { # fancy date parsing available?
|
if (eval "require Date::Manip") {
|
||||||
|
import Date::Manip;
|
||||||
|
$parse_date=
|
||||||
|
sub {
|
||||||
|
return UnixDate($_[0], "%l"); # "ls -l" format
|
||||||
|
}
|
||||||
|
} elsif (eval "require Date::Parse") {
|
||||||
import Date::Parse;
|
import Date::Parse;
|
||||||
$parse_date=
|
$parse_date=
|
||||||
sub {
|
sub {
|
||||||
@ -73,11 +79,11 @@ sub mailfs_list {
|
|||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
$_=<IN>;
|
$_=<IN>;
|
||||||
s/\r$//;
|
|
||||||
if (!defined($_)) { # EOF
|
if (!defined($_)) { # EOF
|
||||||
print_dir_line;
|
print_dir_line;
|
||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
s/\r$//;
|
||||||
if($blank && /^From /) { # Start of header
|
if($blank && /^From /) { # Start of header
|
||||||
print_dir_line unless (!$msg_nr);
|
print_dir_line unless (!$msg_nr);
|
||||||
$msg_nr++;
|
$msg_nr++;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user