Re: tsNet mail message not formatting

2021-03-03 Thread J. Landman Gay via use-livecode
I once inherited a stack where the original developer did just that. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 3, 2021 5:46:06 PM Bob Sneidar via use-livecode wrote: That answers my question. Actually, I have no idea why

Re: tsNet mail message not formatting

2021-03-03 Thread Rick Harrison via use-livecode
Hi Charles, I had almost everything right. I was missing a cr between tCc and tBcc. Oops. Everything is working great now! Thanks!!! Rick > On Mar 3, 2021, at 6:48 PM, Charles Warwick via use-livecode > wrote: > > Hi Rick, > > What code did you try to add the Bcc e-mail recipients? > >

Re: sort container parameters

2021-03-03 Thread Curry Kenworthy via use-livecode
Inline sort param variables: If anyone files this bug report/feature request, let me know! I will sign on Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/

Re: tsNet mail message not formatting

2021-03-03 Thread matthias rebbe via use-livecode
Thanks Charles, - Matthias Rebbe Life Is Too Short For Boring Code this might is a relic from times before tsNET. When i started with tsNet i modified existing code and maybe i kept this "bad" behaviour. ;) I used this only for inhouse status and alert emails for up to 5 recipients and

Re: tsNet mail message not formatting

2021-03-03 Thread Bob Sneidar via use-livecode
Still sketchy on whether or not open file for binary write and put url binfile give the same results. Bob S On Mar 3, 2021, at 3:56 PM, Brian Milby via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Correct. So the current situation requires you to use binfile for Mac/Linux and

Re: tsNet mail message not formatting

2021-03-03 Thread Brian Milby via use-livecode
Correct. So the current situation requires you to use binfile for Mac/Linux and file for Windows/Linux to get appropriate line endings. You can’t do it just one way, you have to check your OS. Notice that Linux works both ways. (You also should encode/decode if using binfile) In

Re: tsNet mail message not formatting

2021-03-03 Thread Charles Warwick via use-livecode
Hi Rick, What code did you try to add the Bcc e-mail recipients? The tRecipient variable to the tsNetSmtpSync command needs to be one e-mail address per line of all the recipients for the e-mail (To, Cc and Bcc) and that is what is used to determine who the e-mail is sent to. The rest of

Re: tsNet mail message not formatting

2021-03-03 Thread Charles Warwick via use-livecode
Hi Matthias, I would not recommend sending e-mail this way. It will create a new SMTP connection and send the e-mail message separately for every single recipient. SMTP connections (and tsNetSMTP* commands) are designed to handle multiple recipients for one e-mail within a single SMTP

Re: sort container parameters

2021-03-03 Thread Bob Sneidar via use-livecode
We used to call that, “polishing poop” which, according to Mythbusters is a thing. No, really. Bob S On Mar 3, 2021, at 2:02 PM, Paul Dupuis via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Perhaps it is a compliment to Livecode/LCS that I EXPECTED it to work and was SURPRISED

Re: tsNet mail message not formatting

2021-03-03 Thread Bob Sneidar via use-livecode
That answers my question. Actually, I have no idea why I don’t ALWAYS use open file for binary. Bob S On Mar 3, 2021, at 2:36 PM, J. Landman Gay via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: On 3/3/21 1:51 PM, Brian Milby via use-livecode wrote: If you want to be the most

Re: tsNet mail message not formatting

2021-03-03 Thread Bob Sneidar via use-livecode
Thanks Matthias. Actually I use open file and write to file, but the results may be the same. Are you saying if use open binary file it will not translate the line endings? Bob S On Mar 3, 2021, at 1:51 PM, matthias rebbe via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: The

Re: sort container parameters

2021-03-03 Thread Ken Ray via use-livecode
Craig, It's because when you try to sort something, it's got to be a variable that's being sorted. So all of the examples you used put "toSort" into the statement to be "done" coming out compiled as: sort items of "A,C,T,B" ascending ... which won't work. You need to execute: do

Re: tsNet mail message not formatting

2021-03-03 Thread J. Landman Gay via use-livecode
On 3/3/21 1:51 PM, Brian Milby via use-livecode wrote: If you want to be the most accurate (clear for others reading code) you would use the LF constant instead of CR since that is how it actually evaluates. The only way to generate an actual CR within code is to use CRLF (which gets both)

Re: tsNet mail message not formatting

2021-03-03 Thread matthias rebbe via use-livecode
Rick, let's say pTO contains one or more email recipients, each in one line pCC contains one or mor cc recipients, each in one line pBCC contains one or more bcc recipients, each in one line tData contains the mime encoded message which includes all To and all CC recipients then you would do

Sample Stacks Using RSA + AES Encryption with sockets

2021-03-03 Thread Mark Clark via use-livecode
In case anyone has an interest, I’ve posted a simple framework for building client-server stuff with encrypted payload. Rationale “...I hope this simple outline will encourage others to explore using LC for client-server applications. LC is fun and provides a lot of power in a few lines of

Re: tsNet mail message not formatting

