97/06/05
ÀÌ »ó ·Î
:0:
* ^TOscuba
scubafile
:0
* ^From.*peter
* ^Subject:.*compilers
{
:0 c
! william@somewhere.edu
:0
petcompil
}
°°Àº ³»¿ëÀ» ´Þ¸® Ç¥ÇöÇϸé
:0
* ^From.*peter
* ^Subject:.*compilers
! william@somewhere.edu
:0 A
petcompil
°°Àº ³»¿ëÀ̳ª Á» ´À¸° ÇØ°áÃ¥Àº
:0 c
* ^From.*peter
* ^Subject:.*compilers
! william@somewhere.ed
:0
* ^From.*peter
* ^Subject:.*compilers
petcompil
3. Ç×»ó ÃÖÁ¾ 32°³ÀÇ ¸ÞÀÏÀ» º¸Á¸ÇÏ·Á¸é
:0 c
backup
:0 ic
| cd backup && rm -f dummy `ls -t msg.* | sed -e 1,32d`
4. ¸¸ÀÏ ½Ã½ºÅÛÀÌ ¿Ã¹Ù¸¦ Çì´õ 'From 'À» »ý¼ºÇÏÁö ¸øÇϸé
:0 fhw
| formail -r "From " -a "From "
5. ÆÄÀÌÇÁ°¡ ³¡³¯¶§±îÁö lockfileÀÌ Áö¿öÁöÁö ¾Êµµ·Ï
:0 hwc:
* !^FROM_MAILER
| uncompress headc.Z: cat >>headc; compress headc
¸¸ÀÏ gzipÀ» »ç¿ëÇÏ°í ½ÍÀ¸¸é
|0 hwc:
* !^FROM_MAILER
| gzip >>headc.gz
6. 1000¹ÙÀÌÆ® ÀÌÇÏÀÇ ÂªÀº ¸ÞÀÏÀ» ¸ðµÎ ³ªÀÇ È« ÁÖ¼Ò¸£ Æ÷¿öµùÇÏ·Á¸é
:0
* < 1000
! myname@home
:0:
* ^Subject:.*surfing.*Digest
| formail +1 -ds >>surfing
8. postmaster·ÎºÎÅÍ µé¾î¿À´Â ¸ÞÀÏÀ» postm ¸ÞÀϹڽº¿¡ ÀúÀåÇÏ´Â °æ¿ì
:0:
* ^FROM_MAILER
postm
µé¾î¿À´Â ¸ÞÀÏ¿¡ ÀÚµ¿ÀÀ´äÀ» ÇÏ·Á¸é ¿ì¼± ¸ÞÀϵ¥¸Õ°ú Àڽſ¡°Ô¿Â ÀÚµ¿ÀÀ´ä¸ÞÀÏÀ» ÀÚµ¿ÀÀ´äÇÏÁö ¾Êµµ·Ï ó¸®ÇÏ¿©¾ß ÇÑ´Ù. ¶ÇÇÑ ¸ÞÀϸµ¸®½ºÆ®¿¡ ÀÚµ¿ÀÀ´äÇÏ´Â °Íµµ ¹«ÀǹÌÇÏ´Ù.
:0 h c
* !^FROM_DAEMON
* !^X-Loop: your@own.mail.address
| (formail -r -A"Precedence: junk" \
-A"X-Loop: your@own.mail.address" ;\
echo "Mail received." | $SENDMAIL -t
ÀÚµ¿ÀÀ´ä Àü¿ëÇÁ·Î±×·¥À¸·Î vacation(1)ÀÌ ÀÖ´Ù.
10. TeX¿¡ °ü·ÃµÈ ¸ðµç ¸ÞÀÏÀ» texmail µð·ºÅ丮¿¡ ÀúÀåÇÑ´Ù. À̰æ¿ì¿¡´Â lockfileÀ» »ç¿ëÇÒ Çʿ䰡 ¾ø´Ù.
:0
* (^TO|^Subject:.*)Tex[^t]
texmail
:0 Wh: msgid.lock
| formail -D 8192 msgid.cache
12. µÎ °³ÀÇ ½©°èÁ¤ÀÌ ÀÖÀ» ¶§ ¾çÂÊÀÇ ¸ÞÀÏÀ» ÀÏÄ¡½ÃŰ·Á¸é
:0 c
* !^X-Loop: yourname@your.main.mail.address
| formail -A "X-Loop: yourname@your.main.mail.address" | \
$SENDMAIL -oi yourname@the.other.account
:0
: !^From +YOUR_USERNAME
* !^Subject:.*Re:
* !^FROM_DAEMON
* ^Subject:.*retrieve
| (formail -r; cat info_file) | $SENDMAIL -oi -t
14. ¸¶ÀÓ(MIME)À¸·Î ÀÎÄÚµåµÇ¾î µé¾î¿Â ¸ÞÀÏÀ» 8ºñÆ®·Î ÀÚµ¿ º¯È¯ÇØÁÖ´Â ¹æ¹ý
:0
* ^Content-Type: *text/plain
{
:0 fbw
* ^Content-Transfer-Encoding: *quoted-printable
| mmencode -u -q
:0 Afhw
| formail -I "Content-Transfer-Encoding: 8bit"
:0 fbw
* ^Content-Transfer-Encoding: *base64
| mmencode -u -b
:0 Afhw
| formail -I "Content-Transfer-Ecoding: 8bit"
}
URGMATCH=`cat $HOME/.urgent`
:0:
* $^From.*${URGMATCH}
urgent
16. ¿ÜºÎ·Î ³ª°¡´Â ¸ÞÀÏÀ» ÇÊ¿äÇÑ °æ¿ì¸¸ ¸¶ÀÓÀ¸·Î ÀÎÄÚµùÇØ¼ º¸³¾ ¶§
cat newtext | procmail ./mimeconvert | mail chris@wher.ever
.mimeconvert rcfile¿¡´Â =0x80= °ú =0xff=À» ½ÇÁ¦ 8ºñÆ®·Î ¹Ù²Ù´Â °ÍÀÌ ÇÊ¿äÇÏ´Ù.
DEFAULT=| #piep to stdout instead of delivering mail as usual
:0 Bfbw
* [=0x80=-=0xff=]
| mmencode -q
:0 Afhw
| formail -I 'MIME-Version: 1.0'\
-I 'Content-Type: text/plain; charset=ISO-8859-1' \
-I 'Content-Transfer-Encoding: quoted-printable'