CFPOP attachments saved in subdirectories

2010-06-21 Thread Jonathan Lane

Hi all,

I've got an app that receives weekly analytics reports from Google Analytics 
and posts them to a site.  The app is processing a couple dozen of these 
reports per week and the vast majority of them work just fine, but every week I 
have trouble with two.

The reports are sent from Google Analytics as PDF attachments to a mail 
message.  These messages are retrieved using CFPOP, and the attachments are 
saved to a temporary directory on my server.  The attachments are then uploaded 
to a site (and some other stuff gets added to a database etc...).  Once the 
PDFs are uploaded to the site, the attachments are deleted from my server.  
Every week, the PDF attachments for two of these reports end up saved in 
sub-directories and then my attempt to delete the original attachment fails 
(CFFILE action="delete").

Anyone have any idea why CFPOP would be creating and saving these attachments 
into subdirectories?  They're always named after the file -- so for example, if 
the report is called 
Analytics_www.example.com_20100614-20100620_(Weekly_Analytics_Report).pdf, the 
directory it's saved into is called Analytics_www.example.com/.  

It's CF 8 running on an Ubuntu install. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334691
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF sending data to a local printer?

2004-05-10 Thread Jonathan Lane
You could take the form output, write it to a text file using CFFILE.  If you've got an Mac OS X box handy, have it dump the files into a folder on there, and attach an Applescript to the folder using folder actions to print all files to the printer (and then delete them).

Some people are unfortunate enough not to have access to an OS X box though (can you tell what I use?).  In that case, you could probably accomplish something similar using a cron job (*nix) or some Scheduled task (Win).

If you're feeling really ambitious, you could even write out an RTF or Postscript file instead of just a plain text file.

Jon

>It's been requested that I create this form that when gets submitted
>sends the content to a printer ( in the persons place of business ). 
>
>I've never done anything like that before. Was wondering if it was even possible.
>
>Thanks
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




re. CFLDAP Binding

2003-01-23 Thread Jonathan Lane
Thanks for your reply Sean.  I'm still getting the "Inappropriate authentication" 
error.  Is there anything that needs to be configured on the server for this to work?

Any other ideas?  This is turning into a huge thorn in my side.

Jon
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




CFLDAP Binding

2003-01-22 Thread Jonathan Lane
Hi all,

Does anyone know of a way to get CFLDAP to "bind" to an LDAP server.  
My IT department uses a Netscape Enterprise LDAP server to store 
username/password information.  The way they handle authentication is 
to have a user bind to the LDAP server.  If they're able to, then 
they're authenticated.

I've tried using the username and password attributes in CFLDAP to 
connect, but I always get an authentication error.  Is this what the 
username/password attributes are for?  Does anyone have any experience 
doing this?

Thanks in advance,

Jon
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: CF-Talk: Digest every 6 hours

2003-01-07 Thread Jonathan Lane
It's sort of a cheesy workaround, but I have used a "server-checker"  
application to perform the same type of function as CFSCHEDULE on a  
server where I didn't have access to the admin.  These programs usually  
will call a certain URL on a set schedule (usually to make sure that  
it's available).  If you're on a Mac, the best one I've found is called  
"Whistle Blower" (check http://www.versiontracker.com/ for the latest  
version).

My Windows/Linux brethren swear by one called "Big Brother".  I don't  
have a URL for it though, I'm sure you can find it on Google.

Jon

> Subject: more on "gr ... cfschedule
> From: Dave Watts <[EMAIL PROTECTED]>
> Date: Tue, 7 Jan 2003 00:16:49 -0500
> Thread:  
> http://www.houseoffusion.com/cf_lists/ 
> index.cfm?method=messages&threadid=20270&forumid=4#102431
>
>> To recap ... I haven't been able to get cfschedule to
>> actually execute any code. It runs, according the logs,
>> but nothing happens.
>>
>> I've tried setting up tasks both via the tag and via the
>> administrator.
>>
>> Somebody suggested that maybe it might take 24 hours for
>> a schedule to kick in properly. Also, somebody suggested
>> I set timeouts (I did).
>>
>> I let the scheduled tasks "run" over the weekend. Each went
>> off without a hitch. But the code produced no results.
>>
>> double grrr
>>
>> I'm flumoxed and have no idea where to go from here.
>
> I'd recommend that you consider using your operating system's scheduler
> instead. Write a batch file that invokes a command-line HTTP client,  
> and
> schedule the batch file.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> phone: 202-797-5496
> fax: 202-797-5444

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CF-Talk: Digest every 6 hours

2003-01-06 Thread Jonathan Lane
Hi Jesse,

Try un-checking the option "Refresh Local Files Automatically".  That  
way, Dreamweaver won't scan through all of your local files every time  
you start the application.

It means that you will have to hit the "refresh" button in the site  
window anytime you want to update your file listing.

Jon

> Subject: DWMX and mapped drives driving me crazy
> From: Jesse Houwing <[EMAIL PROTECTED]>
> Date: Mon, 06 Jan 2003 01:54:32 +0100
> Thread:  
> http://www.houseoffusion.com/cf_lists/ 
> index.cfm?method=messages&threadid=20225&forumid=4#102154
>
> ok,
>
> I have multiple servers that I have to edit content on. They have ICMP
> disabled which makes them bloody slow when accessing directly through
> \\servername\share. So I map the drives, but thsi is still slow as
> dreamweaver wants to scan the contents of all the folders open in the
> folder browser every time it get's the focus. So I created sites for
> each site, which makes access fast again few!
>
> But now the problem. each time I start Dreamweaver it says it can't  
> find
> the root of several sites and I have to click through the pop-ups it
> gives me. This is because I don't have the drives mapped at all times,
> there are just too many drives that way.
>
> So is there an option somewhere I might have missed? Is there a way to
> tell DW not to check the root paths of my sites?
>
> please...
>
> Jesse

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4