Format of MailMessages in Oberon.
Hello Oberon Experts, When a message is sent with Mail.Panel, the System.Log shows this line. RCV: 354 Enter message, ending with "." on a line by itself That appears to be an artifact from interactive submission of a message.. Not significant when Mail.Panel sends the contents of a marked viewer. MailMessages has the mboxrd format with addition of the "." line. https://en.wikipedia.org/wiki/Mbox#Family Is there any benefit in keeping the "." line in MailMessages? Thanks, ... Peter E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +13606390202 http://easthope.ca/peter.html Bcc: peter at easthope. ca
As I recall from the RFC and live-telnet-confirm-tests: email text ends when receiving the line: "." This *NOW* seems absurd, since it would cut-off/lose all text following such an unintended/innocent <terminator>. A self test email would confirm/test this? Since the 'revolution' ISPs are unreliable here, and I'm forced to use gmail, which masks the RFC spec. by using http, so that they can push-adverts-in-yo-face. While I was using [and modified: to do `Sender authenticate`] TextMail.Mod, I never considered the "." issue. Apparently the "." terminator was automatically sent. == Chris Glur. OK, since I opened this can-o-worms: what is the conclusion? -> Unix_Obe~Src.tgz 3492833 -> fld/temi 22295 2001-10-08 17:26 src/NO/TextMail.Mod PROCEDURE SendText(S: NS.Connection; VAR R: Texts.Reader; user: ARRAY OF VAR s: ARRAY 512 OF CHAR; t: ARRAY 32 OF CHAR; i, j: INTEGER; BEGIN s := "Mime-Version: 1.0"; NS.WriteString(S, s); s := "Content-Type: text/plain; charset="; i := 0; WHILE s[i] # 0X DO INC(i) END; s[i] := 22X; INC(i); t := "iso-8859-1"; j := 0; WHILE t[j] # 0X DO s[i] := t[j]; INC(j); INC(i) END; s[i NS.WriteString(S, s); s := "Content-Transfer-Encoding: 8bit"; NS.WriteString(S, s); s := "X-Mailer: Original Oberon-mailer by RS/ARD"; NS.WriteStrin IF CopySelf THEN s := "Bcc: "; Strings.Append(s, user); NS.WriteString(S, END; REPEAT ReadStringO2I(R, s, FALSE); IF (s[0] = ".") & (s[1] = 0X) THEN s[1] := "."; s[2] := SendCmd(S, s, "") UNTIL R.eot; SendCmd(S, ".", "") END SendText; ---- See "." handling ? On 7/1/15, peter@easthope.ca <peter@easthope.ca> wrote:
Hello Oberon Experts,
When a message is sent with Mail.Panel, the System.Log shows this line. RCV: 354 Enter message, ending with "." on a line by itself
That appears to be an artifact from interactive submission of a message.. Not significant when Mail.Panel sends the contents of a marked viewer.
MailMessages has the mboxrd format with addition of the "." line. https://en.wikipedia.org/wiki/Mbox#Family
Is there any benefit in keeping the "." line in MailMessages?
Thanks, ... Peter E.
-- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +13606390202 http://easthope.ca/peter.html Bcc: peter at easthope. ca
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (2)
-
eas lab -
peter@easthope.ca