Lines Matching refs:opt

39     my (%opt) = ();
44 \%opt,
229 if ($opt{'help'}) { &usage(); return 0; }
230 if ($opt{'v'}) { &version(); return 0; }
231 if ($opt{'debug'}) {
241 if (defined($opt{'stdout'}) && !ref($opt{'stdout'})) {
242 open(STDOUT, ">>$opt{'stdout'}")
243 || die qq/ERROR: Unable to create "$opt{'stdout'}": $!\n/;
244 if ($opt{'stderr'} eq $opt{'stdout'}) {
250 if (defined($opt{'stderr'}) && !ref($opt{'stderr'})) {
251 open(STDERR, ">>$opt{'stderr'}")
252 || die qq/ERROR: Unable to create "$opt{'stderr'}": $!\n/;
255 if (defined($opt{'stdin'})) {
256 if (ref($opt{'stdin'})) {
257 $MhaStdin = $opt{'stdin'};
259 open(STDIN, "<$opt{'stdin'}")
260 || die qq/ERROR: Unable to open "$opt{'stdin'}": $!\n/;
276 $NoArg = $opt{'noarg'};
277 $ReadDB = $opt{'readdb'};
279 $ADD = $opt{'add'};
280 $RMM = $opt{'rmm'};
281 $SCAN = $opt{'scan'};
282 $QUIET = $opt{'quiet'};
283 $EDITIDX = $opt{'editidx'};
284 $ANNOTATE = $opt{'annotate'};
285 $AFS = $opt{'afs'};
286 if ($opt{'genidx'}) {
293 if ($opt{'single'} && !$RMM && !$ANNOTATE) {
306 $DoArchive = 1 if $opt{'archive'};
307 $DoArchive = 0 if $opt{'noarchive'};
309 $Reconvert = $opt{'reconvert'} if defined($opt{'reconvert'});
311 my $dolock = !$NoArg && !$opt{'nolock'};
346 $Lang = $opt{'lang'} if defined($opt{'lang'});
373 @FMTFILE = @{$opt{'rcfile'}} if defined($opt{'rcfile'});
374 $LOCKTRIES = $opt{'locktries'}
375 if defined($opt{'locktries'})
376 && ($opt{'locktries'} > 0);
377 $LOCKDELAY = $opt{'lockdelay'}
378 if defined($opt{'lockdelay'})
379 && ($opt{'lockdelay'} > 0);
380 $FORCELOCK = $opt{'force'};
382 $LockMethod = &set_lock_mode($opt{'lockmethod'})
383 if defined($opt{'lockmethod'});
387 $OUTDIR = $opt{'outdir'} if $opt{'outdir'};
396 $DBFILE = $opt{'dbfile'} if $opt{'dbfile'};
520 $HtmlExt = $opt{'htmlext'} if defined($opt{'htmlext'});
523 if (defined($opt{'otherindex'})) {
526 foreach (@{$opt{'otherindex'}}) {
533 if (defined($opt{'perlinc'})) {
536 foreach (@{$opt{'perlinc'}}) {
553 $DBFILE = $opt{'dbfile'} if $opt{'dbfile'}; # Override db
559 $DOCURL = $opt{'docurl'} if $opt{'docurl'};
560 $FROM = $opt{'msgsep'} if $opt{'msgsep'};
561 $IDXPREFIX = $opt{'idxprefix'} if $opt{'idxprefix'};
562 $IDXSIZE = $opt{'idxsize'} if defined($opt{'idxsize'});
564 $OUTDIR = $opt{'outdir'} if $opt{'outdir'}; # Override db
565 $MAILTOURL = $opt{'mailtourl'} if $opt{'mailtourl'};
566 $NewsUrl = $opt{'newsurl'} if $opt{'newsurl'};
567 $MAXPGS = $opt{'maxpgs'} if defined($opt{'maxpgs'});
569 $MAXSIZE = $opt{'maxsize'} if defined($opt{'maxsize'});
571 $MHPATTERN = $opt{'mhpattern'} if $opt{'mhpattern'};
572 $TIDXPREFIX = $opt{'tidxprefix'} if $opt{'tidxprefix'};
573 $TITLE = $opt{'title'} if $opt{'title'};
574 $TLEVELS = $opt{'tlevels'} if $opt{'tlevels'};
575 $TTITLE = $opt{'ttitle'} if $opt{'ttitle'};
576 $MsgPrefix = $opt{'msgprefix'} if defined($opt{'msgprefix'});
577 $GzipExe = $opt{'gzipexe'} if $opt{'gzipexe'};
578 $VarExp = $opt{'varregex'}
579 if $opt{'varregex'}
580 && ($opt{'varregex'} =~ /\S/);
581 $TSLICELEVELS = $opt{'tslicelevels'} if $opt{'tslicelevels'};
582 $IconURLPrefix = $opt{'iconurlprefix'} if $opt{'iconurlprefix'};
585 $opt{'idxfname'}
590 $opt{'tidxfname'}
595 $ExpireDate = $opt{'expiredate'} if $opt{'expiredate'};
596 $ExpireTime = $opt{'expireage'} if $opt{'expireage'};
599 $GMTDateFmt = $opt{'gmtdatefmt'} if $opt{'gmtdatefmt'};
600 $LocalDateFmt = $opt{'localdatefmt'} if $opt{'localdatefmt'};
602 $AddressModify = $opt{'addressmodifycode'} if $opt{'addressmodifycode'};
603 $SubArtRxp = $opt{'subjectarticlerxp'} if $opt{'subjectarticlerxp'};
604 $SubReplyRxp = $opt{'subjectreplyrxp'} if $opt{'subjectreplyrxp'};
605 $SubStripCode = $opt{'subjectstripcode'} if $opt{'subjectstripcode'};
606 $MsgExcFilter = $opt{'msgexcfilter'} if defined($opt{'msgexcfilter'});
608 $NoSubjectTxt = $opt{'nosubjecttxt'} if $opt{'nosubjecttxt'};
610 $IdxPageNum = $opt{'pagenum'} if defined($opt{'pagenum'});
612 $AttachmentDir = $opt{'attachmentdir'} if defined($opt{'attachmentdir'});
613 $AttachmentUrl = $opt{'attachmenturl'} if defined($opt{'attachmenturl'});
616 $NoteDir = $opt{'notedir'} if $opt{'notedir'};
619 if (defined $opt{'notetext'}) {
620 $NoteText = join(" ", @{$opt{'notetext'}});
626 if (defined($opt{'definevar'})) {
628 foreach (@{$opt{'definevar'}}) {
634 $CONLEN = 1 if $opt{'conlen'};
635 $CONLEN = 0 if $opt{'noconlen'};
636 $MAIN = 1 if $opt{'main'};
637 $MAIN = 0 if $opt{'nomain'};
638 $MODTIME = 1 if $opt{'modtime'};
639 $MODTIME = 0 if $opt{'nomodtime'};
640 $MULTIIDX = 1 if $opt{'multipg'};
641 $MULTIIDX = 0 if $opt{'nomultipg'};
642 $NODOC = 0 if $opt{'doc'};
643 $NODOC = 1 if $opt{'nodoc'};
644 $NOMAILTO = 1 if $opt{'nomailto'};
645 $NONEWS = 0 if $opt{'news'};
646 $NONEWS = 1 if $opt{'nonews'};
647 $NOURL = 0 if $opt{'url'};
648 $NOURL = 1 if $opt{'nourl'};
649 $SLOW = 1 if $opt{'savemem'};
650 $THREAD = 1 if $opt{'thread'};
651 $THREAD = 0 if $opt{'nothread'};
652 $TREVERSE = 1 if $opt{'treverse'};
653 $TREVERSE = 0 if $opt{'notreverse'};
654 $DoFolRefs = 1 if $opt{'folrefs'};
655 $DoFolRefs = 0 if $opt{'nofolrefs'};
656 $GzipFiles = 1 if $opt{'gzipfiles'};
657 $GzipFiles = 0 if $opt{'nogzipfiles'};
658 $GzipLinks = 1 if $opt{'gziplinks'};
659 $GzipLinks = 0 if $opt{'nogziplinks'};
660 $NoMsgPgs = 0 if $opt{'msgpgs'};
661 $NoMsgPgs = 1 if $opt{'nomsgpgs'};
662 $SaveRsrcs = 1 if $opt{'saveresources'};
663 $SaveRsrcs = 0 if $opt{'nosaveresources'};
664 $SpamMode = 1 if $opt{'spammode'};
665 $SpamMode = 0 if $opt{'nospammode'};
666 $KeepOnRmm = 1 if $opt{'keeponrmm'};
667 $KeepOnRmm = 0 if $opt{'nokeeponrmm'};
669 $PrintXComments = 1 if $opt{'printxcomments'};
670 $PrintXComments = 0 if $opt{'noprintxcomments'};
672 $CheckNoArchive = 1 if $opt{'checknoarchive'};
673 $CheckNoArchive = 0 if $opt{'nochecknoarchive'};
674 $FastTempFiles = 1 if $opt{'fasttempfiles'};
675 $FastTempFiles = 0 if $opt{'nofasttempfiles'};
676 $FollowSymlinks = 1 if $opt{'followsymlinks'};
677 $FollowSymlinks = 0 if $opt{'nofollowsymlinks'};
678 $POSIXstrftime = 1 if $opt{'posixstrftime'};
679 $POSIXstrftime = 0 if $opt{'noposixstrftime'};
681 $AddrModifyBodies = 1 if $opt{'modifybodyaddresses'};
682 $AddrModifyBodies = 0 if $opt{'nomodifybodyaddresses'};
684 $DecodeHeads = 1 if $opt{'decodeheads'};
685 $DecodeHeads = 0 if $opt{'nodecodeheads'};
691 @DateFields = split(/[:;]/, $opt{'datefields'}) if $opt{'datefields'};
692 @FromFields = split(/[:;]/, $opt{'fromfields'}) if $opt{'fromfields'};
696 split(/[:;]/, $opt{'tslice'})
697 if $opt{'tslice'};
699 @Months = split(/:/, $opt{'months'}) if defined($opt{'months'});
700 @months = split(/:/, $opt{'monthsabr'}) if defined($opt{'monthsabr'});
701 @Weekdays = split(/:/, $opt{'weekdays'}) if defined($opt{'weekdays'});
702 @weekdays = split(/:/, $opt{'weekdaysabr'})
703 if defined($opt{'weekdaysabr'});
709 $UMASK = $opt{'umask'} if defined($opt{'umask'});
712 $FilePerms = $opt{'fileperms'} if defined($opt{'fileperms'});
714 $DbFilePerms = $opt{'dbfileperms'} if defined($opt{'dbfileperms'});
718 $AUTHSORT = 1 if $opt{'authsort'};
719 $AUTHSORT = 0 if $opt{'noauthsort'};
720 $SUBSORT = 1 if $opt{'subsort'};
721 $SUBSORT = 0 if $opt{'nosubsort'};
722 $NOSORT = 1 if $opt{'nosort'};
723 $NOSORT = 0 if $opt{'sort'};
724 $REVSORT = 1 if $opt{'reverse'};
725 $REVSORT = 0 if $opt{'noreverse'};
734 $TSUBSORT = 1 if $opt{'tsubsort'};
735 $TSUBSORT = 0 if $opt{'notsubsort'};
736 $TNOSORT = 1 if $opt{'notsort'};
737 $TNOSORT = 0 if $opt{'tsort'};
738 $TREVERSE = 1 if $opt{'treverse'};
739 $TREVERSE = 0 if $opt{'notreverse'};
743 $NoSubjectThreads = 1 if $opt{'nosubjectthreads'};
744 $NoSubjectThreads = 0 if $opt{'subjectthreads'};
847 $TIME = $opt{'time'};