[Mew-dist 06166] Re: UseCL=yes for Solaris 2.x
Motonori Nakamura
motonori at example.com
1998年 8月 27日 (木) 00:05:18 JST
>>>>> On Wed, 26 Aug 1998 21:25:50 +0900, Kazu Yamamoto (山本和彦) <kazu at example.com> said:
> IM の方で要望なのですが、 Solaris 2.x で使う場合、必ず UseCL=yes に
> しておく必要があります。これを IM の configure か make install で、
> SiteConfig に追加するようにして戴けないでしょうか?
kazu> パッチ下さい。NoSync も同様?
とりあえず、こんなかんじでいかが? imsetup はさわってません。
ついでに、FromDomain も適当に設定するようにしてみました。
オリジナル im-99 へのパッチです。
diff -ur ../im-99-/cnf.im/SiteConfig.in ./cnf.im/SiteConfig.in
--- ../im-99-/cnf.im/SiteConfig.in Wed Aug 26 23:45:21 1998
+++ ./cnf.im/SiteConfig.in Wed Aug 26 23:51:34 1998
@@ -0,0 +1,104 @@
+################################################################
+###
+### Sample /usr/local/lib/im/SiteConfig
+###
+### Syntax::
+### key=value
+###
+### * "key=value" is equivalent to "--key=value" style command option.
+### * "key" must start at the beginning of the line.
+### * "=" must follow after "key" without white spaces.
+### * White spaces are allowed between "=" and "value".
+### * ":" can be used instead of "=".
+### * Characters after "#" are ignored.
+###
+### The following examples are all the same:
+### key=value
+### key= value
+### key:value
+### key: value
+###
+### $variable will be expanded.
+### '~' will be expanded.
+###
+
+##
+## Default global parameters
+##
+
+# directories (relative to ~/)
+#MailDir=Mail
+#NewsDir=News # for saved news
+
+# folders in $MailDir
+#InboxFolder=+inbox # default destination of imget
+#DraftFolder=+draft
+#TrashFolder=+trash # default destination of message removal in Mew
+
+# folder style in $NewsDir
+#PreserveDot=off
+
+# mode for creation
+#FolderMode=0700
+#MsgMode=0600
+
+# to keep state of IM commands (CurrentFolder, etc.)
+#ContextFile=Context # relative to ~/.im/
+
+##
+## Default settings
+##
+
+# mail address aliases
+#AliasesFile=Aliases # relative to ~/.im/
+# PetName: mail address aliases for displaying
+#PetnameFile=Petnames # relative to ~/.im/
+
+# Message-ID database
+#MsgDBFile=msgiddb # location (relative to ~/.im/)
+#MsgDBType=DB # type of database (DB, NDBM, SDBM)
+
+# to call user defined subroutines (relative to ~/.im/)
+#GetSbr=get.sbr # hooks for imget
+#ScanSbr=scan.sbr # hooks for imget/imls
+
+# folders
+#Src=$InboxFolder # default source of most commands
+#Imrm.Src=$TrashFolder # default source for message cleanups
+
+# imget/imls
+#Form=%5n %m%d %-14A %-18S %b # default format for scanning
+#Width=80 # default width for scanning
+#JisSafe=on # escape seq. of JIS char. should be managed
+#Indent=2 # indent step for threading
+
+# servers
+#Smtpservers=localhost # default server for SMTP
+#NntpServers=localhost # default server for NNTP
+
+# imget
+#Imget.Src=local # default source of imget (local mailbox)
+UseCL=@im_use_cl@ # Use value of Content-Length header
+#PopHistory=pophist # to save last state (relative to ~/.im/)
+#NntpHistory=newshist # to save last state (relative to ~/.im/)
+#MBoxStyle=qmail # if folder style mbox of qmail is used
+#Imget.Src=local:${HOME}/MailDir# in case of qmail
+
+#PopAccount=/APOP at example.com/110 # Account info for POP access
+#ImapAccount=/AUTH at example.com/143# Account info for IMAP access
+#HttpProxy=proxy-server:8080 # Proxy server for HTTP access
+#NoProxy=http://.*my.domain/ # URL regex not to use Proxy server
+#UsePwAgent=no # Use password agent
+#PwAgentPort=6543 # Port to connect pwagent with TCP/IP
+ # (Insecure for multi-user system!)
+ # 0 to use UNIX domain socket (more secure)
+
+# be careful on security if you wish to use PwFiles!
+#UsePwFiles=no # Use password files
+#PwFiles=password # Password files (relative to ~/.im/)
+
+# imput
+#FccDir=$MailDir # directory for FCC folders
+#MsgIdDomain=${HOST} # if you want to use FQDN of dispatching host
+FromDomain=@im_hostname@ # domain of your mail address
+ToDomain=@im_hostname@ # domain when domain part is omitted
diff -ur ../im-99-/configure.in ./configure.in
--- ../im-99-/configure.in Tue Aug 25 01:58:04 1998
+++ ./configure.in Wed Aug 26 23:54:19 1998
@@ -30,6 +30,8 @@
AC_SUBST(im_file_attr)
AC_SUBST(im_inet6_family)
AC_SUBST(im_inet6_pack_sockaddr_in6)
+AC_SUBST(im_use_cl)
+AC_SUBST(im_hostname)
IM_PATH_PERLV_PROGS(im_path_perl, perl perl5, PERL5_NOT_FOUND)
case "$im_path_perl" in
""|PERL5_NOT_FOUND)
@@ -41,6 +43,7 @@
AC_PATH_PROGS(im_path_cp, cp, missing_cp)
AC_PATH_PROGS(im_path_mkdir, mkdir, missing_mkdir)
AC_PATH_PROGS(im_path_rm, rm, missing_rm)
+AC_PATH_PROGS(path_uname, uname)
IM_DB_TYPE(im_db_type, $im_path_perl)
dnl Checks for libraries.
@@ -83,6 +86,24 @@
im_inet6_pack_sockaddr_in6="pack('CCnN', 1+1+2+4+16, \$family, \$port, 0) . \$he_addr"
fi
+if test "$path_uname"; then
+ AC_MSG_CHECKING([OS type])
+ os_system=`$path_uname -s`
+ os_revision=`$path_uname -r`
+ case "$os_system$os_revision" in
+ SunOS5*)
+ AC_MSG_RESULT([Seems to be a Solaris; Content-Length: should be checked])
+ im_use_cl=yes ;;
+ *)
+ AC_MSG_RESULT([Not a Solaris; Content-Length: can be ignored])
+ im_use_cl=no ;;
+ esac
+fi
+
+AC_MSG_CHECKING([domain for mail-address])
+im_hostname=`hostname`
+AC_MSG_RESULT([$im_hostname])
+
AC_OUTPUT(imali:imali.in imcat:imcat.in imcd:imcd.in imclean:imclean.in \
imget:imget.in imgrep:imgrep.in imhist:imhist.in \
imjoin:imjoin.in imls:imls.in immv:immv.in \
@@ -91,6 +112,7 @@
imrm:imrm.in imsetup:imsetup.in imsort:imsort.in \
imstore:imstore.in imtar:imtar.in\
Makefile:Makefile.in \
+ cnf.im/SiteConfig:cnf.im/SiteConfig.in \
IM/Address.pm:IM.in/Address.pm.in \
IM/Alias.pm:IM.in/Alias.pm.in \
IM/Config.pm:IM.in/Config.pm.in \
Mew-dist メーリングリストの案内