🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.mail
Article #470

Re: "generic-text" as a Content-type

#470
From: saitoh
Date: Tue, 04 Nov 1997 00:00
74 lines
3341 bytes
MIME$B$OBg7y$$$JBg:eBg3X$NsnF#$G$9!#(J

> > $B!Z<ALd#2![(Jmailx$B$,IU2C$9$k(JContent-Type$B%X%C%@$r@)8f$9$kJ}K!$O$"$k$G$7$g$&$+!)(J

> $B$$$j$(!w$=$K!<$G$9!#(J
> 
> $BEz$K$J$C$F$$$J$$$N$G$9$,!#(J
$BKM$N$[$&$O8e(J10$BG/$b$O;}$?$J$$(J($BCf4|E*$J(J)$BEz$G$9$,!"!"!"!#(J

> strings /usr/bin/mail $B$H$9$l$PH=$j$^$9$,!"(J Content-Type $B$r(J
> $BIU2C$9$k$N$O(J mail/rmail $B$G$9!#(J

Contents-type$B$rCN$i$J$$(JMUA($B$3$N$P$"$$$O(Jmailx)$B$N:n$C$?%a!<%k$K(J
$B>!<j$K(JContente-type$B$r$D$1$k$N$,4V0c$$$G!"2?$b$D$1$J$$$N$,@52r(J
$B$@$H;W$$$^$9!#(J

$B$H$j$"$($:$O!":#$N!VF|K\8lBP1~!W(JMUA$B$O!"!X(JContents-type$B$J$I$,(J
$B0l@ZL5$/$F!"%a!<%kK\J8$K(J ESC-$-B$B$,$"$l$P!"(JISO2022-JP$B$H$_$J$7$F(J
$B=hM}$7$F$/$l$k$O$:!Y$J$N$G!"$=$l$K4|BT$7$^$9!#(J
($B$H$$$&$o$1$G!"!X(J....$B!Y$,@.$jN)$?$J$/$J$kMM$K$J$k;~Be$K(J
$B$J$l$P!"0J2<$K=q$$$?BP:v$,DLMQ$7$J$/$J$j$^$9!#$,!"$=$N$3$m$K$O(J
OS$BE:IU$N(J MUA$B$b(J MIME$BBP1~$K$J$C$F$$$F$$$k$G$7$g$&$+$i!"!"!"!"(J)

$B6qBNE*$K$O!"(J
$B!&(J/etc/mail/mailx.rc$B$K(J
	set sendmail=/etc/mail/mysendmail
  $B$H=q$$$F$*$/(J($B$3$l$G!"(Jrmail$B$G$O$J$/(Jmysendmail$B$r;H$&MM$K$J$j$^$9(J)
$B!&(Jnkf$B$r(J/usr/local/bin$B$+$I$3$+$K%$%s%9%H!<%k$9$k(J($B$+!"(J /usr/sony/bin/jis
  $B$G$bB-$j$k$H;W$$$^$9(J)
$B!&(J/etc/mail/mysendmail
  $B$H$7$F!"0J2<$N$h$&$J5!G=$N%W%m%0%i%`$rCV$/!#(J
	#! /bin/sh
	/usr/loca/bin/nkf| /usr/lib/sendmail "$@"
  $B;DG0$J$,$i!"(Jmailx$B$O(J(SystemV $B$O(J)$B%7%'%k%9%/%j%W%H$r(Jexec$B$G$-$J$$$i$7$/(J
  C$B$+2?$+$G5-=R$7$F%3%s%Q%$%k$;$M$P$J$j$^$;$s!#(J
  $B$?$H$($P!"$3$&!#(J

#include <stdio.h>

main(argc,argv)
	char *argv[];
{
	int p[2], pid;

	if(pipe(p) ==-1) {
		perror("pipe");
		exit(1);
	}
	if((pid=fork())==-1) {
		perror("fork");
		exit(1);
	}
	if(pid==0) {
		close(1);
		dup(p[1]);
		close(p[0]);
		execl("/usr/local/bin/nkf","/nkf", 0);
		perror("execl(nkf)");
		exit(1);
	}
	close(0);
	dup(p[0]);
	close(p[1]);
	execv("/usr/lib/sendmail", argv);
	perror("execl(sendmail)");
	exit(1);
}

$B$H$j$"$($:!"snF#$,8D?ME*$K(J  ~/.mailrc $B$G@_Dj$7$F(J
$B3NG'$7$?$H$3$m!"$&$^$/F0$-$^$7$?!#!#!#(JNWS7000B/NEWS OS6.1.2$B$G$9!#(J


	$BsnF#L@5*(J@rd.ecip.osaka-u.ac.jp
Technical Details
Message-ID: <saitoh.97Nov4194731@ecipt01.ex.ecip.osaka-u.ac.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <639d8f$1g@nws-7000.lbm.go.jp> <63bopl$4cs@csdnews.sm.sony.co.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 10e593,ff2f10e76f1c90a0
X-Google-Attributes: gid10e593,public
X-Google-Thread: fdef0,ff2f10e76f1c90a0
X-Google-Attributes: gidfdef0,public
X-Google-Thread: 10a13d,ff2f10e76f1c90a0
X-Google-Attributes: gid10a13d,public
X-Google-Thread: f5935,ff2f10e76f1c90a0
X-Google-Attributes: gidf5935,public
X-Google-Thread: 100bbf,ff2f10e76f1c90a0
X-Google-Attributes: gid100bbf,public
X-Google-Thread: 106028,ff2f10e76f1c90a0
X-Google-Attributes: gid106028,public
From: saitoh@ex.ecip.osaka-u.ac.jp
Subject: Re: "generic-text" as a Content-type
Date: 1997/11/04
Message-ID: <saitoh.97Nov4194731@ecipt01.ex.ecip.osaka-u.ac.jp>
X-Deja-AN: 286913917
References: <639d8f$1g@nws-7000.lbm.go.jp> <63bopl$4cs@csdnews.sm.sony.co.jp>
Organization: Education Center for Information Processing, Osaka University, JAPAN
Reply-To: saitoh@ex.ecip.osaka-u.ac.jp
NNTP-Posting-User: saitoh (saitoh akinori)
Newsgroups: fj.mail,fj.mail.reader,fj.unix,fj.sys.news,fj.net.mime,fj.kanji