Escolar Documentos
Profissional Documentos
Cultura Documentos
! "
Multipurpose Internet Mail
Extension
alfady@scs-net.org
''' !
"# $ %
&
$ .............................................................................................. #
$ ................................................................... SMTP %
............................................Content-Description (optional) (- .$ ) /
* ....................................................................... ) # 0 )
................................................................................................................. 7bit
................................................................................................... 5 # 4& 1 )
2
.....................................................................Top-level : Image 4& 1 )
3
Multipurpose Internet Mail Extension MIME
! " #
& )Multipurpose($ "%& &' "
,& - ! SMTP * & ! +& #
MIME / .0 & & )Text( . %&
RFC 1521/1522 1 & 2' 3 4 # 5 26 6 ,0 7&
SMTP , 6
: 0- ! $ ; +& 9, MIME & 8 5
& = & , SMTP SMTP 0 !<
> 4 2 8 4 5 RFC822 1 & 2' # 5 . %&
/ . ,0, 4 4 8@ A & ,& !< >&B =& ?
RFC 821 1 & 2' # 5 SMTP Defacto & &
4
> RFC 821/822 %& & ! # E 6MIME $ > C
26 6 ,0, 2 /.0 - & RFC 822 : & 0*
MIME C
RFC 822 > $ >&B 9 6 8* ! - 6 •
& # , >&B 9 & #
"%& # J. # 8 •
MIME–Version :1.0
Content–Type : text/plain ;charset=us-ASCII
Content–transfer–Encoding :7bit
5
4
6
MIME >$ 6
RFC >&B 9 6 8 >&B I #&5 MIME ,0& ! &
NF 6 #5 F 6 C 6NF 6 O 6N &6 .= 6 822
* 6 Q 5& ? P &8 4 & F 6 * C &< 0 F 6 D.
F6
&1
MIME-Version: 1.0
&1
Content-type: text/plain; charset="us-ASCII"
or -
Content-type: X-MyNewType
Content-Transfer-Encoding (required) )G " ( F 6 C 6
,0 G )US-ASCII( , 1 0C 1 D 60 * 6 %& ,9
C D & 40$ ? MTA &< 6 #
7
"7bit", "quoted-printable", "base64", "8bit", and "binary"
& 4 / ! ,0 * 9 ;6L ? & > . ' & &<45& D
& 40 , ,0 G & !& & &< >&B 9 # ,0 # 8 5, > C
"X-" G 7 LANA > . &8 C
&1
Content-transfer-encoding: base64
&1
Content-Description: "This is an image file"
F 6 C & 40
Content-transfer-encoding schemes :
& &" , ,0 G " SMTP ,9 & & & ! &
'4 ,0 - B , , A !7 6 & ? )US-ASCII( 0 G 1
,0 E 6 C & 40 F 6 C 6 6 ? &< , E 6 &"
& &4 6 D #8 . & &6 C A ' ,0, &
8
7bit
DK & & = )default(- & 4 !
)7-bit US-ASCII characters. ( ! 0D &6 ,
Quoted-printable N " D 6
" >A& US-ASCII " , & > D &6 #; , &
! MTA ,B & & 9& !% " !< D &6
&< 6 # & I> 0" > 1 F 8 D &6 & 0RFC 821/822 "
)equal sign($ & $ &4I U & & 4 $ '4
&1
A =3D B
Base64 :&
Base64 D 6 C 4 ,
9
&1
10
&1
:MIME 5, > F 6 O 0
Content-types defined by MIME
The top-level media ( " * F O 0 , '. 4 ! " #1 <=> *
D )subtypes( ' O &" & O R . E 6 ) types
" &< * 8 )media( " O 0 A& ? . . 8 J.
)application( 7 " ?)video( > ? )audio( . ? )image( $ . ? )text(P
)message( & )multipart(+ C & ,& ,&1 ,& &
11
D 6 &6 )case-sensitive(: & 6 6
&;6L
)Subtypes( ' O
Plain
Unformatted text
Richtext
Simple formatting, such as bold, italic, and
underline (RFC 1341)
Enriched
A clarified, simplified, and refined Richtext (RFC
1896)
&;6L
)Subtypes( ' O
JPEG JPEG format using JFIF encoding
12
Top-level : Audio 4& 1 ) & (
)Parameter( 6
&;6L
)Subtypes( ' O
basic Single channel audio encoded using 8bit ISDN
mu-law [PCM] at a sample rate of 8000 Hz.
&;6L
)Subtypes( ' O
MPEG ISO 11172 format.
&;6L
13
)Subtypes( ' O
octet-stream
Arbitrary binary data
postscript
A postscript program
14
&;6L
)Subtypes( ' O
mixed
Sequentially processed multiple body parts. Used when order is important
parallel
Multiple body parts processed in parallel
digest
Similar to mixed subtype, but the default content-type is rfc822. This
subtype encapsulates entire email messages so they are displayed
sequentially with both headers and data. Order is important.
alternative
Used when several versions of a mail message are included. Which part is
viewed by the user is dependent upon the capabilities of the UA. Order is
important.
&;6L
G $C %C 8 # ' O , ,0G
)Subtypes( ' O
rfc822
Encapsulates another mail message.
partial
Fragments larger messages, similar to IP fragmentation and reassembly.
&<'. ' &< 0 O # 0, &>
15
MIME RFC 822 & %& , + C 0* 10
(#
16
(%
? @*
17