Previous Thread
Next Thread
Print Thread
Email attachment logic #35568 06 Sep 22 03:17 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Hi,
In advance, let me say that I'm pretty sure this has has nothing to do with the new driver or any update.
I'm just searching for a cleaver tip where to search frown

Problem:
When sending several documents in sequence via email, the attachment in every email is always the first generated PDF. cry


I've checked all the steps in the process and can't figure out where the attachment is selected.
For each document is generated an output file with the filename like 200001.000, 200002.000 (doc number.000) which is sent to XCALL SPOOL
The last lines in the document are the PDFX email statements, like method, subject, email address an so on, but none is about the filename.
I've stopped the program and opened each file to confirm that are the right ones, exactly before the xcall spool, and they were.

This siad, any tip ?

Thanks a lot.


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: Email attachment logic [Re: Jorge Tavares - UmZero] #35569 06 Sep 22 05:54 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
I've done a TRACE for FOPENS and GDIPRT while printing two documents in a row, the image illustrates the two moments when theoutput file is processed by xcall spool.

The first one is for order 201255 and the output file is 201255.000 which is converted in 201255.PDF and attached to the email.
I can't see the exact commands responsible for that, but there is an FLOOKUP processing 201255.PDF and a REMOVING for 201255.000

On the second file, the FLOOKUP still is for 201255.PDF but the REMOVING was for 201256.000

Do I have any interfeerence on this?

Attached Files email_attach.png

Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: Email attachment logic [Re: Jorge Tavares - UmZero] #35570 06 Sep 22 07:29 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I think you've discovered a bug, but haven't yet been able to figure out why it doesn't happen all the time. (It's fairly common for one program to generate a lot of email messages, but perhaps not in combination with Method 5.) The bug is that the variable which is supposed to be holding the expected PDF output file name is being retained from an earlier setting. I'm tracking it down now...

Re: Email attachment logic [Re: Jorge Tavares - UmZero] #35571 06 Sep 22 07:57 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I think this (horrendous!) loophole is closed in 6.5.1720.3 ...

ash-6.5.1720.3-w32c-upd.zip

Re: Email attachment logic [Re: Jorge Tavares - UmZero] #35572 07 Sep 22 01:40 AM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Wow!!!
I'm glad it's not usual for users to email orders in batch and that we have found this in an easy customer :-)

Thanks for the update, but I'm not able to start A-Shell with it, it starts and immediately close.


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: Email attachment logic [Re: Jorge Tavares - UmZero] #35573 07 Sep 22 08:57 AM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Activating most of the traces, nothing relevant is logged when starting a session with a single "log opr:"

Code
07-Set-22 09:53:55 [UMZPOWER:01-1]<LOG:2a15> Malloc 768 bytes [ok] at 8cbb40, hdl #9
07-Set-22 09:53:55 [UMZPOWER:01-1]<LOG:2a15> getcondev: ntts=0, condev=UMZPOWER:01, options=0, nameset=1, iname=
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15>  getcondev: UMZPOWER:01 (ntts=0)
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> 07-Set-22 09:53:55 [TSKAAA,1,LOG,User,UMZPOWER:01,totjobs=28] License recount(2)
  Was: 1P/1L, Is: 0P/0L (free passes: 0 tty, 0 ip, 0 ch), GrpUsg:0,0,0

07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 768 bytes at 8cbb40, hdl #9, flags=1 JCBRBLD [OK]
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Removing file C:\temp\jobtbl.sys, rc=0
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Out: Nodes Remaining = 0P/0L, 103 reads, 372 writes, 0 kbd bytes
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Removing file C:\temp\QFLOCK.SYS, rc=0
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 7168 bytes at 85ada0, hdl #1, flags=2 IBF [OK]
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 3072 bytes at 855bc0, hdl #2, flags=2 QBUF [OK]
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 14336 bytes at 8b5258, hdl #8, flags=0 USR:LITMSG.USA [OK]
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 9216 bytes at 8c9738, hdl #7, flags=0 STRSTK [OK]
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 18432 bytes at 8afa10, hdl #6, flags=0 USR:LOG.LIT [OK]
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 51200000 bytes at 54ce020, hdl #5, flags=0 SYSBAS [OK]
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 8192 bytes at 8a2738, hdl #4, flags=0 SYSBAS [OK]
07-Set-22 09:53:56 [UMZPOWER:01-1]<LOG:2a15> Free 2048 bytes at 874680, hdl #3, flags=0 CALLSTACK [OK]


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: Email attachment logic [Re: Jorge Tavares - UmZero] #35575 07 Sep 22 02:46 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I've been juggling the SDK compatibility settings while investigating the MAPI problems (switching between various editions of Windows 10 and 8), which makes me wonder what OS version you're having this problem on.

Re: Email attachment logic [Re: Jorge Tavares - UmZero] #35576 07 Sep 22 03:56 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I've tried downloading the 6.5.1720.3c version from the link above, and have successfully run it on Windows 10, Windows 11, Windows 7, Server 2012 and Server 2019. So it doesn't seem like a case of an obviously defective version, although there still could be some particular issue with the OS version you're on. Unfortunately the traces don't help very much. You might try launching it with the -trace command line switch which will active several additional traces that might help pinpoint the issue.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3