Unable to create mail rule

I'm attempting to create a mail rule via SOAP, and while the rule seems like it is created without error, I can't see it when accessing the user's mailbox.

Here's the request XML:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:m="http://schemas.novell.com/2005/01/GroupWise/methods">
<soap:Header>
<session>FCF9mKfiSC424N3A</session>
</soap:Header>
<soap:Body>
<m:createItemRequest>
<t:item type="Rule">
<t:name>Test1</t:name>
<t:execution>New</t:execution>
<t:enabled>1</t:enabled>
<t:types>Appointment Mail Note PhoneMessage Task</t:types>
<t:source>received</t:source>
<t:actions>
<t:action>
<t:type>Forward</t:type>
<t:item>
<t:subject>Forwarded email</t:subject>
<t:subjectPrefix>Fwd: </t:subjectPrefix>
<t:distribution>
<t:recipients>
<t:recipient>
<t:email>**PERSONAL INFORMATION REMOVED**</t:email>
<t:distType>TO</t:distType>
<t:recipType>User</t:recipType>
</t:recipient>
</t:recipients>
</t:distribution>
</t:item>
</t:action>
</t:actions>
</t:item>
</m:createItemRequest>
</soap:Body>
</soap:Envelope>

The response looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body>
<gwm:createItemResponse xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods" xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types">
<gwm:id>5FDCA106.Domain.PO.100.1743772.1.6D.1@10</gwm:id>
<gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:createItemResponse>
</soap:Body>
</soap:Envelope>

If I look in the PO log file, I can see the SOAP command for this user:

12:31:02 0AE0 SOAP command:[createItemRequest] requested from a.b.c.d User session(Test User1)
12:31:02 0AE0 SOAP command:[createItemRequest] requested from a.b.c.d User session(Test User1) Elapsed Time (0.278)Secs

But if I log in as Test User1 and view Tools -> Rules, I see nothing.

Two questions:

1. Is the rule actually being created?

2. Is there some kind of object browser I can use to look for item 5FDCA106.Domain.PO.100.1743772.1.6D.1@10?

Tags:

Parents
  • Sorry, I won't be into work until after the start of the new year. I can look at it then. Are you saying the getRuleListRequest does not return the newly created rule?

    Thanks.

  • Verified Answer

    I figured it out. The users for whom I was created the rules had previously been deleted and recreated with the same usernames. It appears that the rules actually were being created successfully, they were just associated with the deleted users instead of the active ones. I created some new test users and found the same code to work just fine.

    I'd still like to know if there is some kind of object browsing tool that would let me search for 5FDCA106.Domain.PO.100.1743772.1.6D.1@10 and find the user to which it belongs. There was no obvious way for me to locate the problem in this case.

  • There is not such a tool. The only concept we have is the ability to use a trusted application. With a trusted application name and key, you can log in any user without knowing that user's password. You can also get the list of users on a particular post office. With the list of users, you can loop through the users and access each user and access whatever you need.

    Other than that, there is no way to globally search over the post office. The database files are based per user and not per post post office (for the most part). There is the concept where message / email files can be shared. (I can explain that, if you need.)

    Preston

  • To crate a rule in Outlook  2016, one just can go to the File and then Manage Rules & Alerts and from their one just can add up a rule and add apply the following changes. To know more about this topic, you just can check out my paper writer. I can assure you that your problem will be solved

  • Great article!! Always enjoy reading your work. Thanks for sharing. We provide dissertation writing solutions for your task problems. Assignment Help Services is available 24/7 for dissertation help and gives you an instant solution.

Reply Children
No Data