Re: 28 character file name limit for binhex encode SMTP_attachments?

2020-04-23 Thread Kirk Brooks via 4D_Tech
Um - ooops!
The place on Miyako's youTube I was referring to is at 21:49.

Sorry.

On Thu, Apr 23, 2020 at 12:02 PM Kirk Brooks  wrote:

> If you haven't already take a look at Miyako's presentation:
> https://www.youtube.com/watch?v=uEtkh8ePDj0
> Specifically he talks about the new transporter starting at 27:30
>
> On Thu, Apr 23, 2020 at 11:56 AM Randy Jaynes via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> Yes.
>>
>> This is a long-standing problem with 4D internet commands. It goes back
>> to at least v6. I know it’s still present in v13 for sure, and you are
>> confirming it’s in v16.4R4.
>>
>> If I remember, I think it may also be limited to 256 total characters in
>> the full path on Windows (maybe Mac too), so you have to be careful of
>> files that are buried several folders deep.
>>
>> This is one of the issues I’m hoping the SMTP Transporter in v18 does not
>> have a problem with.
>>
>> Randy
>>
>> --
>> Randy Jaynes
>> Senior Programmer and Customer Support
>>
>> http://printpoint.com • 845.687.3741 • PrintPoint, Inc • 57 Ludlow Lane
>> • Palisades, NY 10964
>> Please send all email contacts to supp...@printpoint.com
>>
>>
>>
>> > On Apr 23, 2020, at 2:41 PM, Joe Dombroski via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>> >
>> > I have been having occasional -43 protocol not supported errors when I
>> > attach files to an email. I finally dug in and found that I must keep
>> the
>> > file name under 29 characters.  Anyone else notice this? I am on 16.4r4.
>> >
>> > Joe Dombroski
>> > Brandywine Electronics, LTD
>>
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
>
>
>
> --
> Kirk Brooks
> San Francisco, CA
> ==
>


-- 
Kirk Brooks
San Francisco, CA
==
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 28 character file name limit for binhex encode SMTP_attachments?

2020-04-23 Thread Randy Jaynes via 4D_Tech
Oh, yeah…that too!

Randy

--
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com • 845.687.3741 • PrintPoint, Inc • 57 Ludlow Lane • 
Palisades, NY 10964 
Please send all email contacts to supp...@printpoint.com



> On Apr 23, 2020, at 2:49 PM, Randy Kaempen via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> That has been around a while.  You also have to worry about the ‘.b64’ added 
> at the end

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 28 character file name limit for binhex encode SMTP_attachments?

2020-04-23 Thread Kirk Brooks via 4D_Tech
If you haven't already take a look at Miyako's presentation:
https://www.youtube.com/watch?v=uEtkh8ePDj0
Specifically he talks about the new transporter starting at 27:30

On Thu, Apr 23, 2020 at 11:56 AM Randy Jaynes via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Yes.
>
> This is a long-standing problem with 4D internet commands. It goes back to
> at least v6. I know it’s still present in v13 for sure, and you are
> confirming it’s in v16.4R4.
>
> If I remember, I think it may also be limited to 256 total characters in
> the full path on Windows (maybe Mac too), so you have to be careful of
> files that are buried several folders deep.
>
> This is one of the issues I’m hoping the SMTP Transporter in v18 does not
> have a problem with.
>
> Randy
>
> --
> Randy Jaynes
> Senior Programmer and Customer Support
>
> http://printpoint.com • 845.687.3741 • PrintPoint, Inc • 57 Ludlow Lane •
> Palisades, NY 10964
> Please send all email contacts to supp...@printpoint.com
>
>
>
> > On Apr 23, 2020, at 2:41 PM, Joe Dombroski via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > I have been having occasional -43 protocol not supported errors when I
> > attach files to an email. I finally dug in and found that I must keep the
> > file name under 29 characters.  Anyone else notice this? I am on 16.4r4.
> >
> > Joe Dombroski
> > Brandywine Electronics, LTD
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
==
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 28 character file name limit for binhex encode SMTP_attachments?

2020-04-23 Thread Randy Jaynes via 4D_Tech
Yes.

This is a long-standing problem with 4D internet commands. It goes back to at 
least v6. I know it’s still present in v13 for sure, and you are confirming 
it’s in v16.4R4.

If I remember, I think it may also be limited to 256 total characters in the 
full path on Windows (maybe Mac too), so you have to be careful of files that 
are buried several folders deep. 

This is one of the issues I’m hoping the SMTP Transporter in v18 does not have 
a problem with.

Randy

--
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com • 845.687.3741 • PrintPoint, Inc • 57 Ludlow Lane • 
Palisades, NY 10964 
Please send all email contacts to supp...@printpoint.com



> On Apr 23, 2020, at 2:41 PM, Joe Dombroski via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have been having occasional -43 protocol not supported errors when I
> attach files to an email. I finally dug in and found that I must keep the
> file name under 29 characters.  Anyone else notice this? I am on 16.4r4.
> 
> Joe Dombroski
> Brandywine Electronics, LTD

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 28 character file name limit for binhex encode SMTP_attachments?

2020-04-23 Thread Randy Kaempen via 4D_Tech
Joe,

> On Apr 23, 2020, at 1:41 PM, Joe Dombroski via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have been having occasional -43 protocol not supported errors when I
> attach files to an email. I finally dug in and found that I must keep the
> file name under 29 characters.  Anyone else notice this? I am on 16.4r4.


That has been around a while.  You also have to worry about the ‘.b64’ added at 
the end.  Here’s how I handle it.

$err:=IT_Encode 
($AttachmentArrayPtr->{$x};vEncodedAttachment;$EncodingNumber)  //<<  Encode 
the file here  3/6/07
  //
If (($Err=-37) | ($Err=-1411) | ($Err=10083))  
// File name too long  9/30/11
  //
$Path:=""  // 5/17/10
$FileName:=$AttachmentArrayPtr->{$x}  
// 5/17/10
$Extension:=""  // 5/17/10
  //
Repeat   // 5/17/10
$y:=Position(Folder 
separator;$FileName)  // 2/22/19
If ($y#0)  // 5/17/10

$Path:=$Path+Substring($FileName;1;$y)  // 5/17/10

$FileName:=Substring($FileName;$y+1)  // 5/17/10
End if   // 5/17/10
Until ($y=0)  // 5/17/10
  //
$y:=Length($FileName)  // 5/17/10
While ($y>=2)  // 5/17/10
If 
(Substring($FileName;$y;1)=".")  // Found dot  5/17/10

$Extension:=Substring($FileName;$y)  // 5/17/10

$FileName:=Substring($FileName;1;$y-1)  // 5/17/10
$y:=0  // 5/17/10
Else   // 5/17/10
$y:=$y-1  // 5/17/10
End if   // 5/17/10
End while   // 5/17/10
  //
$FileName:=Substring($FileName;1;22)  
// Can olnly have 22 characters in file name to leave room for encoded file 
extension  5/17/10
$ShortName:=$Path+$FileName+$Extension  
// 5/17/10
  //
If (Test path name($ShortName)=1)  // 
Document already exists  5/13/09
DELETE DOCUMENT($ShortName)  // 
Delete document  5/13/09
End if   // 5/13/09
  //
MOVE 
DOCUMENT($AttachmentArrayPtr->{$x};$ShortName)  // Make name smaller  10/2/08
$AttachmentArrayPtr->{$x}:=$ShortName  
// 10/2/08
  //
$err:=IT_Encode 
($AttachmentArrayPtr->{$x};vEncodedAttachment;$EncodingNumber)  // Re-encode 
the file  10/2/08
  //
DELETE DOCUMENT($ShortName)  // Delete 
document  6/20/11
  //
End if   // 10/2/08
 

Randy Kaempen
Intellex Corporation

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**