Email Mode Example

When Mode is set to email, [:mode email on], email parsing rules are activated to find e-mail headers, to determine which e-mail headers to speak, and to find e-mail text..

·      The specific text strings at the start of a line that initiate e-mail header mode are, as follows:

From:

Return-Path:

%======Internet

Message-ID:

In e-mail header mode, the DECtalk text pre-processor goes into line-by-line processing.

·      In e-mail header mode, the text lines saved for text pre-processing are the text lines that start with the following:

Sent:

Date:

Subject: Re:

Subject:

From:

To:

cc: or CC:

------ Forwarded Message

·      In e-mail header mode, each text line saved for text pre-processing gets a pause added at the end of the line.

·      When DECtalk detects an empty line while still in e-mail header mode, DECtalk goes into e-mail text processing mode. An empty line is a line that has a <Return/Enter> only.

·      In e-mail text processing mode , DECtalk does the regular text pre-processing and checks for another possible e-mail header that starts with %======Internet. If the text string %======Internet is found, DECtalk goes into e-mail header mode. This step is for UNIX e-mail only.

The [:mode email off] command ends the e-mail processing mode.

An example of a UNIX e-mail message with the Mode command for e-mail is as follows:

[:mode email on]

From John Doe Wed Jun 10 18:07:28 EST

Return-Path:<john@node.com>

Received: from home.node.com ([127.0.0.1]) by smtp.node.com

Message-ID: <32FB6581.581A@smtp.node.com>

Date: Wed, 10 Jun 1998 18:07:28 EST

From: john@node.com (John Doe)

Organization: Force Computers, Inc.

X-Mailer: ELM

MIME-Version: 1.0

To: jane@node.com

Subject: DECtalk Parsing

Content-Type: text/plain; charset=us-ascii

Content-Transfer-Encoding: 7bit

X-Mozilla-Status: 0001

 

Hi Jane,

 

At 11:52 EST on Wed Jun 10, I found a great web site. It’s a FORCE Computers web site all about the DECtalk products. Take a look at URL:

 

http://www.forcecomputers.com/product/dectalk/dtalk.html

 

Let me know what you think by mailing me at john@aol.node.com or snail mail at: John Doe, 4321 St. James St.,Mt. View, CA 12345-6789, phone (123)297-4863. Or write to Dr. John Doe, 10 42nd St., Boston, MA 01234, phone 617-546-2345.

 

See ya! :-)

 

John

 

%======Internet headers and postmarks (see DECWRL::GATEWAY.DOC)======

%Received: from smtp.node.com by node.com (5.6/rmc-22feb94) idAA17792;Wed, 10 Jun 98 22:47:37 –0400

%Received: from node.com by node.com (8.7.5/UNX 1.2/1.0/WV) idWWA13939; Wed, 10 Jun 1998 22.35.28 –0400 (EDT)

%Received: from node.com(smtp.node.com[127.0.0.1]) by worldaccess.com (8.6.10/8.6.10) with SMTPidTAA10463 for <jane@node.com>;Wed, 10 Jun 1998 19:33:57 –0700

%Message-Id:<32094F06.4045@node.com>

%Date: Wed, 10 Jun 1998 19:20:54 –0700

%From: john Doe <John@node.com>

%Organization: Force Computers, Inc.

%X-Mailer: ELM

%Mime-Version: 1.0

%To: "Jane Smith, jane@node.com"

%Subject: Re: DECtalk Parsing

%References: <9608071721.AA16334@mpde/com>

%Content-Type: text/plain; charset=us-ascii

%Content-Transfer-Encoding: 7bit

 

[:mode email off]

 

The e-mail header lines shown in bold are the lines saved for text pre-processing.

Note that some of the lines beginning with the % character in the example are shown wrapping to a second or third line. However, the actual text line is the line of text ended by a line terminator, such as <Return/Enter>.