lionfish Absent Member.
Absent Member.
1368 views

Message searching

Hi, Preston

I have question on message searching.

I sent out a message to my self, then when I was searching for the message by subject, I found two items, one is sent, the other one is recieved.

My question is that I did restrict the container to "Mail Box", why was the sent item still found? Do I have to specify "source = sent" or "source = recieved" in the filter?
Labels (1)
0 Likes
5 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Message searching

The sent item is created in the Mailbox folder. Unless you
specifically move the sent item, it will be found in the
Mailbox folder and the Sent Items folder. Normally the sent
items are hidden when you get the items in the Mailbox
folder. You usually have to explicitly ask for them by
filtering on source isOf sent. What is you filter and
view when you get the sent item?

Preston

>>> On Wednesday, May 27, 2009 at 4:16 PM,

lionfish<lionfish@no-mx.forums.novell.com> wrote:

> Hi, Preston
>
> I have question on message searching.
>
> I sent out a message to my self, then when I was searching for the
> message by subject, I found two items, one is sent, the other one is
> recieved.
>
> My question is that I did restrict the container to "Mail Box", why was
> the sent item still found? Do I have to specify "source = sent" or
> "source = recieved" in the filter?

0 Likes
lionfish Absent Member.
Absent Member.

Re: Message searching

The source filter and the view I am using are listed in following code. Also I set the container as "Mail Box" when creating getItemsRequest, expected to search the Inbox only.
I thought the sent items are in "Sent Items" folder. I am little confused, are the sent item in Mailbox and that in Sent Items folder the same object? or there are two objects, but the sent item in Mailbox is hidden.

                    GroupWise.FilterEntry entry = new FilterEntry();
entry.field = "source";
entry.value = "draft personal received sent"
entry.op = GroupWise.FilterOp.isOf;

getItemsRequest.view = "default recipientStatus message all message/RTF peek subject source attachment attachments";


Preston Stephenson;1798396 wrote:
The sent item is created in the Mailbox folder. Unless you
specifically move the sent item, it will be found in the
Mailbox folder and the Sent Items folder. Normally the sent
items are hidden when you get the items in the Mailbox
folder. You usually have to explicitly ask for them by
filtering on source isOf sent. What is you filter and
view when you get the sent item?

Preston
0 Likes
Highlighted
lionfish Absent Member.
Absent Member.

Re: Message searching

Actually I was trying to find the "received" messages in this case.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Message searching

The sent items are created in the Mailbox folder. Unless you
specifically move the sent item, it will be found in the
Mailbox folder. If you put "sent" in the filter of the source
field, it will return sent items. If you want just received
and personal items, the entry.value would be:
"personal received".
If you don't filter on source, or don't have "sent" in the
filter of the source field, you won't get the sent items
returned.

The Sent Items folder is a containment folder and a query
folder. If you get the items in the Sent Items folder, it
will return the sent items in the Mailbox, Calendar and
Sent Items folder.

The Calendar folder is a containment folder and a query
folder. If you get the items in the Calendar folder, it will
return all calendar items in all folders of the user.

Preston

>>> On Thursday, May 28, 2009 at 8:06 AM,

lionfish<lionfish@no-mx.forums.novell.com> wrote:

> The source filter and the view I am using are listed in following code.
> Also I set the container as "Mail Box" when creating getItemsRequest,
> expected to search the Inbox only.
> I thought the sent items are in "Sent Items" folder. I am little
> confused, are the sent item in Mailbox and that in Sent Items folder the
> same object? or there are two objects, but the sent item in Mailbox is
> hidden.
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
> GroupWise.FilterEntry entry = new FilterEntry();
> entry.field = "source";
> entry.value = "draft personal received sent"
> entry.op = GroupWise.FilterOp.isOf;
>
> getItemsRequest.view = "default recipientStatus message all message/RTF


> peek subject source attachment attachments";
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
>
> Preston Stephenson;1798396 Wrote:
>> The sent item is created in the Mailbox folder. Unless you
>> specifically move the sent item, it will be found in the
>> Mailbox folder and the Sent Items folder. Normally the sent
>> items are hidden when you get the items in the Mailbox
>> folder. You usually have to explicitly ask for them by
>> filtering on source isOf sent. What is you filter and
>> view when you get the sent item?
>>
>> Preston
>>

0 Likes
lionfish Absent Member.
Absent Member.

Re: Message searching

Thanks, it is very helpful.
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.