Highlighted
M_M1 Absent Member.
Absent Member.
2016 views

VB6 How can I save the Mail via sourcecode?

Is it possible to save the E-Mailmessage?

Is there a function to call the saveAs function form Groupwise? -> I would like to save the email messages as a *.txt, *.eml, *.rtf file. And if it is possible as a *.html file.

Or must I write a function by myself to solve that task?
Labels (1)
0 Likes
4 Replies
Bob-O-Rama
Visitor.

Re: VB6 How can I save the Mail via sourcecode?

M_M;2171616 wrote:

Or must I write a function by myself to solve that task?


Yes. You will need to iterate through all the items in a given message looking for the pieces you want using the QueryInterface() methods appropriate to the type, and then persist them in the format you choose. I am not aware of a pre-built version of this. Perhaps someone has built this, but I don't believe it is in the SDK. On the other hand, this is comparatively easy to do.

It may be easier to use SOAP... and you have the benefit of already having something XML like to deal with. I don't know what sort of app your are trying to construct, so I don't know if that is relevant.

-- Bob
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: VB6 How can I save the Mail via sourcecode?

On 1/30/2012 7:56 AM, Bob-O-Rama wrote:
>
> M_M;2171616 Wrote:
>>
>> Or must I write a function by myself to solve that task?

>
> Yes. You will need to iterate through all the items in a given
> message looking for the pieces you want using the QueryInterface()
> methods appropriate to the type, and then persist them in the format you
> choose. I am not aware of a pre-built version of this. Perhaps
> someone has built this, but I don't believe it is in the SDK. On the
> other hand, this is comparatively easy to do.
>
> It may be easier to use SOAP... and you have the benefit of already
> having something XML like to deal with. I don't know what sort of app
> your are trying to construct, so I don't know if that is relevant.
>
> -- Bob
>
>

SOAP indeed has a way to say "Give me the MIME representation please".
I don't think objectAPI does. TokenAPI MIGHT.
0 Likes
M_M1 Absent Member.
Absent Member.

Re: VB6 How can I save the Mail via sourcecode?

ok, thank you for answering
0 Likes
ukdtom Absent Member.
Absent Member.

Re: VB6 How can I save the Mail via sourcecode?

Correct:


> If running the latest version of GW7.0.2HP, you can now both import
> and export a mime
>
>
> The token to import a mime is:
> RetrieveMime
> "Filename" -- name of the file
> "BoxType" one of
> "Inbox|" - 6
> "Outbox" 7
> "Draft" 666
> "Personal 198
> "FolderName" optional folder name to save it in
> "CreateFolder" boolean optional, if true create the folder if not
> there
>
> The token to save the message as a mime is:
> ItemSaveMessage
>
> "MessageID" - message to save or 00 for the current one
> "Filename" -- where to save it
> "FileFormat" one of
> "AnsiText" 106
> "Mime" 900
> "RichText" 899
> "WordPerfect60" 269


--
Tommy Mikkelsen
IT Quality A/S, Denmark
Novell Support Forums SYSOP / NKP

Sorry, but no support through email
Please join http://www.open-horizons.net


Michael Bell wrote:

> On 1/30/2012 7:56 AM, Bob-O-Rama wrote:
> >
> > M_M;2171616 Wrote:
> > >
> > > Or must I write a function by myself to solve that task?

> >
> > Yes. You will need to iterate through all the items in a given
> > message looking for the pieces you want using the QueryInterface()
> > methods appropriate to the type, and then persist them in the
> > format you choose. I am not aware of a pre-built version of
> > this. Perhaps someone has built this, but I don't believe it is
> > in the SDK. On the other hand, this is comparatively easy to do.
> >
> > It may be easier to use SOAP... and you have the benefit of already
> > having something XML like to deal with. I don't know what sort of
> > app your are trying to construct, so I don't know if that is
> > relevant.
> >
> > -- Bob
> >
> >

> SOAP indeed has a way to say "Give me the MIME representation please".
> I don't think objectAPI does. TokenAPI MIGHT.


Best Regards Tommy Mikkelsen Denmark Please Report back any success or failure, That way we all learn Sorry, but no support through email "I hate bugs".......Tommy Lee Jones, MIB
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.