2021-03-03 Thread Rick Harrison via use-livecode
Ok, everything is fine on the format front now. I noticed the code takes about a minute to execute all the way through. (Must be a lot of background process have to run?) I tried Charles Warwick’s suggestion for Bcc, and it didn’t work. :-( If any of you want to take a crack at it, please let me

Re: sort container parameters

2021-03-03 Thread Paul Dupuis via use-livecode
I love xTalk. While I have written code in many dozens of languages over my career, I personally will likely never code in anything other than xTalk for as long as I continue to write code. That said, one of the "problems" of a programming language that is so intuitive is that I sometime

Re: tsNet mail message not formatting

2021-03-03 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > OK Now I am interested. I have a little utility that converts a Konica > Minolta address book to a Toshiba one. If I run the utility on a Mac, > the address book will not import into a Toshiba copier, but if I first > OPEN the csv file in WINDOWS, then save and close it,

Re: tsNet mail message not formatting

2021-03-03 Thread matthias rebbe via use-livecode
The problem is, put URL file: uses the line endings of the os where the it is executed, even if you have a container/variable with some text and line endings CRLF. As soon as you use put into URL "file:..." the line endings are converted to the default ones of the os where the code is

Re: tsNet mail message not formatting

2021-03-03 Thread Bob Sneidar via use-livecode
OK Now I am interested. I have a little utility that converts a Konica Minolta address book to a Toshiba one. If I run the utility on a Mac, the address book will not import into a Toshiba copier, but if I first OPEN the csv file in WINDOWS, then save and close it, suddenly it WILL import. I

Re: tsNet mail message not formatting

2021-03-03 Thread Richard Gaskin via use-livecode
Brian Milby wrote: > If you export as text, then you get what is expected on Win/Linux and > get CR on Mac (which is wrong in my opinion). Wrong, but at least consistently so. ;) As a dialect of HyperTalk, LC maintains the "CR = ASCII 13" rule because way back in '87 when HC was born that was

Re: tsNet mail message not formatting

2021-03-03 Thread Brian Milby via use-livecode
If you want to be the most accurate (clear for others reading code) you would use the LF constant instead of CR since that is how it actually evaluates. The only way to generate an actual CR within code is to use CRLF (which gets both) or use numtobyte(13). If you export as text, then you get

Re: tsNet mail message not formatting

2021-03-03 Thread Sean Cole (Pi) via use-livecode
You have to do this: replace cr with crlf in tBody Personal Btw: I find that using ‘return’ results in ugly code as a personal preference, so I avoid that and use cr. it’s just that the script renderer shows ‘return’ in yellow for it’s command equivalent because they still haven’t coded the

Re: sort container parameters

2021-03-03 Thread Craig Newman via use-livecode
I thought I was pretty clever at using “do”, often going down several levels, evaluating the whole way before trying to execute a single “do” statement. Neither of the last lines seem to work: on mouseup put "A,C,T,B" into toSort put "ascending" into sortDir get "sort items of" && quote &

Re: sort container parameters

2021-03-03 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: > I just discovered much to my dismay that you can not execute the > following: > > put "ascending" into tDirection > soft lines of tContainer tDirection international > > apparently neither the sort direction (ascending|descending) nor the > sort type

Re: tsNet mail message not formatting

2021-03-03 Thread matthias rebbe via use-livecode
Tried this script here on macOS put "this is line 1" &"this is line 2" into tBody put "xx" into tFrom put "xxx...@me.com" into tTo put "Email test" into tSubject put "" into tSettings["username"] put "" into tSettings["password"] put TRUE into tSettings["NO_REUSE"] put

RE: tsNet mail message not formatting

2021-03-03 Thread Ralph DiMola via use-livecode
There are 2 things(at least) that I can't believe in 2021 have standards. 1) Fonts and their names/faces 2) Carriage returns/new lines/line feed In LC(on windows) both cr and lf have a chartonum value of 10 Try a numtochar(13) or numtochar(13)(10) Ralph DiMola IT Director Evergreen Information

tsNet mail message not formatting

2021-03-03 Thread Rick Harrison via use-livecode
I want to send a message that has multiple lines. I have tried inserting cr and return and nothing works so far. The message ends up on a same line. Ideas? Thanks, Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: S3 API vs AWS

2021-03-03 Thread Tom Glod via use-livecode
Hi Mark, Ahhh sorry. I missed the fetch that this was 5 years ago. I heard from Heather today, and it sounds like they will make the effort of updating the aws library, and I'll get to help test it. Fingers crossed. Thanks, Tom On Mon, Mar 1, 2021 at 4:48 PM Tom Glod wrote: > Hi Mark,

Re: LiveCode hosting: terminal access?

2021-03-03 Thread BT via use-livecode
Ah, the perfect answer - thank you Heather. I’ll email support  Best, Keith > On 3 Mar 2021, at 10:58, Heather Laine via use-livecode > wrote: > > Just ask us. We'll install it for you. > > Best > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com >

Re: LiveCode hosting: terminal access?

2021-03-03 Thread Heather Laine via use-livecode
Just ask us. We'll install it for you. Best Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 3 Mar 2021, at 08:53, BT via use-livecode > wrote: > > Folks, > A quick question for those with LiveCode hosting / OnRev accounts... > > I want to investigate LC

LiveCode hosting: terminal access?

2021-03-03 Thread BT via use-livecode
Folks, A quick question for those with LiveCode hosting / OnRev accounts... I want to investigate LC server calling and processing data from Python scrapy.org scripts and was hoping to create a test-rig on my LiveCode hosted server instance. However, I don’t see any