Problem saving attachment using TIDPop3 component (cannot save attachment)

Posted on 2004-11-25
Last Modified: 2010-04-04

I adapted a program to run as a service that retrieves mails using a TIDPop3 component, save attached excel sheets, and do some processing on the contained data. I tested it on a W2K workstation and WinXP PC, without a problem. But when I installed it on W2K server PC, I got the error message that the attachment cannot be saved. The component can retrieve the email message without a problem, but fails to store the attached excel sheet.
First I thought about security settings, the service uses the Local System account. (Note: the service is not interactive with the desktop and has no dependencies). But then the services keeps a log of the performed actions, and the logfile is stored in the same directory where the attachments have to be stored. (There is enough diskspace available of course. I even tried to save the file on a network drive, but that didn't work either.)
Is there a way to get more diagnostic info from the component itself, f.i. what the actual reason is why the file cannot be saved? And does anybody have idea why in a specific case the saving of an attachment wouldn't work.

Thanks in advance,
Question by:ecomaster
    LVL 2

    Expert Comment

    maybe it saves under a temp name then renames it. if so make sure the user has both modify and delete rights.


    Author Comment

    Indeed, the TIDAttachment component (from the same Indy suit) first stores the file in a temp directory (I don't know which one yet) and the copies it. The service uses the Local System account, how can one check what rights this account has? Actually I thought this 'account' could read/write in all the local drives/directories.

    LVL 2

    Accepted Solution

    to find the directory try going to
    then running this, this monitors all file activity on the computer, it should let you see where it is trying to save

    Author Comment

    Hi, sorry for the late response. The tools on the site were very helpful to find out which temp directory is used.
    It seemed to have been a problem with user rights, cause I reinstalled the service using an administrator account and haven't been able to reproduce the error since.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now