Anonymous_User Absent Member.
Absent Member.

Re: Folder Confusion

That's absolutely the reason, why I try to avoid building my own MIME.
There is already code inside the POA to archive this (IMAP !!), I only
need a way to fetch the messages through IMAP only by using the GrouWise
ID. Currently fetching a message neans that you have to select the right
folder (which causes the confusion, because there is no one-to-one
relationshipt to the GWClient/SOAP folders) and the fetch the message by ID.
An IMAP extension, which allows getting an message without needing to
select the folder first would be absolutely enough for my purposes.

Michael Bell schrieb:
> Rainer Backes wrote:
>> I use Synapse as the foundation of all networking and this library
>> also has a specialized object (class) to create a MIME-message. I'll
>> give it a try (or should I say: I have to 🙂 )
>>
>> Thanks
>>
>>
>> Tommy Mikkelsen schrieb:
>>> Hehehe...Fooled me there 😉
>>>
>>> Well....Grap all attachments, and build a mime would be the way I would
>>> go then...
>>>
>>> Might be able to use this one to build the mime, but since I never used
>>> FreePascal, I don't know....
>>>
>>> http://www.indyproject.org/Sockets/fpc/index.EN.aspx
>>>
>>>

>>

> Where I see create mime from scratch could suck is
>
> multipart/related and compound picture stuff. You are (sort of) given
> this info in soap, but it looks tricky...
>


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Folder Confusion

Hi,

for everyone who cares: I think I've got a solution:
when entering a users mailbox, I use XGWDISPMODE ON and LIST "/" "*"
(IMAP) to get all folders including their GW-Record ID (the first part
of the ID).
The I use GetFolderlist to get the folders-list with SOAP. I go through
the list and store the IDs of Mailbox, SentItems and Calendar (I also
store the junkmailbox-ID, that's why I have to use getfolderlist).
Finding the right folder is now quite easy:
if the items folderID (property 'container', shortend at '@') is the
mailbox-id and the items source is 'sent' than set the folderID to the
sentItems-id.
the same for the Calendar folder.

with the folderId I now look up the IMAP Folder Name in the table I
build at the beginning.

Then I do a SELECTRO, Search with XGW-RecordID and a Fetch to get the
Message.

That saves me from the nightmare of building a Mime out of a deeply
nested message (imagine an internal message, written as HTML, with some
attachments that have been forwarded and replied to (old style) some
times ).

Any comments ?




Rainer Backes schrieb:
> Hi,
>
> I'm still with my archiving application (see some posts before). Now
> I've got a new problem:
>
> I scan the mailboxes for new Items using SOAP (the read cursor calls,
> with retention TS). Because I have to send the items with SMTP to the
> archiving box (it's an appliance called EMA), I fetch the mails etc.
> using IMAP, then they come in the right format and I only have to
> forward them. Now the problem:
>
> When everything is (and was) English, there are no problems with
> foldernames etc, except that the / (root folder) in SOAP is dispayed in
> Mailbox and Sent Items in the GW Client and as INBOX and Sent Items in
> IMAP.
> It now seems to me that depending on the GroupWise Version (and POA
> Language) the Mailbox was created and the Version and Language the first
> Client that connected to that box, the names in the Client, visible via
> SOAP and visible via IMAP differ completely.
> Because I have to select the folder in IMAP first (before getting the
> mail using the GUID), I need the correct IMAP folder name, otherwise I
> can't get the message.
>
> Thanks a lot for your help
>
> Rainer
>
>


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Folder Confusion


Well done.
🙂

Ray.

"Rainer Backes" <rbackesno@spambond.de> schrieb im Newsbeitrag
news:spvdk.7264$g35.3801@kovat.provo.novell.com...
> Hi,
>
> for everyone who cares: I think I've got a solution:
> when entering a users mailbox, I use XGWDISPMODE ON and LIST "/" "*"
> (IMAP) to get all folders including their GW-Record ID (the first part of
> the ID).
> The I use GetFolderlist to get the folders-list with SOAP. I go through
> the list and store the IDs of Mailbox, SentItems and Calendar (I also
> store the junkmailbox-ID, that's why I have to use getfolderlist).
> Finding the right folder is now quite easy:
> if the items folderID (property 'container', shortend at '@') is the
> mailbox-id and the items source is 'sent' than set the folderID to the
> sentItems-id.
> the same for the Calendar folder.
>
> with the folderId I now look up the IMAP Folder Name in the table I build
> at the beginning.
>
> Then I do a SELECTRO, Search with XGW-RecordID and a Fetch to get the
> Message.
>
> That saves me from the nightmare of building a Mime out of a deeply nested
> message (imagine an internal message, written as HTML, with some
> attachments that have been forwarded and replied to (old style) some
> times ).
>
> Any comments ?
>
>
>
>
> Rainer Backes schrieb:
>> Hi,
>>
>> I'm still with my archiving application (see some posts before). Now I've
>> got a new problem:
>>
>> I scan the mailboxes for new Items using SOAP (the read cursor calls,
>> with retention TS). Because I have to send the items with SMTP to the
>> archiving box (it's an appliance called EMA), I fetch the mails etc.
>> using IMAP, then they come in the right format and I only have to forward
>> them. Now the problem:
>>
>> When everything is (and was) English, there are no problems with
>> foldernames etc, except that the / (root folder) in SOAP is dispayed in
>> Mailbox and Sent Items in the GW Client and as INBOX and Sent Items in
>> IMAP.
>> It now seems to me that depending on the GroupWise Version (and POA
>> Language) the Mailbox was created and the Version and Language the first
>> Client that connected to that box, the names in the Client, visible via
>> SOAP and visible via IMAP differ completely.
>> Because I have to select the folder in IMAP first (before getting the
>> mail using the GUID), I need the correct IMAP folder name, otherwise I
>> can't get the message.
>>
>> Thanks a lot for your help
>>
>> Rainer
>>
>>

>



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.