🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1650

Re: Net Master POP3 Question

#1650
From: Hans Galema
Date: Sat, 16 Dec 2006 14:36
38 lines
2222 bytes
LarryJ wrote:

> How to I set the function NMPOP31->GetMailMessage( MsgNum ); so it will 
> ignore attachments? Right now the email attachments are automatically saved 
> to the hard drive which I do not want.

It is not clear to me what you exactly mean with ignoring them. The message
contains the attachments so they are there.

Could you tell if they are contained in NMPOP31->MailMessage->Body->Text;?

And where are they saved now ? There is a property NMPOP31->AttachFilePath;
What are you doing with it?

And then there is (from the help):
<quote>
Insert the following code into NMPOP31's OnDecodeStart event:

void __fastcall TForm1::NMPOP31DecodeStart(AnsiString &FileName);
{
   AnsiString S;
   S = FileName;
   if (InputQuery("Save File Attachment", "Filename?", S))
     FileName = S;
}

When a file attachment begins decoding, the OnDecodeStart
event is called. In this example, the InputQuery function
is used to retrieve a file name. If the Ok button is clicked,
the FileName parameter is changed to the new value entered
in the input box.
</quote>

Do you use this event? And did you try to specify an empty filename?

And about your former post: could you use the hint?

Hans.
Technical Details
Message-ID: <4584049e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45840082$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,63a808666c71f13a
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 16 Dec 2006 15:36:03 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Net Master POP3 Question
References: <45840082$1@newsgroups.borland.com>
In-Reply-To: <45840082$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <4584049e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1166279838 145.98.201.248 (16 Dec 2006 06:37:18 -0800)
Lines: 38
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail