1. More info on carriage return problem

I'm using the clipboard routines to try and paste something into a mailer=
=2E =

Now, I don't have a mailer to test it, so I use Notepad to test.  My
question is twofold:

It seems that after each line there's an ASCII 10.  Notepad, however,
insists on two carriage returns \n\n.  How do I change each ASCII 10 \n\n=


Secondfold, this is slightly off-topic.  Like I said, I don't use a popul=
ar
mailer, like Eudora or Outlook.  When these mailers encounter an ASCII 10=
,
will it initiate a line break, or will it behave like Notepad?

--Alan
 =

new topic     » topic index » view message » categorize

2. Re: More info on carriage return problem

In some programs, the end of a line is represented by a carriage return
('\r' or 13) followed by a new line character ('\n' or 10). You may want to
use '\r\n" instead of "\n\n" because "\n\n" could make a blank line in some
programs. Here is the code to answer your question:
constant REPLACE = "\n", WITH = "\r\n"
integer i
sequence s -- the stuff to change
i = match(REPLACE,s)
while i > 0 do
        s = s[1..i-1] & WITH & s[i+length(REPLACE)..length(s)] i =
match(REPLACE,s)
end while
If you are interested in sending mail using SMTP, I have code for sending
e-mail using sockets (from winsock.ew) and SMTP. (It is still in
development, but it works...)

Jeffrey Fielding -----Original Message----- From:
<EUPHORIA at LISTSERV.MUOHIO.EDU> To: <JJProg> Date: Wednesday, August 12,
1998 1:28 PM Subject: More info on carriage return problem

>I'm using the clipboard routines to try and paste something into a mailer.
>Now, I don't have a mailer to test it, so I use Notepad to test.  My
>question is twofold: > >It seems that after each line there's an ASCII 10.
Notepad, however, >insists on two carriage returns \n\n.  How do I change
each ASCII 10 \n\n > >Secondfold, this is slightly off-topic.  Like I said,
I don't use a popular >mailer, like Eudora or Outlook.  When these mailers
encounter an ASCII 10, >will it initiate a line break, or will it behave
like Notepad? > >--Alan >

new topic     » goto parent     » topic index » view message » categorize

3. Re: More info on carriage return problem

1. Simple... Highilght the char (ASCII 10)...
  2. Right click it  hit copy
  3. then Open the search menu
  4. and hit find
  5. right click in the find box
  6. and hit paste
  7. hit ENTER
  8. now the char should be highlighted...
  9. hit enter
 10. then hit find again
 11. then enter again....

keep finding and hitting enter to replace... (If you don't understand... Sorry
I kan't explain better)  But u kan figure it out!

        -Lord Toltec

Alan Tu wrote:

> I'm using the clipboard routines to try and paste something into a mailer.
> Now, I don't have a mailer to test it, so I use Notepad to test.  My
> question is twofold:
>
> It seems that after each line there's an ASCII 10.  Notepad, however,
> insists on two carriage returns \n\n.  How do I change each ASCII 10 \n\n
>
> Secondfold, this is slightly off-topic.  Like I said, I don't use a popular
> mailer, like Eudora or Outlook.  When these mailers encounter an ASCII 10,
> will it initiate a line break, or will it behave like Notepad?
>
> --Alan



--

ICQ 16740033
AIM LordToltec

"Push your self beyond reason and embrace reality!"

 -Lord Toltec
---------------------------------------------------
"ÀðL kÀñ gð tð hËLL¡"

 -Symbolic Quote from
         everyone, bound in a
         commom hate, for AOL.
---------------------------------------------------
"For me there is only the traveling on paths that
have heart, on any path that may have heart. There
I travel, and the only worthwhile challenge is to
transverse its full length. And there I travel
looking, looking, breathlessly."

 -Don Juan

new topic     » goto parent     » topic index » view message » categorize

4. Re: More info on carriage return problem

Hello, Im very new to Euphoria and i was wondering wich file do i need to
run in the bin directory where i enter all the code and stuff, and then how
do i compile it?


At 01:23 PM 8/12/98 -0400, you wrote:
>In some programs, the end of a line is represented by a carriage return
>('\r' or 13) followed by a new line character ('\n' or 10). You may want to
>use '\r\n" instead of "\n\n" because "\n\n" could make a blank line in some
>programs. Here is the code to answer your question:
>constant REPLACE = "\n", WITH = "\r\n"
>integer i
>sequence s -- the stuff to change
>i = match(REPLACE,s)
>while i > 0 do
>        s = s[1..i-1] & WITH & s[i+length(REPLACE)..length(s)] i =
>match(REPLACE,s)
>end while
>If you are interested in sending mail using SMTP, I have code for sending
>e-mail using sockets (from winsock.ew) and SMTP. (It is still in
>development, but it works...)
>
>Jeffrey Fielding -----Original Message----- From:
><EUPHORIA at LISTSERV.MUOHIO.EDU> To: <JJProg> Date: Wednesday, August 12,
>1998 1:28 PM Subject: More info on carriage return problem
>
>>I'm using the clipboard routines to try and paste something into a mailer.
>>Now, I don't have a mailer to test it, so I use Notepad to test.  My
>>question is twofold: > >It seems that after each line there's an ASCII 10.
>Notepad, however, >insists on two carriage returns \n\n.  How do I change
>each ASCII 10 \n\n > >Secondfold, this is slightly off-topic.  Like I said,
>I don't use a popular >mailer, like Eudora or Outlook.  When these mailers
>encounter an ASCII 10, >will it initiate a line break, or will it behave
>like Notepad? > >--Alan >
>
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: More info on carriage return problem

>>>>>
  1. Simple... Highilght the char (ASCII 10)...
  2. Right click it  hit copy
  3. then Open the search menu
  4. and hit find
  5. right click in the find box
  6. and hit paste
  7. hit ENTER
  8. now the char should be highlighted...
  9. hit enter
 10. then hit find again
 11. then enter again....
<<<<<

Well, I wanted to do it Euphoricly.  But I found out that Euphoria wasn't=

handling that right because I was opening this file as ASCII, where I had=

to use "rb"

--Alan
 =

new topic     » goto parent     » topic index » view message » categorize

6. Re: More info on carriage return problem

Hello, Im very new to Euphoria and i was wondering wich file do i need to=

run in the bin directory where i enter all the code and stuff, and then h=
ow
do i compile it?

Simple.  Type ex ed

It'll ask for a filename.  If you're creating a new document, then enter =
a
new name.  There's no such thing as "compile", technically, in Euphoria. =

You can turn your program into an .EXE file, but that's not compiling, in=

Euphoria.  That simply attaches the interpreter to your program.  View
c:\euphoria\doc\bind.doc for more info.

Hope this helps.

--Alan
 =

new topic     » goto parent     » topic index » view message » categorize

7. Re: More info on carriage return problem

ok thanks man, is it possible to write a command line app in Euphoria that
sends email through dos?


At 03:27 PM 8/12/98 -0400, you wrote:
>Hello, Im very new to Euphoria and i was wondering wich file do i need to
>run in the bin directory where i enter all the code and stuff, and then how
>do i compile it?
>
>Simple.  Type ex ed
>
>It'll ask for a filename.  If you're creating a new document, then enter a
>new name.  There's no such thing as "compile", technically, in Euphoria.
>You can turn your program into an .EXE file, but that's not compiling, in
>Euphoria.  That simply attaches the interpreter to your program.  View
>c:\euphoria\doc\bind.doc for more info.
>
>Hope this helps.
>
>--Alan
>

new topic     » goto parent     » topic index » view message » categorize

8. Re: More info on carriage return problem

>Date:         Wed, 12 Aug 1998 14:55:19 -0700
>Reply-To:     Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
>From:         "Hot][ceX" <girias at HONDUTEL.HN>
>Subject:      Re: More info on carriage return problem
>To:           EUPHORIA at LISTSERV.MUOHIO.EDU
>
>ok thanks man, is it possible to write a command line app in Euphoria
that
>sends email through dos?
>

My answer: nope, because straight DOS is unable to do the calls Windows
can. The closest thing to that is a '95 program that sends mail to the
president of the US with a noteabout using euphoriato send it...

- "LEVIATHAN"

WARNING: My spacebar is starting to fail, or I may just be putting
mythumb in the wrong place,so stuck words will start getting... real
common... :)

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

9. Re: More info on carriage return problem

> >ok thanks man, is it possible to write a command line app in Euphoria that
> >sends email through dos?
> >
> My answer: nope, because straight DOS is unable to do the calls Windows
> can. The closest thing to that is a '95 program that sends mail to the
> president of the US with a noteabout using euphoriato send it...
> - "LEVIATHAN"

ummmm...leviathan, I'm gonna have to disagree with you here.
With euphoria for DOS, (ex.exe) and a few includes (ports.e for sure)
and the fact that you can program in both assembly and machine
languages with euphoria, I would say that anyone willing to work
with octal base could generate a tcp-ip layer or perhaps some sort
of fossil driver emulating a protocol over a DOS winsock SLIP-PPP
connection...
well, it would not be easy, but with some really
good scouring of the net in like the oak archives or simtel
and such, you could find like trumpyt winsock for dos, and
probably also find a wrapper for it written in perhaps BASIC
(which someone had mailed me something similiar) or PASCAL.
Now, most of those wrappers already have the inlined assembly
already done for you to handle the interrupts that call the
network....
Also consider that exw.exe *IS* command line callable, (and of course,
so is ex.exe) works within batch files, and it can call any dll in
win95.

end result? difficult, but not impossible, nor even improbable.

--take care, Hawke'

new topic     » goto parent     » topic index » view message » categorize

10. Re: More info on carriage return problem

>Date:         Wed, 12 Aug 1998 18:34:42 -0700
>Reply-To:     Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
>From:         Hawke <mdeland at NWINFO.NET>
>Subject:      Re: More info on carriage return problem
>To:           EUPHORIA at LISTSERV.MUOHIO.EDU
>
>> >ok thanks man, is it possible to write a command line app in
Euphoria that
>> >sends email through dos?
>> >
>> My answer: nope, because straight DOS is unable to do the calls
Windows
>> can. The closest thing to that is a '95 program that sends mail to
the
>> president of the US with a noteabout using euphoriato send it...
>> - "LEVIATHAN"
>
>ummmm...leviathan, I'm gonna have to disagree with you here.
>With euphoria for DOS, (ex.exe) and a few includes (ports.e for sure)
>and the fact that you can program in both assembly and machine
>languages with euphoria, I would say that anyone willing to work
>with octal base could generate a tcp-ip layer or perhaps some sort
>of fossil driver emulating a protocol over a DOS winsock SLIP-PPP
>connection...
>well, it would not be easy, but with some really
>good scouring of the net in like the oak archives or simtel
>and such, you could find like trumpyt winsock for dos, and
>probably also find a wrapper for it written in perhaps BASIC
>(which someone had mailed me something similiar) or PASCAL.
>Now, most of those wrappers already have the inlined assembly
>already done for you to handle the interrupts that call the
>network....
>Also consider that exw.exe *IS* command line callable, (and of course,
>so is ex.exe) works within batch files, and it can call any dll in
>win95.
>
>end result? difficult, but not impossible, nor even improbable.
>
>--take care, Hawke'
>

... It took me half an hour to write that message, because I had to
think about exactly that. Difficulty of writing such a progeam opted me
to say that. BUT, of course, I AM still a beginner. :)

Thanx!

- "LEVIATHAN"


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

11. Re: More info on carriage return problem

There is a solution to handle mail from inside DOS Euphoria: Postie.
You can issue system() calls to handle most aspects of mail.

Download EXE: http://www.infradig.com/postie.zip

I'ts freeware, as far as I know.
Jesus.
----------
> De: Hawke <mdeland at NWINFO.NET>
>, I would say that anyone willing to work
> with octal base could generate a tcp-ip layer or perhaps some sort
> of fossil driver emulating a protocol over a DOS winsock SLIP-PPP
> connection...
> well, it would not be easy,

new topic     » goto parent     » topic index » view message » categorize

12. Re: More info on carriage return problem

Jesus Consuegra wrote:
>
> There is a solution to handle mail from inside DOS Euphoria: Postie.
> You can issue system() calls to handle most aspects of mail.
>
> Download EXE: http://www.infradig.com/postie.zip
>
> I'ts freeware, as far as I know.
> Jesus.

Thanks, Jesus, for postng this link. The program works great, and is
free for
personal use ($25/50 for business use)
I think today I will write a DOS GUI wrapper for it.

Regards,

Irv

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu