Re: [ACFUG Discuss] Another CFMAIL Problem

2008-11-08 Thread Howard Fore
Why not go ahead and use the job number, but when you're about to write the
PDF to disk first check to see if there's already one with that name
(initials and job number). If you find one then delete it, then create the
new one. Is there some audit reason to keep the earlier version?

On Fri, Nov 7, 2008 at 3:48 PM, Peyton Todd [EMAIL PROTECTED]wrote:

 One solution I thought of is simply to use the job number as the name of
 the PDF. This would guarantee that each next one built is different. But
 then it occurred to me that if the user reports a job, then realizes he made
 a mistake, corrects it, and sends the report again for the same job, there's
 a danger that the earlier mistaken version would get sent instead.


-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



Re: [ACFUG Discuss] Another CFMAIL Problem

2008-11-08 Thread cheesewz
Sounds like my original response. Check for the file first...
Sent via BlackBerry by ATT

-Original Message-
From: Howard Fore [EMAIL PROTECTED]

Date: Sat, 8 Nov 2008 09:19:22 
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another CFMAIL Problem


Why not go ahead and use the job number, but when you're about to write the
PDF to disk first check to see if there's already one with that name
(initials and job number). If you find one then delete it, then create the
new one. Is there some audit reason to keep the earlier version?

On Fri, Nov 7, 2008 at 3:48 PM, Peyton Todd [EMAIL PROTECTED]wrote:

 One solution I thought of is simply to use the job number as the name of
 the PDF. This would guarantee that each next one built is different. But
 then it occurred to me that if the user reports a job, then realizes he made
 a mistake, corrects it, and sends the report again for the same job, there's
 a danger that the earlier mistaken version would get sent instead.


-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-


N�r��yb�X��f�j���鮇���mq

Re: [ACFUG Discuss] Another CFMAIL Problem

2008-11-08 Thread Dean H. Saxe
I still don't get what it is you think is caching the file.  Why not  
just delete the PDF as soon as you have emailed it?


-dhs

--
Dean H. Saxe
[EMAIL PROTECTED]


On Nov 8, 2008, at 9:52 AM, [EMAIL PROTECTED] wrote:


Sounds like my original response. Check for the file first...
Sent via BlackBerry by ATT

From: Howard Fore [EMAIL PROTECTED]
Date: Sat, 8 Nov 2008 09:19:22 -0500
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another CFMAIL Problem
Why not go ahead and use the job number, but when you're about to  
write the PDF to disk first check to see if there's already one with  
that name (initials and job number). If you find one then delete it,  
then create the new one. Is there some audit reason to keep the  
earlier version?


On Fri, Nov 7, 2008 at 3:48 PM, Peyton Todd  
[EMAIL PROTECTED] wrote:
One solution I thought of is simply to use the job number as the  
name of the PDF. This would guarantee that each next one built is  
different. But then it occurred to me that if the user reports a  
job, then realizes he made a mistake, corrects it, and sends the  
report again for the same job, there's a danger that the earlier  
mistaken version would get sent instead.


--
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff  
Atwood


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-


Re: [ACFUG Discuss] Another CFMAIL Problem

2008-11-08 Thread Peyton Todd
It's just that caching is the only explanation I can think of, and if that's the reason, then deleting the earlier version of the file would do no good if the cached version is what's being sent. On the other hand, I have not verified that indeed the second version is indeed being created, so more research is necessary...-Original Message-
From: "Dean H. Saxe" <[EMAIL PROTECTED]>
Sent: Nov 8, 2008 10:09 AM
To: "discussion@acfug.org" 
Subject: Re: [ACFUG Discuss] Another CFMAIL Problem

I still don't get what it is you think is caching the file. Why not just delete the PDF as soon as you have emailed it?-dhs--Dean H. Saxe[EMAIL PROTECTED]On Nov 8, 2008, at 9:52 AM, [EMAIL PROTECTED] wrote: Sounds like my original response. Check for the file first...Sent via BlackBerry by ATTFrom:  "Howard Fore" [EMAIL PROTECTED]Date: Sat, 8 Nov 2008 09:19:22 -0500To: discussion@acfug.orgSubject: Re: [ACFUG Discuss] Another CFMAIL Problem  Why not go ahead and use the job number, but when you're about to write the PDF to disk first check to see if there's already one with that name (initials and job number). If you find one then delete it, then create the new one. Is there some audit reason to keep the earlier version?On Fri, Nov 7, 2008 at 3:48 PM, Peyton Todd [EMAIL PROTECTED] wrote: One solution I thought of is simply to use the job number as the name of the PDF. This would guarantee that each next one built is different. But then it occurred to me that if the user reports a job, then realizes he made a mistake, corrects it, and sends the report again for the same job, there's a danger that the earlier mistaken version would get sent instead.-- Howard Fore, [EMAIL PROTECTED]"The universe tends toward maximum irony. Don't push it." - Jeff Atwood   -To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserformFor more info, see http://www.acfug.org/mailinglistsArchive @ http://www.mail-archive.com/discussion%40acfug.org/List hosted by FusionLink-   


