Re: Sending email attachments, zipping files, Invalid

View: New views
7 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Sending email attachments, zipping files, Invalid

by Craig Drown-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 5 Nov 2009, at 1:45 PM, Miyako wrote:

> alternatively you could call
>
> SET ENVIRONMENT VARIABLE
> with the option
> _4D_OPTION_CURRENT_DIRECTORY
> to perform something similar to the cd command,
> but that is once you get the command in shape.
The above doesn't work with 11.4 on OS 10.6.x
Filed and acknowledged bug that we are optimistic will be fixed in 11.5
Cheers,
Craig
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

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

Parent Message unknown Re: Sending email attachments, zipping files, Invalid

by B. Perkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
> Okay I think I have a clue...  If I call:
>
> C_TEXT($d)
> $d:=""
> $e:=SMTP_New ($SMTP_ID)
> $e:=SMTP_Attachment ($SMTP_ID;$d;2;0)  `I select the file  via the  
> dialog... the var $d is updated with the selected pathname.....
>
> Now, $d contains:
>
> Lagniappe:NSS:Attachments:jwh3cjal_79880:OrderTransmitLog_110#16351F.zip
>
> While the actual pathname selected is:
>
> Lagniappe:NSS:Attachments:jwh3cjal_79880
> :OrderTransmitLog_110409_1044_PM.zip
>
> So, can you tell what's going on with these path names????
>  

Robert,

When I saw the truncation error, it raised a flag:

The truncated value is OrderTransmitLog_110#16351F.zip is 31 characters.

Does 4D v11 still barf on (what it considers to be) long file names?
IIRC, the 31 character limit was a vestige of the old Mac OS (9 and below).

That doesn't solve your problem but might point you in the right
direction. I don't have an immediate solution.

-- Brad Perkins

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

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

Re: Sending email attachments, zipping files, Invalid

by B. Perkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ignore my last post. I later saw Miyako's reply about the length limits
on IT_Encode, IT_Decode etc. The 31 code point link of the resulting
file was a coincidence.

-- Brad

Brad Perkins wrote:

>> Okay I think I have a clue...  If I call:
>>
>> C_TEXT($d)
>> $d:=""
>> $e:=SMTP_New ($SMTP_ID)
>> $e:=SMTP_Attachment ($SMTP_ID;$d;2;0)  `I select the file  via the  
>> dialog... the var $d is updated with the selected pathname.....
>>
>> Now, $d contains:
>>
>> Lagniappe:NSS:Attachments:jwh3cjal_79880:OrderTransmitLog_110#16351F.zip
>>
>> While the actual pathname selected is:
>>
>> Lagniappe:NSS:Attachments:jwh3cjal_79880
>> :OrderTransmitLog_110409_1044_PM.zip
>>
>> So, can you tell what's going on with these path names????
>>  
>>    
>
> Robert,
>
> When I saw the truncation error, it raised a flag:
>
> The truncated value is OrderTransmitLog_110#16351F.zip is 31 characters.
>
> Does 4D v11 still barf on (what it considers to be) long file names?
> IIRC, the 31 character limit was a vestige of the old Mac OS (9 and below).
>
> That doesn't solve your problem but might point you in the right
> direction. I don't have an immediate solution.
>
> -- Brad Perkins
>
>
>  

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

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

Re: Sending email attachments, zipping files, Invalid

by Kevin LaTona-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



It appears the smtp_attachment call can deal with up to 31 chars file  
names.

If using the iT_encode to pre encode the attached file it can deal  
with 27 char file names. ( as it adds a .b64 to the path)

I wonder when 4D will bring the IC plugin up to date for long paths?

-Kevin
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

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

Re: Sending email attachments, zipping files, Invalid

by David Conley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

And SSL emails :)

Regards,

David Conley
By The Book, Inc.
815-234-7530
http://www.bythebook.com




On Nov 5, 2009, at 10:36 AM, Kevin LaTona wrote:
>
> I wonder when 4D will bring the IC plugin up to date for long paths?
>
> -Kevin

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

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

Re: Sending email attachments, zipping files, Invalid

by MIYAKO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

yes, sorry,
I can confirm the code stopped working on Mac OS X 10.6.

miyako

On 2009/11/05, at 23:18, Craig Drown wrote:

>
> On 5 Nov 2009, at 1:45 PM, Miyako wrote:
>
>> alternatively you could call
>>
>> SET ENVIRONMENT VARIABLE
>> with the option
>> _4D_OPTION_CURRENT_DIRECTORY
>> to perform something similar to the cd command,
>> but that is once you get the command in shape.
> The above doesn't work with 11.4 on OS 10.6.x
> Filed and acknowledged bug that we are optimistic will be fixed in  
> 11.5
> Cheers,
> Craig
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

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

Re: Sending email attachments, zipping files, Invalid

by SwampDaddy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thankfully, this does not appear to be an issue...  it seems the  
attachment issue was related to a long pathname.

R

On Nov 5, 2009, at 4:42 PM, miyako wrote:

> yes, sorry,
> I can confirm the code stopped working on Mac OS X 10.6.
>
> miyako
>
> On 2009/11/05, at 23:18, Craig Drown wrote:
>
>>
>> On 5 Nov 2009, at 1:45 PM, Miyako wrote:
>>
>>> alternatively you could call
>>>
>>> SET ENVIRONMENT VARIABLE
>>> with the option
>>> _4D_OPTION_CURRENT_DIRECTORY
>>> to perform something similar to the cd command,
>>> but that is once you get the command in shape.
>> The above doesn't work with 11.4 on OS 10.6.x
>> Filed and acknowledged bug that we are optimistic will be fixed in  
>> 11.5
>

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

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