[mew-dist 28393] Re: [要望] DB Search
Tatsuya Kinoshita
tats at example.com
2008年 5月 8日 (木) 21:55:27 JST
On February 27, 2008, [mew-dist 28132],
shirai (at meadowy.org) wrote:
> --decode-base64 使うと、
>
> ・日本語のメールなんだけど、UTF-8 + Base64(Q も可) なものも検索
> できる。
> ・添付された MS-Word などの中身も検索できる。
>
> ので結構便利ですよ。
[...]
> UNIX => cron(immknmz 改), +inbox で km
immknmzについて、添付のパッチでどうでしょうか。
ほかにも取り込めそうな「改」の内容がありましたらお知らせください。
--
木下達也
-------------- next part --------------
--- im-149-2/IM/Config.pm.in
+++ im-149/IM/Config.pm.in
@@ -43,7 +43,7 @@
usepwagent pwagentport pwagent_tmp_dir pwagent_tmp_path usepwfiles pwfiles
expand_path use_xdispatcher usetouchfile touchfile
namazuv2 namazu_dir namazu_path namazu_lock_dir namazu_lock_path
- mknmz_include_file mknmz_ignore_folders_regex
+ mknmz_options mknmz_include_file mknmz_ignore_folders_regex
pop_timeout imap_timeout nntp_timeout dns_timeout
connect_timeout command_timeout rcv_buf_siz
db_type file_attr ssh_path);
@@ -155,6 +155,7 @@
'namazuv2;b;;NamazuV2' => 'Use Namazu Version 2 (1.9 or late)',
'namazudir;s;;NamazuDir' => 'A directory to contain Namazu indexes',
'namazulockdir;s;;NamazuLockDir' => 'Lock directory for Namazu',
+ 'mknmzoptions;s;;MknmzOptions' => 'Options for mknmz',
'mknmzincludefile;s;;MknmzIncludeFile' => 'A file for mknmz -I',
'mknmzignorefoldersregex;s;;MknmzIgnoreFoldersRegex' => 'Folders regex ignored by immknmz',
);
@@ -998,6 +999,10 @@
return expand_home(namazu_dir());
}
+sub mknmz_options() {
+ return $MknmzOptions;
+}
+
sub mknmz_include_file() {
return &expand_path($MknmzIncludeFile);
}
@@ -1127,6 +1132,7 @@
NamazuV2=off # use Namazu version 2 (1.9.x or late)
NamazuDir=Namazu # relative to ~/
NamazuLockDir=nmzlock # lock directory (relative to ~/.im/)
+#MknmzOptions=--decode-base64 # options for mknmz
MknmzIncludeFile=~/Namazu/mknmz-inc.pl # mknmz -I <file>
MknmzIgnoreFoldersRegex=\+(attach|draft|trash|queue|postq|schedule)
__END__
@@ -1161,7 +1167,7 @@
usepwagent pwagentport pwagent_tmp_dir pwagent_tmp_path usepwfiles pwfiles
expand_path use_xdispatcher usetouchfile touchfile
namazuv2 namazu_dir namazu_path namazu_lock_dir namazu_lock_path
-mknmz_include_file mknmz_ignore_folders_regex
+mknmz_options mknmz_include_file mknmz_ignore_folders_regex
pop_timeout imap_timeout nntp_timeout dns_timeout
connect_timeout command_timeout rcv_buf_siz
db_type file_attr ssh_path
--- im-149-2/immknmz.in
+++ im-149/immknmz.in
@@ -76,6 +76,7 @@
}
my $mknmz_args = "-q";
$mknmz_args = "" if $opt_verbose;
+$mknmz_args = $mknmz_args . " " . mknmz_options();
my $tempdir;
my $tempfile;
Mew-dist メーリングリストの案内