๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #26869

Mail con acuse de recibo

#26869
From: Joaquin Garcia Santos
Date: Wed, 18 Nov 1998 00:00
120 lines
5213 bytes
Hola,
Me gustaria que alguien me informara sobre como mandar un mail con acuse
de recibo. Me explico, cuando escribes un mail hay dos posibilidades:
1.- Que te llegue un mensaje que indique si ha llegado o no el mail a la
cuenta de destino (DSN = Delivery Status Notifications)
2.- Que te llegue un mensaje que indique que ese mail ha sido abierto
para lectura.(MDN = Message Disposition Notifications)
En ambos casos tiene que ver con la cabecera que le mandes, y para el
primer caso encontre un ejemplo (y por tanto la solucion). Estos serian
los mensajes que se intercambiarian con un servidor de correo:

<<< 220 Pure-Heart.ORG SMTP server here
>>> EHLO Pure-Heart.ORG
<<< 250-Pure-Heart.ORG
<<< 250-DSN
<<< 250-EXPN
<<< 250 SIZE
>>> MAIL FROM:<Alice@Pure-Heart.ORG> RET=HDRS ENVID=QQ314159
<<< 250 <Alice@Pure-Heart.ORG> sender ok
>>> RCPT TO:<Bob@Big-Bucks.COM> NOTIFY=SUCCESS \
ORCPT=rfc822;Bob@Big-Bucks.COM
<<< 250 <Bob@Big-Bucks.COM> recipient ok
>>> RCPT TO:<Carol@Ivory.EDU> NOTIFY=FAILURE  \
ORCPT=rfc822;Carol@Ivory.EDU
<<< 250 <Carol@Ivory.EDU> recipient ok
>>> RCPT TO:<Dana@Ivory.EDU> NOTIFY=SUCCESS,FAILURE \
ORCPT=rfc822;Dana@Ivory.EDU
<<< 250 <Dana@Ivory.EDU> recipient ok
>>> RCPT TO:<Eric@Bombs.AF.MIL> NOTIFY=FAILURE
\ORCPT=rfc822;Eric@Bombs.AF.MIL
<<< 250 <Eric@Bombs.AF.MIL> recipient ok
>>> RCPT TO:<Fred@Bombs.AF.MIL> NOTIFY=NEVER
<<< 250 <Fred@Bombs.AF.MIL> recipient ok
>>> RCPT TO:<George@Tax-ME.GOV> NOTIFY=FAILURE \
ORCPT=rfc822;George@Tax-ME.GOV
<<< 250 <George@Tax-ME.GOV> recipient ok
>>> DATA
<<< 354 okay, send message
>>> (message goes here)
>>> .
<<< 250 message accepted
>>> QUIT
<<< 221 goodbye

NOTE: Formatting rules for RFCs require that no line be longer than 72
characters.  Therefore, in the following examples, some SMTP commands
longer than 72 characters are printed on two lines, with the first line
ending in "\".  In an actual SMTP transaction, such a command would be
sent as a single line (i.e. with no embedded CRLFs), and without the "\"
character that appears in these examples.

Para el segundo caso encontre informacion (documento adjunto) pero no
viene ningun ejemplo. Algunos terminos que usa son:

7.  Collected Grammar
   NOTE:  The following lexical tokens are defined in RFC 822:  atom,
CRLF, mailbox, msg-id, text.  The definitions of attribute and value are
as in the definition of the Content-Type header in RFC 2045 [4].

   Message headers:

   mdn-request-header = "Disposition-Notification-To" ":" 1#mailbox
   Disposition-Notification-Options = "Disposition-Notification-Options"
":" disposition-notification-parameters
   disposition-notification-parameters = parameter *(";" parameter)
   parameter = attribute "=" importance "," 1#value
   importance = "required" / "optional"
   original-recipient-header = "Original-Recipient" ":" address-type ";"
generic-address

   Report content:

   disposition-notification-content = [ reporting-ua-field CRLF ]
     [ mdn-gateway-field CRLF ]
     [ original-recipient-field CRLF ]
     final-recipient-field CRLF
    [ original-message-id-field CRLF ]
    disposition-field CRLF
    *( failure-field CRLF )
    *( error-field CRLF )
    *( warning-field CRLF )
    *( extension-field CRLF )

   address-type = atom
   mta-name-type = atom
   reporting-ua-field = "Reporting-UA" ":" ua-name [ ";" ua-product ]
   ua-name = *text
   ua-product = *text
   mdn-gateway-field = "MDN-Gateway" ":" mta-name-type ";" mta-name
   mta-name = *text
   original-recipient-field = "Original-Recipient" ":" address-type ";"
generic-address
   generic-address = *text
   final-recipient-field = "Final-Recipient" ":" address-type ";"
generic-address
   disposition-field = "Disposition" ":" disposition-mode ";"
disposition-type  [ '/' disposition-modifier *( "," dispostion-modifier
) ]
   disposition-mode = action-mode "/" sending-mode
   action-mode = "manual-action" / "automatic-action"
   sending-mode = "MDN-sent-manually" / "MDN-sent-automatically"
   disposition-type = "displayed" / "dispatched" / "processed" /
"deleted" / "denied" / "failed"

   disposition-modifier = ( "error" / "warning" )
    / ( "superseded" / "expired" / "mailbox-terminated" )
    / disposition-modifier-extension

   disposition-modifier-extension = atom
   original-message-id-field = "Original-Message-ID" ":" msg-id
   failure-field = "Failure" ":" *text
   error-field = "Error" ":" *text
   warning-field = "Warning" ":" *text
   extension-field = extension-field-name ":" *text
   extension-field-name = atom


๏ฟฝAlguien me podria indicar una traza como la anterior para este caso.?

Un saludo y muchas gracias
Technical Details
Message-ID: <3652A1DC.29BEB13B@intersys.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,1f24dbee35d630f9,start
X-Google-Attributes: gid1116f3,public
From: Joaquin Garcia Santos <jgarcia@intersys.es>
Subject: Mail con acuse de recibo
Date: 1998/11/18
Message-ID: <3652A1DC.29BEB13B@intersys.es>
X-Deja-AN: 413099410
Content-Transfer-Encoding: 8bit
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
Organization: Internet Systems
Mime-Version: 1.0
Newsgroups: es.comp.lenguajes.java