Generally, re-using code instead of copying is a good approach.
If you do so, then the whole code of Mail is imported in News. Possible but perhaps there is even a better approach to re-use code.
What about this: try to separate all common code in an own module (e.g call it Communication.Mod or MsgBase.Mod or Utilities.Mod or so) and import this new module in Mail and in News.
br
Jörg
> Am 14.06.2023 um 19:53 schrieb peter(a)easthope.ca:
>
> Hello again,
>
> Several procedures in Mail are used in Oberon News. Rg.:
> Mail.ParseContent(), Mail.DecodeMessage() & Mail.GetSetting().
>
> Is export of SendCmd() and use in News objectionable?
> Ie. in Mail, change PROCEDURE SendCmd(...) to PROCEDURE SendCmd*(...).
>
> Thanks, ... P.
>
> -
> mobile: +1 778 951 5147
> VoIP: +1 604 670 0140
>
> --
> Oberon(a)lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
hi all, i'm a newcomer to designing & implementing programs (be it system- application, web or realtime) but not for a lack of interest.
i'd love to learn program design & implementation with Oberon-7 or Modula-2 or Pascal-P6, are you who read this sitting on any "beginners self-study courses"? then do send any tips my way, i can begin to (b|v)log about how it goes for me to self-study if that's a motivator to anyone willing to help me to a solid start =)
while not exclusive to me, it is increasingly rare so i'll say this, i learn if everything i'm about to learn is accounted for before i sit down - because then i don't have to get up in the middle of learning to start puzzling together my curriculum =)
(putting together your own curriculum can be educative, it has indeed been to me in other topics, but after drifting around in search-engine results to "learn programming" and falling into either deep-ends of various niches or all-too-small puddles... the method of "just google it" doesn't hold water to me. humans' curation and guiding hands to eachother are totally replaceable, evidently, but not for the better. i'll gladly find any guiding hands in this mailing list.)
so far i'm puzzling together my own curriculum! i am trying =)
i came across a self-hosting compiler by Krotov Anton for Oberon-7⁰ https://github.com/AntKrotov/oberon-07-compiler
and another self-hosting compiler by Scott Moore for Pascal-P6¹
meanwhile a compiler for Modula-2 is now in the GCC (GNU Compiler Collection) as GCC-GM2
in lieu of hearing me go on about what resources i'm cobbling together for my own curriculum though, i hope to hear from any of you who probably sit on alot of comprehensive knowledge that i'd to well to be initiated by. i often feel like i am fulfilling that Dijkstra quote² when i do cobble together my own curriculum...
[0] https://github.com/AntKrotov/oberon-07-compiler
[1] https://github.com/samiam95124/Pascal-P6
[2] 'has accepted as its charter "How to program if you cannot."'
with high regards,
bluemoon
From: Daniel Schmid <daniel.schmid(a)bluemail.ch>
Date: Mon, 09 Jun 2025 22:14:06 +0200
> Is Oberon.Mail a real mail Server/Client ?
The Mail module in ETH Oberon and in the Oberon subsystem of A2
provides sending by SMTP and retrieval by POP & POP3.
https://en.wikipedia.org/wiki/Email_clienthttps://en.wikipedia.org/wiki/Email_client#Protocols
A2 also supports IMAP. I don't use that and can't tell you about
versions. If you find whether IMAP4 is supported, please let me know.
I'm not aware of implementation of server capabilities but use client
capabilities routinely. My working volume is on a USB store. After
retrieving messages by POP3, read off line and at another site.
https://en.wikibooks.org/wiki/Oberon/ETH_Oberon#Emailhttps://en.wikibooks.org/wiki/Oberon/A2#Email
Installation and configuration isn't difficult. If you find a snag,
please report to allow improvement of the documentation.
Thx, ... P.
--
VoIP: +1 604 670 0140 out of service
mobile: +1 778 951 5147
work: en.wikibooks.org/wiki/User:PeterEasthope
Hi,
Oberon.Mail.Mod has CONST ... IndexFileKey=74EF5A0DH . SaveIndexFile()
writes it to the front of the IndexFile.
The only purpose I imagine is to provide a means of detecting
corruption of IndexFile. Correct?
Is there a reason for that particular number? Could be any one of the
16^8 hexadecimal numbers of 8 digits? Eg. 75EF5A0DH would work
just as well?.
Thanks, ... P.L.
--
VoIP: +1 604 670 0140 out of service
mobile: +1 778 951 5147
work: en.wikibooks.org/wiki/User:PeterEasthope