-To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserformFor more info, see http://www.acfug.org/mailinglistsArchive @ http://www.mail-archive.com/discussion%40acfug.org/List hosted by http://www.fusionlink.com-




Re: [ACFUG Discuss] Another CFMAIL Problem

2008-11-08 Thread Douglas Knudsen
caching would be at the webserver level with respect to this.  My guess is
the email gets sent prior to the new PDF being completed.  Emails are queued
and file saves involve file system work-time, so things get a bit
asynchronous.  Even with unique file naming schems, this can be a issue.
Try the unique naming approach, the possible error would involve the email
engine not being able to find the file when the email is to be sent.  If
this doesn't work reliably, I'd look at inline attachments.  This latter
approach would put the PDF in the email itself as a attachment wiht the
added bonus of not needing to be placed in the webroot.


Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


On Sat, Nov 8, 2008 at 10:45 AM, Peyton Todd [EMAIL PROTECTED]wrote:

 It's just that caching is the only explanation I can think of, and if
 that's the reason, then deleting the earlier version of the file would do no
 good if the cached version is what's being sent. On the other hand, I have
 not verified that indeed the second version is indeed being created, so more
 research is necessary...


 -Original Message-
 From: Dean H. Saxe
 Sent: Nov 8, 2008 10:09 AM
 To: discussion@acfug.org
 Subject: Re: [ACFUG Discuss] Another CFMAIL Problem

 I still don't get what it is you think is caching the file.  Why not just
 delete the PDF as soon as you have emailed it?

 -dhs

 --
 Dean H. Saxe
 [EMAIL PROTECTED]


 On Nov 8, 2008, at 9:52 AM, [EMAIL PROTECTED] wrote:

 Sounds like my original response. Check for the file first...

 Sent via BlackBerry by ATT

 --
 *From*: Howard Fore [EMAIL PROTECTED]
 *Date*: Sat, 8 Nov 2008 09:19:22 -0500
 *To*: discussion@acfug.org
 *Subject*: Re: [ACFUG Discuss] Another CFMAIL Problem

 Why not go ahead and use the job number, but when you're about to write the
 PDF to disk first check to see if there's already one with that name
 (initials and job number). If you find one then delete it, then create the
 new one. Is there some audit reason to keep the earlier version?

 On Fri, Nov 7, 2008 at 3:48 PM, Peyton Todd  [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:

 One solution I thought of is simply to use the job number as the name of
 the PDF. This would guarantee that each next one built is different. But
 then it occurred to me that if the user reports a job, then realizes he made
 a mistake, corrects it, and sends the report again for the same job, there's
 a danger that the earlier mistaken version would get sent instead.


 --
 Howard Fore, [EMAIL PROTECTED][EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood

 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink http://www.fusionlink.com
 -

 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?falogin.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -




-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



Re: [ACFUG Discuss] Another CFMAIL Problem

2008-11-08 Thread Ajas Mohammed
First things first. What Dean suggested is correct. You first need to look
security wise. Its not a wise idea to leave things sitting there in the open
and waiting for something to happen. Anyway, thats your choice how you
decide to plan your application.

Now to the actual issue, do you have any database access? If yes, for
example, if  its sql server, you could have identity column which is unique
and which could be tied to your client and job number. so simple query and u
could get the pdf file which could be just identitycolumnnumber.pdf or
client+identitycolumn.pdf or client+identitycolumn+jobno.pdf. In the same
table, you could have pdf_content column which saves pdf content, so this
way, you can store your pdf content and create the pdf on the fly at any
time.

In your application, you could have batch_pdf folder and store pdfs there,
and find file (based of database identity column or job no or client name
etc) and attach it to the mail.

By storing pdf content, you dont need to to store pdfs and if you do save,
you could delete and not worry, since you have content. This is always good
for audit purposes.

Hope that helps.

Ajas Mohammed.

On Sat, Nov 8, 2008 at 5:20 PM, Douglas Knudsen [EMAIL PROTECTED]wrote:

 caching would be at the webserver level with respect to this.  My guess is
 the email gets sent prior to the new PDF being completed.  Emails are queued
 and file saves involve file system work-time, so things get a bit
 asynchronous.  Even with unique file naming schems, this can be a issue.
 Try the unique naming approach, the possible error would involve the email
 engine not being able to find the file when the email is to be sent.  If
 this doesn't work reliably, I'd look at inline attachments.  This latter
 approach would put the PDF in the email itself as a attachment wiht the
 added bonus of not needing to be placed in the webroot.


 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?



 On Sat, Nov 8, 2008 at 10:45 AM, Peyton Todd [EMAIL PROTECTED]wrote:

 It's just that caching is the only explanation I can think of, and if
 that's the reason, then deleting the earlier version of the file would do no
 good if the cached version is what's being sent. On the other hand, I have
 not verified that indeed the second version is indeed being created, so more
 research is necessary...


 -Original Message-
 From: Dean H. Saxe
 Sent: Nov 8, 2008 10:09 AM
 To: discussion@acfug.org
 Subject: Re: [ACFUG Discuss] Another CFMAIL Problem

 I still don't get what it is you think is caching the file.  Why not just
 delete the PDF as soon as you have emailed it?

 -dhs

 --
 Dean H. Saxe
 [EMAIL PROTECTED]


 On Nov 8, 2008, at 9:52 AM, [EMAIL PROTECTED] wrote:

 Sounds like my original response. Check for the file first...

 Sent via BlackBerry by ATT

 --
 *From*: Howard Fore [EMAIL PROTECTED]
 *Date*: Sat, 8 Nov 2008 09:19:22 -0500
 *To*: discussion@acfug.org
 *Subject*: Re: [ACFUG Discuss] Another CFMAIL Problem

 Why not go ahead and use the job number, but when you're about to write
 the PDF to disk first check to see if there's already one with that name
 (initials and job number). If you find one then delete it, then create the
 new one. Is there some audit reason to keep the earlier version?

 On Fri, Nov 7, 2008 at 3:48 PM, Peyton Todd  [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:

 One solution I thought of is simply to use the job number as the name of
 the PDF. This would guarantee that each next one built is different. But
 then it occurred to me that if the user reports a job, then realizes he made
 a mistake, corrects it, and sends the report again for the same job, there's
 a danger that the earlier mistaken version would get sent instead.


 --
 Howard Fore, [EMAIL PROTECTED][EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood

 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink http://www.fusionlink.com
 -

 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?falogin.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -



 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 

Re: [ACFUG Discuss] Another CFMAIL Problem

2008-11-08 Thread Dean H. Saxe
What things get asynchronous?  If what you say is true, email would  
regularly go out without complete attachments. I think you're way off  
on this one.


-dhs

--
Dean H. Saxe
[EMAIL PROTECTED]


On Nov 8, 2008, at 5:20 PM, Douglas Knudsen  
[EMAIL PROTECTED] wrote:


caching would be at the webserver level with respect to this.  My  
guess is the email gets sent prior to the new PDF being completed.   
Emails are queued and file saves involve file system work-time, so  
things get a bit asynchronous.  Even with unique file naming schems,  
this can be a issue.  Try the unique naming approach, the possible  
error would involve the email engine not being able to find the file  
when the email is to be sent.  If this doesn't work reliably, I'd  
look at inline attachments.  This latter approach would put the PDF  
in the email itself as a attachment wiht the added bonus of not  
needing to be placed in the webroot.



Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


On Sat, Nov 8, 2008 at 10:45 AM, Peyton Todd [EMAIL PROTECTED] 
 wrote:
It's just that caching is the only explanation I can think of, and  
if that's the reason, then deleting the earlier version of the file  
would do no good if the cached version is what's being sent. On the  
other hand, I have not verified that indeed the second version is  
indeed being created, so more research is necessary...



-Original Message-
From: Dean H. Saxe
Sent: Nov 8, 2008 10:09 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another CFMAIL Problem

I still don't get what it is you think is caching the file.  Why not  
just delete the PDF as soon as you have emailed it?


-dhs

--
Dean H. Saxe
[EMAIL PROTECTED]


On Nov 8, 2008, at 9:52 AM, [EMAIL PROTECTED] wrote:


Sounds like my original response. Check for the file first...
Sent via BlackBerry by ATT

From: Howard Fore [EMAIL PROTECTED]
Date: Sat, 8 Nov 2008 09:19:22 -0500
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another CFMAIL Problem
Why not go ahead and use the job number, but when you're about to  
write the PDF to disk first check to see if there's already one  
with that name (initials and job number). If you find one then  
delete it, then create the new one. Is there some audit reason to  
keep the earlier version?


On Fri, Nov 7, 2008 at 3:48 PM, Peyton Todd [EMAIL PROTECTED] 
 wrote:
One solution I thought of is simply to use the job number as the  
name of the PDF. This would guarantee that each next one built is  
different. But then it occurred to me that if the user reports a  
job, then realizes he made a mistake, corrects it, and sends the  
report again for the same job, there's a danger that the earlier  
mistaken version would get sent instead.


--
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff  
Atwood


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?falogin.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-


Re: [ACFUG Discuss] Another CFMAIL Problem

2008-11-08 Thread Howard Fore
I think what he means is that if a recorder creates a file and sends it,
then corrects it and sends again, the recipient could open the first one and
think it is the most current version when it isn't. It wasn't identified as
an issue by Peyton but I could see how it could cause someone an issue. My
response to that would be to not mail the PDF as an attachment but rather
email a link to the user. The link would either lead to a real PDF, stored
on disk, or to a CFM file that generates the PDF when it is requested. That
would get rid of any caching issue as the file requested is always the
latest version.
On Sat, Nov 8, 2008 at 6:19 PM, Dean H. Saxe [EMAIL PROTECTED]wrote:

 What things get asynchronous?  If what you say is true, email would
 regularly go out without complete attachments. I think you're way off on
 this one.

-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-