Codebase list im / 9afd997
Imported Upstream version 147 Tatsuya Kinoshita 11 years ago
55 changed file(s) with 768 addition(s) and 377 deletion(s). Raw diff Collapse all Expand all
0 147 (2004/07/04)
1
2 * imsetup.in, cnf.im/SiteConfig.in, dot.im/Config: Add `MsgIdUser'.
3 * imput.in: New option `--msgiduser'.
4 * dot.im/get.sbr.refile: New file. A sample file for auto-refiling.
5 * imsetup.in, cnf.im/SiteConfig.in, dot.im/Config: Add samples for using
6 `MboxFilter'.
7 * New config variable `MboxFilter'. (Thanks to Jacques GARRIGUE)
8 * im*.in: Accept `--version' option.
9 * imsetup.in, cnf.im/SiteConfig.in, dot.im/Config: Add %INBOX for IMAP.
10 * imget.in: Doc fix, describe how to set IMAP folder.
11
012 146 (2003/10/28)
113
214 * IM/TcpTransaction.pm, IM/Pop.pm, IM/Nntp.pm, IM/Imap.pm: Don't use $! as
0 Differences between IM147 and IM146
1
2 * New config variable `MboxFilter'. e.g. `MboxFilter=bogofilter -p -M -I'
3 directs that the bogofilter command be invoked when retrieving mails
4 from mbox file (/var/mail/$USER).
5 * New imput option `--msgiduser'.
6 * im* commands accept `--version'.
7
08 Differences between IM146 and IM145
19
210 * Fix that TCP transaction fails with Perl 5.8.1.
22 Kazu Yamamoto
33 Tatsuya Kinoshita
44
5 Mar 22, 2003
5 Jul 4, 2004
66
77
88 <<<Copyright>>>
9898 October 2002) by this e-mail address.
9999
100100 For the latest news of IM, please see "IM (Internet Message) Official
101 Site" (http://tats.iris.ne.jp/im/).
101 Site" (http://tats.hauN.jp/im/).
102102
103103
104104 <<<Programmers>>>
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Address.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Alias.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Config.pm version 20031028(IM146)";
3636 context_file getchksbr_file getsbr_file scansbr_file scan_header_pick
3737 address addresses_regex
3838 msgdbfile msgdbtype
39 mbox_style
39 mbox_style mbox_filter
4040 nntpservers nntphistoryfile nntpauthuser set_nntpauthuser
4141 popaccount pophistoryfile imapaccount httpproxy noproxy
4242 usepwagent pwagentport pwagent_tmp_dir pwagent_tmp_path usepwfiles pwfiles
126126 'getsbr;s;;GetSbrFile' => 'Get hook subroutine script',
127127 'scansbr;s;;ScanSbrFile' => 'Scan hook subroutine script',
128128 'scanheaderpick;s;;ScanHeaderPick' => 'Scan headers to pick up',
129 'mboxstyle;s;;MBoxStyle' => 'Style of local MBox format',
129 'mboxstyle;s;;MBoxStyle' => 'Style of local mailbox format',
130 'mboxfilter;s;;MboxFilter' => 'Filter for mbox file',
130131 'nntpservers;s;;NNTPservers' => 'List of NNTP servers',
131132 'nntphistory;s;;NNTPhistory' => 'Status file of NNTP access',
132133 'nntpauthuser;s;;NNTPauthuser' => 'User name for NNTP authentication',
870871
871872 sub mbox_style() {
872873 return $MBoxStyle;
874 }
875
876 sub mbox_filter() {
877 return $MboxFilter;
873878 }
874879
875880 sub nntpservers() {
11491154 context_file getchksbr_file getsbr_file scansbr_file scan_header_pick
11501155 address addresses_regex
11511156 msgdbfile msgdbtype
1152 mbox_style
1157 mbox_style mbox_filter
11531158 nntpservers nntphistoryfile nntpauthuser set_nntpauthuser
11541159 popaccount pophistoryfile imapaccount httpproxy noproxy
11551160 usepwagent pwagentport pwagent_tmp_dir pwagent_tmp_path usepwfiles pwfiles
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::EncDec.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Jul 7, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::File.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Folder.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 30, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::GetPass.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Nov 03, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Grep.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Jul 6, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::History.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Http.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Imap.pm version 20031028(IM146)";
156156 my($seq) = $ImapSeq++;
157157 my($resp, @field);
158158 if ($select) {
159 im_notice("select mbox $mbox and getting number of message.\n");
159 im_notice("select mailbox $mbox and getting number of message.\n");
160160 $resp = &send_command($HANDLE, "im$seq SELECT $mbox", '');
161161 } else {
162 im_notice("examine mbox $mbox and getting number of message.\n");
162 im_notice("examine mailbox $mbox and getting number of message.\n");
163163 $resp = &send_command($HANDLE, "im$seq EXAMINE $mbox", '');
164164 }
165165 my $msgs = -1;
583583 }
584584 }
585585
586 # IMAP folder (--src=imap[%folder][//auth][:user][@server[/port]])
586 # IMAP folder (--src=imap[/auth|%folder[//auth]][:user][@server[/port]])
587587 sub imap_spec($) {
588588 my $spec = shift;
589589
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Iso2022jp.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Japanese.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::LocalMbox.pm version 20031028(IM146)";
313313 my($format, $msgs, $rp, $length, $inheader, @Message);
314314 local(*MBOX);
315315
316 im_notice("opening MBOX ($mbox)\n");
316 im_notice("opening file ($mbox)\n");
317317 unless (im_open(\*MBOX, "<$mbox")) {
318318 # XXX not found or unreadable...
319319 return -1;
345345 my($format, $msgs, $length, $inheader, @Message);
346346 local(*MBOX);
347347 my($first_line, $FIRST_LINE);
348
349 im_info("Getting new messages from local mailbox into $dst...\n")
350 if ($how eq 'get');
351 im_warn("opening MBOX ($mbox)\n") if (&verbose);
352 unless (im_open(\*MBOX, "<$mbox")) {
353 # XXX not found or unreadable...
354 return -1;
348 my($mbox_filter);
349
350 if ($how eq 'get') {
351 im_info("Getting new messages from local mailbox into $dst...\n");
352 }
353 $mbox_filter = &mbox_filter();
354 if ($mbox_filter ne '') {
355 if ($mbox_filter =~ /(.+)/) {
356 if ($main::INSECURE) {
357 im_warn("Sorry, MboxFilter is ignored for SUID root script.\n");
358 $mbox_filter = '';
359 } else {
360 if ($> != 0) {
361 $mbox_filter = $1; # to pass through taint check
362 }
363 im_warn("opening MBOX ($mbox_filter $mbox)\n") if (&verbose);
364 unless (im_open(\*MBOX, "$mbox_filter $mbox |")) {
365 im_err("MboxFilter failed ($!).\n");
366 return -1;
367 }
368 }
369 } else {
370 $mbox_filter = '';
371 }
372 }
373 if ($mbox_filter eq '') {
374 im_warn("opening MBOX ($mbox)\n") if (&verbose);
375 unless (im_open(\*MBOX, "<$mbox")) {
376 # XXX not found or unreadable...
377 return -1;
378 }
355379 }
356380 chomp($first_line = <MBOX>);
357381 if ($first_line =~ /^From /) {
546570 if ($type =~ /file/) {
547571 # while (!sysopen(LOCK, "$base.lock", O_RDWR()|O_CREAT()|O_EXCL())) {
548572 # if ($retry >= 10) {
549 # im_warn("can't create $base.lock: $!\n");
573 # im_warn("can't create $base.lock ($!).\n");
550574 # return -1;
551575 # }
552576 # im_warn("mailbox is processed by another process, waiting...\n")
556580 # }
557581
558582 unless (im_open(\*LOCKFILE, ">$base.$$")) {
559 im_warn("can't create lock file $base.$$: $!\n");
583 im_warn("can't create lock file $base.$$ ($!).\n");
560584 im_warn("use 'flock' instead of 'file' if possible.\n");
561585 return -1;
562586 }
564588 close(LOCKFILE);
565589 while (!link("$base.$$", "$base.lock")) {
566590 if ($retry >= 10) {
567 im_warn("can't create $base.lock: $!\n");
591 im_warn("can't create $base.lock ($!).\n");
568592 unlink("$base.$$");
569593 return -1;
570594 }
578602 }
579603 if ($type =~ /flock/) {
580604 unless (im_open(\*LOCK_FH, "+<$base")) {
581 im_err "can't open $base :$!\n";
605 im_err "can't open $base ($!).\n";
582606 return -1;
583607 }
584608 if (! &win95p) {
585609 unless (flock (LOCK_FH, LOCK_EX|LOCK_NB)) {
586 im_warn "can't flock $base: $!\n";
610 im_warn "can't flock $base ($!).\n";
587611 return -1;
588612 }
589613 }
598622 im_debug("removing lock file with uid=$> gid=$)\n") if (&debug('local'));
599623 if ($locked_by_file) {
600624 if (-f "$base.lock" && unlink("$base.lock") <= 0) {
601 im_warn("can't unlink lock file $base.lock: $!\n");
625 im_warn("can't unlink lock file $base.lock ($!).\n");
602626 $rcode = -1;
603627 }
604628 $locked_by_file = 0;
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Log.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::MD5.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Message.pm version 20031028(IM146)";
734734 if ($main::Message_id_PID) {
735735 $mid_rnd = "-".$$.$mid_rnd;
736736 }
737 my $mid_user;
738 if ($main::Message_id_UID) {
739 $mid_user = $<;
740 } else {
741 $mid_user = $main::Login;
742 }
743737 my($mid)
744 = "<$mid_time$mid_rnd.$mid_user\@$main::Message_id_domain_name>";
738 = "<$mid_time$mid_rnd.$main::Message_id_user_name\@$main::Message_id_domain_name>";
745739 $Mid_hist{$part} = $mid if ($part > 0);
746740 return $mid;
747741 }
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::MsgStore.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Nntp.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Pop.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 27, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Recipient.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Scan.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Smtp.pm version 20031028(IM146)";
55 ### Author: Masatoshi Tsuchiya <tsuchiya@pine.kuee.kyoto-u.ac.jp>
66 ### Internet Message Group <img@mew.org>
77 ### Created: Oct 05, 1999
8 ### Revised: Oct 28, 2003
8 ### Revised: Jul 4, 2004
99 ###
1010
1111 my $PM_VERSION = "IM::Ssh.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: May 7, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Stdio.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::TcpTransaction.pm version 20031028(IM146)";
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 my $PM_VERSION = "IM::Util.pm version 20031028(IM146)";
9898 #rpath=append # conversion of UNIX From into Return-Path:
9999 #PopHistory=pophist-{POPSERVERID} # to save last state (relative to ~/.im/)
100100 #NntpHistory=newshist # to save last state (relative to ~/.im/)
101 #MBoxStyle=qmail # if folder style mbox of qmail is used
102 #Imget.Src=local:${HOME}/Maildir # in case of qmail
101 #MboxFilter=bogofilter -p -M -I # filter for mbox file
102 #MboxFilter=spamoracle mark
103 #MBoxFilter=bsfilter --spam-cutoff 0.85 --pipe --insert-flag --mbox 2>/dev/null
104 #MBoxStyle=qmail # in case of qmail (maildir format)
105 #Imget.Src=local:${HOME}/Maildir
103106 UseCL=@im_usecl@ # Use value of Content-Length header
104107 NoSync=@im_nosync@ # Do not need fsync(2) on writing file
105108 #FsyncNumber=@im_fsync_no@ # if 0, system call number of fsync is guessed
112115 #Keep=7 # preserve read messages on server
113116 #ProtoKeep=UIDL # how to know which message is unread
114117 # (UIDL, LAST, STATUS, MSGID)
115 #IgnorePostPet=yes # leave messages for PostPet on mbox (POP only)
118 #IgnorePostPet=yes # leave messages for PostPet on POP server
116119
117 #Imget.Src=imap
120 #Imget.Src=imap%INBOX
118121 #ImapAccount=/AUTH@localhost # account info for IMAP access
119122 #ImapAccount=/AUTH:user@host # account info with user name
120123 #HttpProxy=proxy-server:8080 # proxy server for HTTP access
145148 #FccDir=$MailDir # directory for FCC folders
146149 #QueueDir=queue # directory for to store messages to be sent
147150 #UseXDispatcher=yes # use X-Dispatcher field
151 #MsgIdUser=${USER} # user part for creation of Message-Id:
148152 #MsgIdDomain=${HOST} # if you want to use FQDN of dispatching host
149153 #ObeyMTAdomain=yes # do not append domainpart to addresses by imput
150154 #NoMsgIdForNews=yes # do not insert Message-Id: when posting as news
103103 #rpath=append # conversion of UNIX From into Return-Path:
104104 #PopHistory=pophist-{POPSERVERID} # to save last state (relative to ~/.im/)
105105 #NntpHistory=newshist # to save last state (relative to ~/.im/)
106 #MBoxStyle=qmail # if folder style mbox of qmail is used
107 #Imget.Src=local:${HOME}/Maildir # in case of qmail
106 #MboxFilter=bogofilter -p -M -I # filter for mbox file
107 #MboxFilter=spamoracle mark
108 #MBoxFilter=bsfilter --spam-cutoff 0.85 --pipe --insert-flag --mbox 2>/dev/null
109 #MBoxStyle=qmail # in case of qmail (maildir format)
110 #Imget.Src=local:${HOME}/Maildir
108111 #UseCL=no # Use value of Content-Length header
109112 #NoSync=no # Do not need fsync(2) on writing file
110113 #FsyncNumber=0 # if 0, system call number of fsync is guessed
117120 #Keep=7 # preserve read messages on server
118121 #ProtoKeep=UIDL # how to know which message is unread
119122 # (UIDL, LAST, STATUS, MSGID)
120 #IgnorePostPet=yes # leave messages for PostPet on mbox (POP only)
123 #IgnorePostPet=yes # leave messages for PostPet on POP server
121124
122 #Imget.Src=imap
125 #Imget.Src=imap%INBOX
123126 #ImapAccount=/AUTH@localhost # account info for IMAP access
124127 #ImapAccount=/AUTH:user@host # account info with user name
125128 #HttpProxy=proxy-server:8080 # proxy server for HTTP access
150153 #FccDir=$MailDir # directory for FCC folders
151154 #QueueDir=queue # directory for to store messages to be sent
152155 #UseXDispatcher=yes # use X-Dispatcher field
156 #MsgIdUser=${USER} # user part for creation of Message-Id:
153157 #MsgIdDomain=${HOST} # if you want to use FQDN of dispatching host
154158 #ObeyMTAdomain=yes # do not append domainpart to addresses by imput
155159 #NoMsgIdForNews=yes # do not insert Message-Id: when posting as news
3535 print SEQ "$_: $hash{$_}\n";
3636 }
3737
38 close (SEQ);
38 close(SEQ);
3939 }
4040 }
4141
0 # Auto refiling for imget -*-Perl-*-
1
2 use IM::File qw(im_rename);
3
4 sub get_sub ($$$) {
5 my($folder, $first, $last) = @_;
6 my($header, $flie, $new_folder, $new_file, $tmp_str, $dir, $msg);
7 my($touch_file, $touch_file_m, $touch_file_n);
8
9 return if ($folder ne &inbox_folder());
10
11 $dir = &expand_path($folder);
12 $touch_file = "$dir/.im_getsbr_touch";
13
14 if (-e $touch_file) {
15 $touch_file_m = -M $touch_file;
16 $touch_file_n = 0;
17 if (open(FH, $touch_file)) {
18 while (<FH>) {
19 chomp;
20 $touch_file_n = $_;
21 }
22 close(FH);
23 }
24 for ($msg = $last; $msg >= $first; $msg--) {
25 $file = &message_name($folder, $msg);
26 if (! -e $file) {
27 last;
28 }
29 if (-M $file > $touch_file_m) {
30 last;
31 }
32 if (-M $file == $touch_file_m && $msg <= $touch_file_n) {
33 last;
34 }
35 }
36 $first = $msg + 1;
37 }
38
39 for ($msg = $first; $msg <= $last; $msg++) {
40 $file = &message_name($folder, $msg);
41 if (open(MSG, "$file")) {
42 $tmp_str = $/;
43 $/ = "\n\n";
44 $header = <MSG>;
45 $/ = $tmp_str;
46
47 $new_folder = $folder;
48 if ($header =~ /(^|\n)X-Bogosity: Yes/) {
49 $new_folder = '+spam';
50 } elsif ($header =~ /(^|\n)X-Spam-Flag: Yes/) {
51 $new_folder = '+spam';
52 } elsif ($header =~ /(^|\n)X-Spam: yes/) {
53 $new_folder = '+spam';
54 # } elsif ($header =~ /(^|\n)X-ML-Name: mew-dist/) {
55 # $new_folder = '+mew-dist';
56 }
57 if ($new_folder ne $folder) {
58 $new_file = &message_name($new_folder, 'new') || die $!;
59 &im_notice("refiling $folder/$msg to $new_folder.\n");
60 &im_rename($file, $new_file) || die $!;
61 }
62 close(MSG);
63 }
64 }
65
66 if (open(FH, ">$touch_file")) {
67 print FH "$last\n";
68 close(FH);
69 }
70 }
71
72 1;
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imali version 20031028(IM146)";
16
1715 $Prog = 'imali';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2733 use strict;
2834 use vars qw($Prog $EXPLANATION @OptConfig
2935 $opt_host $opt_file $opt_addrbook
30 $opt_verbose $opt_debug $opt_help);
36 $opt_verbose $opt_debug $opt_help $opt_version);
3137
3238 ##
3339 ## Environments
4046 ";
4147
4248 @OptConfig = (
43 'host,H;b;;' => "Lookup hosts alias file.",
44 'file;s;;' => "Set aliases file.",
45 'addrbook;s;;' => "Set Addrbook file.",
46 'verbose;b;;' => 'With verbose messages.',
47 'debug;d;;' => "With debug message.",
48 'help;b;;' => "Show this message.",
49 'host,H;b;;' => "Lookup hosts alias file",
50 'file;s;;' => "Set aliases file",
51 'addrbook;s;;' => "Set Addrbook file",
52 'verbose;b;;' => 'With verbose messages',
53 'debug;d;;' => "With debug message",
54 'help;b;;' => "Display this help and exit",
55 'version,V;b;;' => "Output version information and exit",
4956 );
5057
5158 ##
5562 init_opt(\@OptConfig);
5663 read_cfg();
5764 read_opt(\@ARGV); # help?
65 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
5866 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
59
6067 debug_option($opt_debug) if $opt_debug;
6168
6269 ##
147154
148155 Display help message and exit.
149156
157 =item I<--version>
158
159 Output version information and exit.
160
150161 =back
151162
152163 =head1 COPYRIGHT
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: May 5, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imcat version 20031028(IM146)";
16
1715 $Prog = 'imcat';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2733 use vars qw($Prog $EXPLANATION @EnvConfig @OptConfig
2834 @servers
2935 $opt_src $opt_join $opt_boundary
30 $opt_verbose $opt_debug $opt_help);
36 $opt_verbose $opt_debug $opt_help $opt_version);
3137
3238 ##
3339 ## Environments
4450 );
4551
4652 @OptConfig = (
47 'src;F;;' => "Folder.",
48 'join;b;;' => "join partial messages.",
49 'boundary;b;;' => "Print start boundary for Mew.",
53 'src;F;;' => "Folder",
54 'join;b;;' => "join partial messages",
55 'boundary;b;;' => "Print start boundary for Mew",
5056 'SSHServer,S;s;localhost;SSH_server'
51 => 'SSH port relay server.',
52 'verbose;b;;' => 'With verbose messages.',
53 'debug;d;;' => "With debug message.",
54 'help;b;;' => "Show this message.",
57 => 'SSH port relay server',
58 'verbose;b;;' => 'With verbose messages',
59 'debug;d;;' => "With debug message",
60 'help;b;;' => "Display this help and exit",
61 'version,V;b;;' => "Output version information and exit",
5562 );
5663
5764 ##
6269 read_env(\@EnvConfig);
6370 read_cfg();
6471 read_opt(\@ARGV); # help?
72 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
6573 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
66
6774 debug_option($opt_debug) if $opt_debug;
6875
6976 ##
408415
409416 Display help message and exit.
410417
418 =item I<--version>
419
420 Output version information and exit.
421
411422 =back
412423
413424 =head1 COPYRIGHT
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imcd version 20031028(IM146)";
16
1715 $Prog = 'imcd';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2632 use integer;
2733 use strict;
2834 use vars qw($Prog $EXPLANATION @OptConfig
29 $opt_src $opt_quiet $opt_verbose $opt_debug $opt_help);
35 $opt_src $opt_quiet $opt_verbose $opt_debug $opt_help $opt_version);
3036
3137 ##
3238 ## Environments
3945 ";
4046
4147 @OptConfig = (
42 'src;F;;' => "Set source folder.",
43 'quiet;b;;' => "Do not bark.",
44 'verbose;b;;' => 'With verbose messages.',
45 'debug;d;;' => "With debug message.",
46 'help;b;;' => "Show this message.",
48 'src;F;;' => "Set source folder",
49 'quiet;b;;' => "Do not bark",
50 'verbose;b;;' => 'With verbose messages',
51 'debug;d;;' => "With debug message",
52 'help;b;;' => "Display this help and exit",
53 'version,V;b;;' => "Output version information and exit",
4754 );
4855
4956 ##
5360 init_opt(\@OptConfig);
5461 read_cfg();
5562 read_opt(\@ARGV); # help?
63 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
5664 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
57
5865 debug_option($opt_debug) if $opt_debug;
5966
6067 ##
114121
115122 Display help message and exit.
116123
124 =item I<--version>
125
126 Output version information and exit.
127
117128 =back
118129
119130 =head1 FILES
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imclean version 20031028(IM146)";
16
1715 $Prog = 'imclean';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2733 use integer;
2834 use strict;
2935 use vars qw($Prog $EXPLANATION @OptConfig
30 $opt_src $opt_noharm $opt_quiet $opt_verbose $opt_debug $opt_help);
36 $opt_src $opt_noharm $opt_quiet $opt_verbose
37 $opt_debug $opt_help $opt_version);
3138
3239 ##
3340 ## Environments
4047 ";
4148
4249 @OptConfig = (
43 'src;F;;' => "Set a folder to be cleaned up.",
50 'src;F;;' => "Set a folder to be cleaned up",
4451 'SSHServer,S;s;localhost;SSH_server'
45 => 'SSH port relay server.',
46 'noharm;b;;' => "Do not delete files, show what will be performed.",
47 'quiet;b;;' => "Do not show any messages.",
48 'verbose;b;;' => 'With verbose messages.',
49 'debug;d;;' => "With debug message.",
50 'help;b;;' => "Show this message.",
52 => 'SSH port relay server',
53 'noharm;b;;' => "Do not delete files, show what will be performed",
54 'quiet;b;;' => "Do not show any messages",
55 'verbose;b;;' => 'With verbose messages',
56 'debug;d;;' => "With debug message",
57 'help;b;;' => "Display this help and exit",
58 'version,V;b;;' => "Output version information and exit",
5159 );
5260
5361 ##
5765 init_opt(\@OptConfig);
5866 read_cfg();
5967 read_opt(\@ARGV); # help?
68 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
6069 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
61
6270 debug_option($opt_debug) if $opt_debug;
6371
6472 ##
198206 =item I<-h, --help>
199207
200208 Display help message and exit.
209
210 =item I<--version>
211
212 Output version information and exit.
201213
202214 =back
203215
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Jan 14, 1996
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imget version 20031028(IM146)";
16
1715 $Prog = 'imget';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
3036 $INSECURE $SUIDROOT
3137 $opt_quiet $opt_noscan $opt_scaninboxonly $opt_form $opt_jissafe
3238 $opt_width $opt_lock $opt_count $opt_keep $opt_protokeep $opt_src
33 $opt_dst $opt_mode $opt_assoc $opt_verbose $opt_debug $opt_help
34 $opt_buffer);
39 $opt_dst $opt_mode $opt_assoc $opt_verbose $opt_buffer
40 $opt_debug $opt_help $opt_version);
3541
3642 ##
3743 ## Environments
5157
5258 @OptConfig = (
5359 'src;s;;' =>
54 "Message source: 'local[:path_of_mbox]'\n" .
60 "Message source: 'local[:path_of_mailbox]'\n" .
5561 "\t\t\t\t'pop[/APOP|/RPOP|/POP][:user][\@host]'\n" .
5662 "\t\t\t\t'imap[/AUTH|/LOGIN][:user][\@host]'\n" .
63 "\t\t\t\t'imap%folder[//AUTH|//LOGIN][:user][\@host]'\n" .
5764 "\t\t\t\t'nntp:group[\@host]' or\n" .
5865 "\t\t\t\t'stdin'" ,
5966 'dst;s;;' =>
60 'Message destination: "+folder" or "=locally.saved.news".',
61 'noscan;b;;' => 'No scan listings.',
62 'scaninboxonly,o;b;;'=> 'Do not show scanned-lines if InboxFolder != dst.',
67 'Message destination: "+folder" or "=locally.saved.news"',
68 'noscan;b;;' => 'No scan listings',
69 'scaninboxonly,o;b;;'=> 'Do not show scanned-lines if InboxFolder != dst',
6370 'form;s;;' => 'Scan format',
6471 'buffer;B;;' => 'Make output data buffered',
6572 'jissafe;b;;' => 'Safe manner for JIS',
66 'width;i;;' => 'Width of result for scan listings.',
73 'width;i;;' => 'Width of result for scan listings',
6774 # 'thread;b;;' => 'Make threads',
6875 # 'indent;i;;' => "Width of thread indent",
6976 'lock;s;flock;' => 'Local mailbox locking style. (none,flock,file)',
7077 'rpath;s;append;' => "Conversion of UNIX From line into Return-Path:\n" .
7178 "\t\t(append, ignore, replace)",
72 'keep;i;0;' => "Preserve messages.\n" .
79 'keep;i;0;' => "Preserve messages\n" .
7380 "\t\t(POP: in days; 0=delete immediately, -1=preserve forever)\n" .
7481 "\t\t(otherwise: 0=delete immediately, non0=preserve forever)",
75 'protokeep;s;UIDL;'=> "Protocol type to use for keeping messages on POP.\n".
82 'protokeep;s;UIDL;'=> "Protocol type to use for keeping messages on POP\n".
7683 "\t\t(UIDL, LAST, STATUS, MSGID)\n" .
77 "\t\tTimed out deletion is not supported with LAST.",
84 "\t\tTimed out deletion is not supported with LAST",
7885 'usecl;b;;Obey_CL' => "Use value of Content-Length header for delimitation".
79 ".\n\t\t(effective only if source of messages is local)." ,
86 "\n\t\t(effective only if source of messages is local)" ,
8087 'count;i;;' => 'Number of messages to be gotten in a process (NNTP)',
81 'mode;s;get;' => 'Processing mode: "get", "from" or "check".',
88 'mode;s;get;' => 'Processing mode: "get", "from" or "check"',
8289 'assoc;s;;' => "Association list: dst1=src1;dst2=src2;...\n" .
83 "\t\tThis overrides --dst and --src options.",
90 "\t\tThis overrides --dst and --src options",
8491 'mimedecodequoted,x;b;;' => 'Decode broken mime-encoded strings',
8592 'SSHServer,S;s;localhost;SSH_server'
86 => 'SSH port relay server.',
87 'quiet;b;;' => 'Suppress informational messages.',
88 'verbose;b;;' => 'With verbose messages.',
89 'debug;d;;' => "With debug message.",
90 'help;b;;' => 'Display this help message.',
93 => 'SSH port relay server',
94 'quiet;b;;' => 'Suppress informational messages',
95 'verbose;b;;' => 'With verbose messages',
96 'debug;d;;' => "With debug message",
97 'help;b;;' => "Display this help and exit",
98 'version,V;b;;' => "Output version information and exit",
9199 );
92100
93101 ##
129137 my $cnf_dst = $opt_dst; $opt_dst = '';
130138 my $cnf_assoc = $opt_assoc; $opt_assoc = '';
131139 read_opt(\@ARGV); # help?
140 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
132141 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
133
134142 debug_option($opt_debug) if $opt_debug;
135143
136144 ##
256264
257265 =item I<-s, --src=STRING>
258266
259 Message source: 'local[:path_of_mbox]',
267 Message source: 'local[:path_of_mailbox]',
260268 'pop[/APOP|/RPOP|/POP][:user][@host]',
261 'imap[/AUTH|/LOGIN][:user][@host]',
269 'imap[[/AUTH|/LOGIN]|%folder[//AUTH|//LOGIN]][:user][@host]',
262270 'nntp:group[@host]', or
263271 'stdin'.
264272
356364 =item I<-h, --help>
357365
358366 Display help message and exit.
367
368 =item I<--version>
369
370 Output version information and exit.
359371
360372 =back
361373
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imgrep version 20031028(IM146)";
16
1715 $Prog = 'imgrep';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2935 use vars qw($Prog $EXPLANATION @OptConfig
3036 $opt_format @opt_src $opt_casefold $opt_expression
3137 $opt_delimiter $opt_dupchecktarget $opt_verbose $opt_debug
32 $opt_quiet $opt_help);
38 $opt_quiet $opt_help $opt_version);
3339
3440 ##
3541 ## Environments
6066 "\n\t\t(default: \"number\" for single target folder".
6167 "\n\t\t \"path\" for multiple target folders)",
6268 'casefold;b;on;' => 'Case sensitivity'.
63 "\n\t\t(This option affects both fieldname and pattern.)",
69 "\n\t\t(This option affects both fieldname and pattern)",
6470 'expression;s;;' => 'Search expression:'.
6571 "\n\n\t\tUsable keyword".
6672 "\n\t\t\t& && logical AND".
7480 "\n\t\t\tall Entire message",
7581 'delimiter;s;\n\n|\n----\n;' => 'Mail header delimiter',
7682 'dupchecktarget,D;s;none;' => 'Duplicate Check Target',
77 'quiet;b;;' => 'Suppress informational messages.',
78 'verbose;b;;' => 'With diagnostic messages.',
79 'debug;d;;' => 'With debug messages.',
80 'help;b;;' => 'Show this messages.',
83 'quiet;b;;' => 'Suppress informational messages',
84 'verbose;b;;' => 'With diagnostic messages',
85 'debug;d;;' => 'With debug messages',
86 'help;b;;' => "Display this help and exit",
87 'version,V;b;;' => "Output version information and exit",
8188 );
8289
8390 ##
8794 init_opt(\@OptConfig);
8895 read_cfg();
8996 read_opt(\@ARGV); # help?
97 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
9098 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
91
9299 debug_option($opt_debug) if $opt_debug;
93100
94101 ##
255262 =item I<-h, --help>
256263
257264 Display help message and exit.
265
266 =item I<--version>
267
268 Output version information and exit.
258269
259270 =back
260271
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Jul 6, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imhist version 20031028(IM146)";
16
1715 $Prog = 'imhist';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
3036 use vars qw($Prog $EXPLANATION @OptConfig
3137 @Hdr
3238 $opt_lookup $opt_remove $opt_msg $opt_dump $opt_add
33 $opt_subfolders $opt_verbose $opt_debug $opt_help);
39 $opt_subfolders $opt_verbose $opt_debug $opt_help $opt_version);
3440
3541 ##
3642 ## Environments
4349 ";
4450
4551 @OptConfig = (
46 'lookup;s;;' => 'Look up an entry for specified message-id.',
47 'remove;s;;' => 'Remove whole information on specified message-id.',
48 'msg;s;;' => 'Message to be deleted if multiple in database.',
49 'dump;b;;' => 'Dump database just for debugging.',
50 'add;f;;' => 'Add information of messages in a specified folder.',
51 'subfolders;b;;' => 'Descend sub folders recursively (option for --add).',
52 'verbose;b;;' => 'With verbose messages.',
53 'debug;d;;' => "With debug message.",
54 'help;b;;' => "Show this message.",
52 'lookup;s;;' => 'Look up an entry for specified message-id',
53 'remove;s;;' => 'Remove whole information on specified message-id',
54 'msg;s;;' => 'Message to be deleted if multiple in database',
55 'dump;b;;' => 'Dump database just for debugging',
56 'add;f;;' => 'Add information of messages in a specified folder',
57 'subfolders;b;;' => 'Descend sub folders recursively (option for --add)',
58 'verbose;b;;' => 'With verbose messages',
59 'debug;d;;' => "With debug message",
60 'help;b;;' => "Display this help and exit",
61 'version,V;b;;' => "Output version information and exit",
5562 );
5663
5764 ##
6168 init_opt(\@OptConfig);
6269 read_cfg();
6370 read_opt(\@ARGV); # help?
71 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
6472 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
65
6673 debug_option($opt_debug) if $opt_debug;
6774
6875 ##
250257 =item I<-h, --help>
251258
252259 Display help message and exit.
260
261 =item I<--version>
262
263 Output version information and exit.
253264
254265 =back
255266
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Jul 02, 1998
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imhsync version 20031028(IM146)";
16
1715 $Prog = 'imhsync';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2834 use integer;
2935 use strict;
3036 use vars qw($Prog $EXPLANATION @OptConfig @Hdr %Folder
31 $opt_db $opt_folder $opt_verbose $opt_debug $opt_help);
37 $opt_db $opt_folder $opt_verbose $opt_debug $opt_help $opt_version);
3238
3339 ##
3440 ## Environments
4147 ";
4248
4349 @OptConfig = (
44 'db;s;;' => 'reference DB.',
45 'folder;s;;' => 'folder to be refiled.',
46 'verbose;b;;' => 'With verbose messages.',
47 'debug;d;;' => "With debug message.",
48 'help;b;;' => "Show this message.",
50 'db;s;;' => 'reference DB',
51 'folder;s;;' => 'folder to be refiled',
52 'verbose;b;;' => 'With verbose messages',
53 'debug;d;;' => "With debug message",
54 'help;b;;' => "Display this help and exit",
55 'version,V;b;;' => "Output version information and exit",
4956 );
5057
5158 ##
5562 init_opt(\@OptConfig);
5663 read_cfg();
5764 read_opt(\@ARGV); # help?
65 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
5866 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
59
6067 debug_option($opt_debug) if $opt_debug;
6168
6269 ##
197204 }
198205
199206 unless ($db) {
200 im_err "history: can not access $dbfile ($!)\n";
207 im_err "history: can not access $dbfile ($!).\n";
201208 return -1;
202209 }
203210 if ($DBtype eq 'DB') {
282289 =item I<-h, --help>
283290
284291 Display help message and exit.
292
293 =item I<--version>
294
295 Output version information and exit.
285296
286297 =back
287298
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: May 5, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imjoin version 20031028(IM146)";
16
1715 $Prog = 'imjoin';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2632 use integer;
2733 use strict;
2834 use vars qw($Prog $EXPLANATION @EnvConfig @OptConfig $opt_noscan
29 $opt_src $opt_dst $opt_verbose $opt_debug $opt_help);
35 $opt_src $opt_dst $opt_verbose $opt_debug $opt_help $opt_version);
3036
3137 ##
3238 ## Environments
3945 ";
4046
4147 @OptConfig = (
42 'src;f;;' => "Source folder.",
43 'dst;s;+inbox;' => "Destination folder.",
44 'verbose;b;;' => 'With verbose messages.',
45 'debug;d;;' => "With debug message.",
46 'help;b;;' => "Show this message.",
47 );
48 'src;f;;' => "Source folder",
49 'dst;s;+inbox;' => "Destination folder",
50 'verbose;b;;' => 'With verbose messages',
51 'debug;d;;' => "With debug message",
52 'help;b;;' => "Display this help and exit",
53 'version,V;b;;' => "Output version information and exit",
54 );
4855
4956 ##
5057 ## Profile and option processing
5461 read_env(\@EnvConfig);
5562 read_cfg();
5663 read_opt(\@ARGV); # help?
64 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
5765 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
58
5966 debug_option($opt_debug) if $opt_debug;
6067
6168 ##
320327
321328 Display help message and exit.
322329
330 =item I<--version>
331
332 Output version information and exit.
333
323334 =back
324335
325336 =head1 COPYRIGHT
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Dec 31, 1995
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imls version 20031028(IM146)";
16
1715 $Prog = 'imls';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2935 @servers
3036 $opt_form $opt_jissafe $opt_width $opt_thread @opt_src
3137 $opt_indent $opt_grep $opt_namazu $opt_delimiter $opt_casefold
32 $opt_verbose $opt_debug $opt_quiet $opt_help $opt_buffer);
38 $opt_buffer $opt_verbose $opt_quiet
39 $opt_debug $opt_help $opt_version);
3340
3441 ##
3542 ## Environments
6471 'grep;s;;' => "Grep pattern for vscan",
6572 'namazu;b;;' => "Use namazu for vscan",
6673 'casefold;b;on;' => 'Case sensitivity'.
67 "\n\t\t(This option affects both fieldname and pattern.)",
74 "\n\t\t(This option affects both fieldname and pattern)",
6875 'delimiter;s;\n\n|\n----\n;' => 'Mail header delimiter',
6976 'dupchecktarget,D;s;;' => 'Duplicate Check Target',
7077 'mimedecodequoted,x;b;;' => 'Decode broken mime-encoded strings',
7178 'SSHServer,S;s;localhost;SSH_server'
72 => 'SSH port relay server.',
73 'quiet;b;;' => 'Suppress informational messages.',
74 'verbose;b;;' => 'With verbose messages.',
75 'debug;d;;' => "With debug message.",
76 'help;b;;' => 'Show this message',
79 => 'SSH port relay server',
80 'quiet;b;;' => 'Suppress informational messages',
81 'verbose;b;;' => 'With verbose messages',
82 'debug;d;;' => "With debug message",
83 'help;b;;' => "Display this help and exit",
84 'version,V;b;;' => "Output version information and exit",
7785 );
7886
7987 ##
8391 init_opt(\@OptConfig);
8492 read_cfg();
8593 read_opt(\@ARGV); # help?
94 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
8695 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
87
8896 debug_option($opt_debug) if $opt_debug;
8997
9098 ##
677685 =item I<-h, --help>
678686
679687 Display help message and exit.
688
689 =item I<--version>
690
691 Output version information and exit.
680692
681693 =back
682694
55 ### Author: Shuichi Kitaguchi <kit@Mew.org>
66 ### Internet Message Group <img@mew.org>
77 ### Created: Sep 23, 1999
8 ### Revised: Oct 28, 2003
8 ### Revised: Jul 4, 2004
99 ###
1010
1111 BEGIN {
1313 @im_src_siteperl@
1414 };
1515
16 my $VERSION = "immknmz version 20031028(IM146)";
17
1816 $Prog = 'immknmz';
17 my $VERSION_DATE = "20040704";
18 my $VERSION_NUMBER = "147";
19 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
20 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
21 Copyright (C) 1999 IM developing team
22 This is free software; see the source for copying conditions. There is NO
23 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 ";
1925
2026 use IM::Config;
2127 use IM::Util;
2228 use IM::Folder;
2329 use IO::File;
2430 use strict;
25 use vars qw($Prog $EXPLANATION @OptConfig $opt_help $opt_verbose
26 @opt_src $opt_gcnmz $opt_timestamp);
31 use vars qw($Prog $EXPLANATION @OptConfig
32 @opt_src $opt_gcnmz $opt_timestamp $opt_verbose
33 $opt_help $opt_version);
2734
2835 $EXPLANATION = "$VERSION
2936 make namazu index for mail folders
3239 ";
3340
3441 @OptConfig = (
35 'src;F@;;' => 'Set source folders. (Mail/.folders file is used by default)',
36 'gcnmz;b;;' => "Use gcnmz after mknmz (Garbage Collection for Namazu index).",
37 'timestamp;b;;' => "Use checking time stamp.",
38 'verbose;b;;' => "With verbose messages.",
39 'help;b;;' => "Show this message.",
40 );
42 'src;F@;;' => 'Set source folders (Mail/.folders file is used by default)',
43 'gcnmz;b;;' => "Use gcnmz after mknmz (Garbage Collection for Namazu index)",
44 'timestamp;b;;' => "Use checking time stamp",
45 'verbose;b;;' => "With verbose messages",
46 'help;b;;' => "Display this help and exit",
47 'version,V;b;;' => "Output version information and exit",
48 );
4149
4250 init_opt(\@OptConfig);
4351 read_cfg();
4452 read_opt(\@ARGV);
53 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
4554 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
4655
4756 my $lockdir = namazu_lock_path();
285294 =item I<-h, --help>
286295
287296 Display help message and exit.
297
298 =item I<--version>
299
300 Output version information and exit.
288301
289302 =back
290303
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "immv version 20031028(IM146)";
16
1715 $Prog = 'immv';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
3036 use vars qw($Prog $EXPLANATION @OptConfig
3137 @msgs
3238 $opt_link $opt_noharm $opt_src @opt_dst
33 $opt_verbose $opt_debug $opt_help);
39 $opt_verbose $opt_debug $opt_help $opt_version);
3440
3541 ##
3642 ## Environments
4551 ";
4652
4753 @OptConfig = (
48 'src;f;;' => "Set source folder.",
49 'dst;F@;;' => "Set destination folders.",
50 'link;b;;' => "Remain original msg in src folder.",
54 'src;f;;' => "Set source folder",
55 'dst;F@;;' => "Set destination folders",
56 'link;b;;' => "Remain original msg in src folder",
5157 'SSHServer,S;s;localhost;SSH_server'
52 => 'SSH port relay server.',
53 'noharm;b;;' => "Display the commands but do not actually execute them.",
54 'verbose;b;;' => 'With verbose messages.',
55 'debug;d;;' => "With debug message.",
56 'help;b;;' => "Show this message.",
58 => 'SSH port relay server',
59 'noharm;b;;' => "Display the commands but do not actually execute them",
60 'verbose;b;;' => 'With verbose messages',
61 'debug;d;;' => "With debug message",
62 'help;b;;' => "Display this help and exit",
63 'version,V;b;;' => "Output version information and exit",
5764 );
5865
5966 ##
6370 init_opt(\@OptConfig);
6471 read_cfg();
6572 read_opt(\@ARGV); # help?
73 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
6674 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
67
6875 debug_option($opt_debug) if $opt_debug;
6976
7077 ##
297304 =item I<-h, --help>
298305
299306 Display help message and exit.
307
308 =item I<--version>
309
310 Output version information and exit.
300311
301312 =back
302313
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "impack version 20031028(IM146)";
16
1715 $Prog = 'impack';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2733 use integer;
2834 use strict;
2935 use vars qw($Prog $EXPLANATION @OptConfig
30 $opt_src $opt_noharm $opt_verbose $opt_debug $opt_help);
36 $opt_src $opt_noharm $opt_verbose
37 $opt_debug $opt_help $opt_version);
3138
3239 ##
3340 ## Environments
4047 ";
4148
4249 @OptConfig =(
43 'src;F;;' => "Set source folder.",
44 'noharm;b;;' => "No packing. Show what will happen.",
45 'verbose;b;;' => 'With verbose messages.',
46 'debug;d;;' => "With debug message.",
47 'help;b;;' => "Show this message.",
50 'src;F;;' => "Set source folder",
51 'noharm;b;;' => "No packing. Show what will happen",
52 'verbose;b;;' => 'With verbose messages',
53 'debug;d;;' => "With debug message",
54 'help;b;;' => "Display this help and exit",
55 'version,V;b;;' => "Output version information and exit",
4856 );
4957
5058 ##
5462 init_opt(\@OptConfig);
5563 read_cfg();
5664 read_opt(\@ARGV); # help?
65 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
5766 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
58
5967 debug_option($opt_debug) if $opt_debug;
6068
6169 ##
138146
139147 Display help message and exit.
140148
149 =item I<--version>
150
151 Output version information and exit.
152
141153 =back
142154
143155 =head1 COPYRIGHT
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "impath version 20031028(IM146)";
16
1715 $Prog = 'impath';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2632 use integer;
2733 use strict;
2834 use vars qw($Prog $EXPLANATION @OptConfig
29 $opt_src $opt_list $opt_path $opt_verbose $opt_debug $opt_help);
35 $opt_src $opt_list $opt_path $opt_verbose
36 $opt_debug $opt_help $opt_version);
3037
3138 ##
3239 ## Environments
3946 ";
4047
4148 @OptConfig =(
42 'src;F;;' => "Set source folder.",
43 'list;b;;' => "Show list of folders.",
44 'path;b;;' => "Show important paths.",
45 'verbose;b;;' => 'With verbose messages.',
46 'debug;d;;' => "With debug message.",
47 'help;b;;' => "Show this message.",
49 'src;F;;' => "Set source folder",
50 'list;b;;' => "Show list of folders",
51 'path;b;;' => "Show important paths",
52 'verbose;b;;' => 'With verbose messages',
53 'debug;d;;' => "With debug message",
54 'help;b;;' => "Display this help and exit",
55 'version,V;b;;' => "Output version information and exit",
4856 );
4957
5058 ##
5462 init_opt(\@OptConfig);
5563 read_cfg();
5664 read_opt(\@ARGV); # help?
65 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
5766 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
58
5967 debug_option($opt_debug) if $opt_debug;
6068
6169 ##
214222 =item I<-h, --help>
215223
216224 Display help message and exit.
225
226 =item I<--version>
227
228 Output version information and exit.
217229
218230 =back
219231
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Aug 31, 1995
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 $VERSION = "imput version 20031028(IM146)";
16
1715 $Prog = 'imput';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 require 5.003;
2026
3945 use strict 'subs';
4046 use vars qw($DebugAll $QueueStatus $Subject $Ignore_Dot $Fcc_partial
4147 $News_severe_check $PreserveMessage $Queuing $Comment_Name
42 $Help $JustQueuing $Me_too $Dcc_Address $PGP_Sign);
48 $JustQueuing $Me_too $Dcc_Address $PGP_Sign
49 $opt_verbose $Help $opt_version);
4350
4451 $EXPLANATION = "$VERSION
4552 put mail/news message into networks
6673
6774 @OptConfig = (
6875 # table of commandline options
76 'version,V;b;;opt_version'
77 => "Output version information and exit",
6978 'Help;b;;Help'
70 => 'Show this message.',
79 => "Display this help and exit",
7180 'Debug;b;;DebugAll'
72 => 'Set all debug options.',
81 => 'Set all debug options',
7382 'DebugFlag;s;;DebugFlag'
74 => "Set specific debug options (separated with ',').",
83 => "Set specific debug options (separated with ',')",
7584 'Verbose;b;;opt_verbose'
76 => 'Set verbose mode.',
85 => 'Set verbose mode',
7786 ## late evaluated options
7887 'Require;s;;User_require'
79 => 'User defined perl script to be required.',
88 => 'User defined perl script to be required',
8089 'SMTPservers;s;localhost;Smtp_servers'
8190 => "List of SMTP servers (separated with ',')
8291 Each element should be server[/remote_port][%local_port]",
8392 'EmgSMTPsvrs;s;;Emg_Smtp_servers'
84 => 'List of SMTP servers for Emergency Use (i.e. error reporting).',
93 => 'List of SMTP servers for Emergency Use (i.e. error reporting)',
8594 'TryNextOnFatal;b;;Smtp_fatal_next'
86 => 'Try next SMTP server evenif permanent failure.',
95 => 'Try next SMTP server evenif permanent failure',
8796 'NNTPservers;s;localhost;Nntp_servers'
8897 => "List of NNTP servers (separated with ',').
8998 Each element should be server[/remote_port][%local_port]",
9099 'NNTPauthuser;s;;Nntp_authuser'
91 => 'User name for NNTP authentication.',
100 => 'User name for NNTP authentication',
92101 'ClientName;s;localhost;Client_name'
93 => 'Name as a SMTP client (used for SMTP HELO).',
102 => 'Name as a SMTP client (used for SMTP HELO)',
94103 'SSHServer;s;localhost;SSH_server'
95 => 'SSH port relay server.',
104 => 'SSH port relay server',
96105 'ObeyMTAdomain;b;;Obey_MTA_domain'
97 => 'Do not qualify local addresses with default domain.',
106 => 'Do not qualify local addresses with default domain',
98107 'FromDomain;s;;Default_from_domain_name'
99 => 'Default domain name for sender.',
108 => 'Default domain name for sender',
100109 'ToDomain;s;;Default_to_domain_name'
101 => 'Default domain name for recipients.',
110 => 'Default domain name for recipients',
111 'MsgIdUser;s;;Message_id_user_name'
112 => 'A user name for Message-Id generation',
102113 'MsgIdDomain;s;;Message_id_domain_name'
103 => 'Default domain name for Message-Id generation.',
114 => 'A domain name for Message-Id generation',
104115 'NoMsgIdForNews;s;;NoMsgIdForNews'
105 => 'Strip Message-Id when posting to news system.',
116 => 'Strip Message-Id when posting to news system',
106117 'User;s;;User_name'
107 => "Local part of the sender's address.",
118 => "Local part of the sender's address",
108119 'Address;s;;Mail_Address'
109120 => 'Address used in From: header; equivalent to User@FromDomain',
110121 'Name;s;;Sender_name'
111122 => 'Commentary name for sender',
112123 'NameInComment;b;;Comment_Name'
113 => 'Show commentary name in () on From: header.',
124 => 'Show commentary name in () on From: header',
114125 'Org;s;;Organization'
115 => 'Name of organization for news posting.',
126 => 'Name of organization for news posting',
116127 'Subj;s;;Subject'
117 => 'A string for subject field.',
128 => 'A string for subject field',
118129 'NScmpl;b;;Cmpl_with_gethostbyname'
119 => 'Use domain-part completion with nameserver.',
130 => 'Use domain-part completion with nameserver',
120131 'ShowRcpts;b;1;Show_Rcpts_Header'
121 => 'Allow to show recipients in header as To: if no To: in original.',
132 => 'Allow to show recipients in header as To: if no To: in original',
122133 'MeToo;b;;Me_too'
123 => 'Request DCC to me.',
134 => 'Request DCC to me',
124135 'Dcc;s;;Dcc_Address'
125 => 'Supplemental DCC address.',
136 => 'Supplemental DCC address',
126137 'Fcc;s;;Fcc_folder'
127 => 'Folder name to save FCC.',
138 => 'Folder name to save FCC',
128139 'Receipt;b;;Dsn_success_report'
129 => 'Need a report of successful delivery.',
140 => 'Need a report of successful delivery',
130141 'Group;s;;Newsgroups'
131 => 'Newsgroup names to be posted in.',
142 => 'Newsgroup names to be posted in',
132143 ## if ISO2022JP
133144 'JPconv;b;;Iso2022jp_code_conversion'
134 => 'Convert japanese character encoding from EUC/SJIS to JIS.',
145 => 'Convert japanese character encoding from EUC/SJIS to JIS',
135146 'DefCode;s;8BIT;Default_code'
136 => 'Default classification of japanese character code.' .
147 => 'Default classification of japanese character code' .
137148 "\n\t\t(EUC/SJIS/8BIT)",
138149 'JPheader;b;1;Iso2022jp_header_mime_conv'
139 => 'Encode japanese JIS characters to MIME style at header.',
150 => 'Encode japanese JIS characters to MIME style at header',
140151 'HdrQEncoding;b;;HdrQEncoding'
141 => 'Header encoding type: 0 is B; 1 is Q.',
152 => 'Header encoding type: 0 is B; 1 is Q',
142153 ## endif
143154 'NoHdrFolding;b;;NoFolding'
144 => 'Do not fold long header lines.',
155 => 'Do not fold long header lines',
145156 'SortHeader;s;;HeaderSeq'
146 => "Header sequence for sorting (labels separated with ',').",
157 => "Header sequence for sorting (labels separated with ',')",
147158 '8to7;b;;Conv_8to7'
148 => 'Convert 8bit body to 7bit by base64/quoted-printable encoding.',
159 => 'Convert 8bit body to 7bit by base64/quoted-printable encoding',
149160 '8BitLabel;s;unknown-8bit;Unknown8bit_label'
150 => 'Sub-type label for unknown 8bit body on Content-Type:.',
161 => 'Sub-type label for unknown 8bit body on Content-Type:',
151162 'Lines;i;;Lines_to_partial' # XXX
152 => 'Line numbers for splitting into partial messages.',
163 => 'Line numbers for splitting into partial messages',
153164 'Sleep;i;10;Partial_sleep'
154 => 'Sleep interval for dispatching each splitted messages.',
165 => 'Sleep interval for dispatching each splitted messages',
155166 'Log;s;putlog;Log_file' # XXX
156 => 'File name to write delivery log.',
167 => 'File name to write delivery log',
157168 'Syslog;b;;'
158 => 'Use SYSLOG feature instead of writing to a file directly.',
169 => 'Use SYSLOG feature instead of writing to a file directly',
159170 'Report;b;1;Error_report_by_mail'
160 => 'Report errors via mail.',
171 => 'Report errors via mail',
161172 'MsgId;b;1;Generate_message_id'
162 => 'Generate Message-Id header line.',
173 => 'Generate Message-Id header line',
163174 'PidMsgId;b;;Message_id_PID'
164 => 'Generate Message-Id with Process ID.',
175 => 'Generate Message-Id with Process ID',
165176 'UidMsgId;b;;Message_id_UID'
166 => 'Generate Message-Id with User ID instead of login name.',
177 => 'Generate Message-Id with User ID instead of login name',
167178 'Date;b;1;Generate_date'
168 => 'Generate Date header line.',
179 => 'Generate Date header line',
169180 'NewsGMTdate;b;;NewsGMTdate'
170 => 'Generate date field in GMT for posting news.',
181 => 'Generate date field in GMT for posting news',
171182 'UseLines;b;1;UseLines'
172 => 'Generate Lines header line.',
183 => 'Generate Lines header line',
173184 'AliasesFile;s;;Mail_aliases' # XXX
174 => 'List of files for mail address aliasing.',
185 => 'List of files for mail address aliasing',
175186 'Addrbook;s;;addrbooks'
176 => 'List of Addrbook files.',
187 => 'List of Addrbook files',
177188 'HostAliases;s;;Host_aliases' # XXX
178 => 'List of files for domain part completion.',
189 => 'List of files for domain part completion',
179190 'FccPartial;b;;Fcc_partial'
180 => 'Save FCC with partial format.',
191 => 'Save FCC with partial format',
181192 'Dead;s;dead.letter;Dead_letter' # XXX
182 => 'Path of file to save unsent message as a deadletter.',
193 => 'Path of file to save unsent message as a deadletter',
183194 'JustQueuing;b;;JustQueuing'
184 => 'Just store message into queue without attempt of delivery.',
195 => 'Just store message into queue without attempt of delivery',
185196 'Queuing;b;;Queuing'
186 => 'Store message into queue on delivery failure.',
197 => 'Store message into queue on delivery failure',
187198 'ProcessQueue;b;;ProcessQueue'
188 => 'Process queued messages.',
199 => 'Process queued messages',
189200 'QueueStatus;b;;QueueStatus'
190 => 'Show list of queued messages.',
201 => 'Show list of queued messages',
191202 'Folder;s;;Draft_folder'
192 => 'Path of draft folder directory.',
203 => 'Path of draft folder directory',
193204 'MIMEbcc;b;1;Mime_bcc'
194 => 'Use MIME (message/rfc822) style BCC.',
205 => 'Use MIME (message/rfc822) style BCC',
195206 'TrashMark;s;#;Trashmark'
196 => 'Prefix character for draft message file renaming.',
207 => 'Prefix character for draft message file renaming',
197208 'Preserve;b;;PreserveMessage'
198 => 'Preserve draft message as is even if dispatched successfully.',
209 => 'Preserve draft message as is even if dispatched successfully',
199210 'Message;s;;Draft_message'
200 => 'Path/name of draft message.',
211 => 'Path/name of draft message',
201212 'PGPsign;b;;PGP_Sign'
202 => 'Generate PGP signature for body-part.',
213 => 'Generate PGP signature for body-part',
203214 'MultipartAdd;s@;;Mulipart_messages'
204 => 'Path/name of message to be added as a part of multipart message.',
215 => 'Path/name of message to be added as a part of multipart message',
205216 'FilenameAdd;b;;Filename_Add'
206 => 'Add filename field at Content-Disposition header.',
217 => 'Add filename field at Content-Disposition header',
207218 'SMTP;b;;Smtp_input_mode'
208 => 'Perform SMTP style input mode.',
219 => 'Perform SMTP style input mode',
209220 'Annotate;b;;Anno_flag'
210 => 'Annotate on the parent message (MsgDB required).',
221 => 'Annotate on the parent message (MsgDB required)',
211222 'Dist;b;;Dist_flag'
212 => 'Redistribution mode (using Resent-*:).',
223 => 'Redistribution mode (using Resent-*:)',
213224 'DistMsg;s;;Dist_file'
214 => 'Path of message for redistribution.',
225 => 'Path of message for redistribution',
215226 'ObeyHeader;b;;Obey_header'
216 => 'Collect recipients from message header.',
227 => 'Collect recipients from message header',
217228 'IgnoreDot;b;;Ignore_Dot'
218 => 'Ignore DOT for message termination.',
229 => 'Ignore DOT for message termination',
219230 'NewsCheck;b;;News_severe_check'
220 => 'No news posting if To, Cc header found evenif Newsgroups: exists.',
231 => 'No news posting if To, Cc header found evenif Newsgroups: exists',
221232 'ESMTP;b;;Esmtp_flag'
222 => 'Enforce ESMTP (always begins with EHLO).',
233 => 'Enforce ESMTP (always begins with EHLO)',
223234 'NewsPost;b;1;News_flag'
224 => 'Enable NNTP.',
235 => 'Enable NNTP',
225236 'AddHeader;s@;;Add_headers'
226 => 'Header lines to be added.',
237 => 'Header lines to be added',
227238 );
228239
229240 @CmpConfig = (
292303 $error = 1 if (set_selector($selector) < 0);
293304 }
294305 read_opt(\@ARGV);
306 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
295307 help($EXPLANATION) && exit $EXIT_SUCCESS if $Help;
296308
297309 ##
880892 }
881893 }
882894
895 unless ($Message_id_user_name) {
896 if ($Message_id_UID) {
897 $Message_id_user_name = $<;
898 } else {
899 $Message_id_user_name = $Login;
900 }
901 }
883902 unless ($Message_id_domain_name) {
884903 if ($Default_from_domain_name) {
885904 $Message_id_domain_name = $Default_from_domain_name;
21202139
21212140 =over 5
21222141
2142 =item I<--version>
2143
2144 Output version information and exit.
2145
21232146 =item I<--help>
21242147
21252148 Display help message and exit.
21842207
21852208 Default domain name for recipients.
21862209
2210 =item I<--msgiduser=STRING>
2211
2212 A user name for Message-Id generation.
2213
21872214 =item I<--msgiddomain=STRING>
21882215
2189 Default domain name for Message-Id generation.
2216 A domain name for Message-Id generation.
21902217
21912218 =item I<--nomsgidfornews=STRING>
21922219
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Sep 13, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "impwagent version 20031028(IM146)";
16
1715 $Prog = 'impwagent';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
5864 exit $EXIT_SUCCESS;
5965 }
6066
67 if ($ARGV[0] =~ /--version/i) {
68 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS;
69 }
70
71 # display help
6172 if ($ARGV[0] !~ /start/i && @ARGV > 0) {
6273 print <<EOF;
6374 $VERSION
6576
6677 Usage:
6778 $Prog [start] start $Prog
68 $Prog stop/quit terminate $Prog
79 $Prog stop|quit terminate $Prog
6980 $Prog clear clear passwords held by $Prog
70 $Prog help show this message
81 $Prog help|--help Display this help and exit
82 $Prog --version Output version information and exit
7183
7284 This command holds passwords to reuse on later sessions for IM.
7385
227239
228240 =head1 SYNOPSIS
229241
230 B<impwagent> [start | stop | quit | clear | help]
242 B<impwagent> [OPTIONS]
231243
232244 =head1 DESCRIPTION
233245
259271
260272 Clear passwords held by impwagent.
261273
262 =item I<help>
263
264 Show help message.
274 =item I<help, --help>
275
276 Display help message and exit.
277
278 =item I<--version>
279
280 Output version information and exit.
265281
266282 =back
267283
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 23, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imrm version 20031028(IM146)";
16
1715 $Prog = 'imrm';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
3036 use vars qw($Prog $EXPLANATION @OptConfig
3137 @msgs
3238 $opt_noharm $opt_src @opt_dst
33 $opt_verbose $opt_debug $opt_help);
39 $opt_verbose $opt_debug $opt_help $opt_version);
3440
3541 ##
3642 ## Environments
4551 ";
4652
4753 @OptConfig = (
48 'src;F;;' => "Set source folder.",
49 'dst;f@;;' => "Set destination folder.",
54 'src;F;;' => "Set source folder",
55 'dst;f@;;' => "Set destination folder",
5056 'SSHServer,S;s;localhost;SSH_server'
51 => 'SSH port relay server.',
52 'noharm;b;;' => "Display the commands but do not actually execute them.",
53 'verbose;b;;' => 'With verbose messages.',
54 'debug;d;;' => "With debug message.",
55 'help;b;;' => "Show this message.",
57 => 'SSH port relay server',
58 'noharm;b;;' => "Display the commands but do not actually execute them",
59 'verbose;b;;' => 'With verbose messages',
60 'debug;d;;' => "With debug message",
61 'help;b;;' => "Display this help and exit",
62 'version,V;b;;' => "Output version information and exit",
5663 );
5764
5865 ##
6269 init_opt(\@OptConfig);
6370 read_cfg();
6471 read_opt(\@ARGV); # help?
72 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
6573 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
66
6774 debug_option($opt_debug) if $opt_debug;
6875
6976 ##
287294 =item I<-h, --help>
288295
289296 Display help message and exit.
297
298 =item I<--version>
299
300 Output version information and exit.
290301
291302 =back
292303
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: May 9, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imsetup version 20031028(IM146)";
16
1715 $Prog = 'imsetup';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2834 use integer;
2935 use strict;
3036 use vars qw($Prog $EXPLANATION @OptConfig
31 $opt_fromdomain $opt_noharm $opt_usecl $opt_nosync $opt_help);
37 $opt_fromdomain $opt_noharm $opt_usecl $opt_nosync
38 $opt_help $opt_version);
3239
3340 ##
3441 ## Environments
6168 ";
6269
6370 @OptConfig = (
64 'FromDomain;s;;' => 'Default domain name for mail address.',
65 'noharm;b;;' => "Do execute setup, show what will be performed.",
66 'help;b;;' => "Show this message.",
71 'FromDomain;s;;' => 'Default domain name for mail address',
72 'noharm;b;;' => "Do execute setup, show what will be performed",
73 'help;b;;' => "Display this help and exit",
74 'version,V;b;;' => "Output version information and exit",
6775 );
6876
6977 ##
7381 init_opt(\@OptConfig);
7482 read_cfg();
7583 read_opt(\@ARGV); # help?
84 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
7685 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
7786
7887 ##
426435 #rpath=append # conversion of UNIX From into Return-Path:
427436 #PopHistory=pophist-{POPSERVERID} # to save last state (relative to ~/.im/)
428437 #NntpHistory=newshist # to save last state (relative to ~/.im/)
429 #MBoxStyle=qmail # if folder style mbox of qmail is used
430 #Imget.Src=local:\${HOME}/Maildir # in case of qmail
438 #MboxFilter=bogofilter -p -M -I # filter for mbox file
439 #MboxFilter=spamoracle mark
440 #MBoxFilter=bsfilter --spam-cutoff 0.85 --pipe --insert-flag --mbox 2>/dev/null
441 #MBoxStyle=qmail # in case of qmail (maildir format)
442 #Imget.Src=local:\${HOME}/Maildir
431443 UseCL=$usecl # Use value of Content-Length header
432444 NoSync=$nosync # Do not need fsync(2) on writing file
433445 #FsyncNumber=0 # if 0, system call number of fsync is guessed
449461 #Keep=7 # preserve read messages on server
450462 #ProtoKeep=UIDL # how to know which message is unread
451463 # (UIDL, LAST, STATUS, MSGID)
452 #IgnorePostPet=yes # leave messages for PostPet on mbox (POP only)
464 #IgnorePostPet=yes # leave messages for PostPet on POP server
453465
454466 ---
455467 if ($src =~ /^imap/i) {
456468 print CONFIG <<"---";
457 Imget.Src=imap
469 Imget.Src=imap%INBOX
458470 ImapAccount=/$auth:$user\@$host
459471 keep=$keep
460472 ---
461473 }
462474 print CONFIG <<"---";
463 #Imget.Src=imap
475 #Imget.Src=imap%INBOX
464476 #ImapAccount=/AUTH\@localhost # account info for IMAP access
465477 #ImapAccount=/AUTH:user\@host # account info with user name
466478 #HttpProxy=proxy-server:8080 # proxy server for HTTP access
491503 #FccDir=\$MailDir # directory for FCC folders
492504 #QueueDir=queue # directory for to store messages to be sent
493505 #UseXDispatcher=yes # use X-Dispatcher field
506 #MsgIdUser=\${USER} # user part for creation of Message-Id:
494507 #MsgIdDomain=\${HOST} # if you want to use FQDN of dispatching host
495508 #ObeyMTAdomain=yes # do not append domainpart to addresses by imput
496509 #NoMsgIdForNews=yes # do not insert Message-Id: when posting as news
562575 =item I<-h, --help>
563576
564577 Display help message and exit.
578
579 =item I<--version>
580
581 Output version information and exit.
565582
566583 =back
567584
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Jul 2, 1997
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imsort version 20031028(IM146)";
16
1715 $Prog = 'imsort';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2834 use strict;
2935 use vars qw($Prog $EXPLANATION @OptConfig
3036 $opt_field $opt_mode $opt_noharm $opt_src
31 $opt_verbose $opt_debug $opt_help);
37 $opt_verbose $opt_debug $opt_help $opt_version);
3238
3339 ##
3440 ## Environments
4147 ";
4248
4349 @OptConfig = (
44 'src;F;;' => "Set source folder.",
45 'field;s;date;'=> "Sort by the specified field.",
46 'mode;s;date;' => "Set sort mode to date, num, text or ml.",
47 'noharm;b;;' => "Display the commands but do not actually execute them.",
48 'verbose;b;;' => 'With verbose messages.',
49 'debug;d;;' => "With debug message.",
50 'help;b;;' => "Show this message.",
50 'src;F;;' => "Set source folder",
51 'field;s;date;'=> "Sort by the specified field",
52 'mode;s;date;' => "Set sort mode to date, num, text or ml",
53 'noharm;b;;' => "Display the commands but do not actually execute them",
54 'verbose;b;;' => 'With verbose messages',
55 'debug;d;;' => "With debug message",
56 'help;b;;' => "Display this help and exit",
57 'version,V;b;;' => "Output version information and exit",
5158 );
5259
5360 ##
5764 init_opt(\@OptConfig);
5865 read_cfg();
5966 read_opt(\@ARGV); # help?
67 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
6068 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
61
6269 debug_option($opt_debug) if $opt_debug;
6370
6471 ##
255262 =item I<-h, --help>
256263
257264 Display help message and exit.
265
266 =item I<--version>
267
268 Output version information and exit.
258269
259270 =back
260271
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Dec 31, 1995
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imstore version 20031028(IM146)";
16
1715 $Prog = 'imstore';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 use IM::Config;
2026 use IM::MsgStore;
2228 use integer;
2329 use strict;
2430 use vars qw($Prog $EXPLANATION @OptConfig
25 $opt_dst $opt_verbose $opt_debug $opt_help $opt_noscan);
31 $opt_dst $opt_noscan
32 $opt_verbose $opt_debug $opt_help $opt_version);
2633
2734 ##
2835 ## Environments
3643
3744 @OptConfig = (
3845 'dst;s;+inbox;' => 'Set destination folder',
39 'verbose;b;;' => 'With verbose messages.',
40 'debug;d;;' => "With debug message.",
41 'help;b;;' => 'Show this message'
46 'verbose;b;;' => 'With verbose messages',
47 'debug;d;;' => "With debug message",
48 'help;b;;' => "Display this help and exit",
49 'version,V;b;;' => "Output version information and exit",
4250 );
4351
4452 ##
4856 init_opt(\@OptConfig);
4957 read_cfg();
5058 read_opt(\@ARGV); # help?
59 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
5160 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
52
5361 debug_option($opt_debug) if $opt_debug;
5462
5563 &process_stdin();
103111
104112 Display help message and exit.
105113
114 =item I<--version>
115
116 Output version information and exit.
117
106118 =back
107119
108120 =cut
44 ###
55 ### Author: Internet Message Group <img@mew.org>
66 ### Created: Apr 08, 1998
7 ### Revised: Oct 28, 2003
7 ### Revised: Jul 4, 2004
88 ###
99
1010 BEGIN {
1212 @im_src_siteperl@
1313 };
1414
15 my $VERSION = "imtar version 20031028(IM146)";
16
1715 $Prog = 'imtar';
16 my $VERSION_DATE = "20040704";
17 my $VERSION_NUMBER = "147";
18 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
19 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
20 Copyright (C) 1999 IM developing team
21 This is free software; see the source for copying conditions. There is NO
22 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ";
1824
1925 ##
2026 ## Require packages
2632 use integer;
2733 use strict;
2834 use vars qw($Prog $EXPLANATION @OptConfig
29 $opt_src $opt_dst $opt_noharm $opt_verbose $opt_debug $opt_help);
35 $opt_src $opt_dst $opt_noharm $opt_verbose
36 $opt_debug $opt_help $opt_version);
3037
3138 ##
3239 ## Environments
3946 ";
4047
4148 @OptConfig =(
42 'src;F;;' => "Set source folder.",
43 'dst;s;./msgbox;' => "Destination MMDF file.",
44 'noharm;b;;' => "No operation. Show what will happen.",
45 'verbose;b;;' => 'With verbose messages.',
46 'debug;d;;' => "With debug message.",
47 'help;b;;' => "Show this message.",
49 'src;F;;' => "Set source folder",
50 'dst;s;./msgbox;' => "Destination MMDF file",
51 'noharm;b;;' => "No operation. Show what will happen",
52 'verbose;b;;' => 'With verbose messages',
53 'debug;d;;' => "With debug message",
54 'help;b;;' => "Display this help and exit",
55 'version,V;b;;' => "Output version information and exit",
4856 );
4957
5058 ##
5462 init_opt(\@OptConfig);
5563 read_cfg();
5664 read_opt(\@ARGV); # help?
65 print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version;
5766 help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help;
58
5967 debug_option($opt_debug) if $opt_debug;
6068
6169 ##
163171 =item I<-h, --help>
164172
165173 Display help message and exit.
174
175 =item I<--version>
176
177 Output version information and exit.
166178
167179 =back
168180