Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Generating issues from emails - configuration options

emails

Greetings,

I have setup the generation of issues from emails using the config below, but I have the following questions:

a) Is there any documentation on the configuration options?

b) Is there anyway the userid can be deduced from the sending email if the address of the email sender is associated with an existing user?

c) Can you populate custom fields from the email?

Any help would be greatly appreciated.

Cheers Noel

 

 

           SubjectLikeRegExp=""
            SubjectNOTLikeRegExp=""
            ProjectID="3"
            UserID="28"
            ComponentID="21"
            IssueType="4"
            IssuePriority="13"
            IssueSeverity="12"
            Visiblity="1"
            VisiblityMemberType="2"
            RiskLevel="1"
            DebugFile = "C:\Program Files\CounterSoft\Gemini Scheduler Service\GeminiPOP3log.txt"
            DebugMode = "false"

NoelGourdie
· 1
NoelGourdie
Replies (6)
helpful
0
not helpful

a) We are working a documnetation for the 3.5 release of Gemini, which is out very soon. Did you have any specific questions?

b) This is possible by changing the source code. Commercial license holders can download the source code and do this quite easily.

c) Same as above. You will have to change the code to do this.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Greetings,

Thanks for the info.

I assume that it is the following section of MailboxProcess.cs, that needs to be changed, 

     // Add the issue to Gemini via web services
     try
     {
      IssueEN issue=new IssueEN();
      issue.ProjectID=mailbox.ProjectID;
      issue.ReportedBy=mailbox.UserID;

but how do I go about assigning a userid to issue.ReportedBy based on the senders email?

Cheers Noel


NoelGourdie
· 1
NoelGourdie
helpful
0
not helpful

You will need to get all users (UserEN array) and check the email address against the collection.

Use the service maanger's authrosiation services GetAllUsers() mehtod:

UserEN[] users = serviceManager.AuthorisationServices.GetAllUsers();


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

As this code has now moved in 3.5 from the scheduler source code to CounterSoft.Gemini.Mail I've had to purchase a source code licence.

How do I create a new ServiceManager instance in order to use the AuthorisationServices.GetAllUsers() mehtod?

I've added the references I think I need (ConterSoft.Gemini.Services, Microsoft.Web.Services3 and system.Web.Services) and I'm using:

ServiceManager sm = new ServiceManager("http://gemini");
UserEN[] users = sm.AuthorisationServices.GetAllUsers();

I'm getting an error in the application log (error listed below).

Am I using the wrong URL?

The http://gemini URL works fine if I use it in the sample app or test harness.

Is there any documentation to accompany the source code?

Error:

Error starting Gemini Scheduler [3]

Description: System.Web.Services - The request failed with HTTP status 404: Not Found. - at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at AuthorisationServices.GetAllUsers() at CounterSoft.Gemini.Mail.Mailbox.MailboxProcess.CheckEmails(MailboxEN mailbox) at CounterSoft.Gemini.Scheduler.MailboxProcessor.MailboxProcess.CheckEmails() at CounterSoft.Gemini.Scheduler.MailboxProcessor.MailboxProcess.ProcessOne() at CounterSoft.Gemini.Scheduler.SchedulerService.OnStart(String[] args) For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


MarkB
· 1
MarkB
helpful
0
not helpful

Ok partly answering my own question here but the URL should be http://gemini/webservices. I assume this is correct?

I now get the following error:

Event Type: Error
Event Source: Error starting Gemini Scheduler [3]
Event Category: None
Event ID: 0
Date:  15/07/2009
Time:  23:21:16
User:  N/A
Computer: Gemini
Description:
System.Web.Services - Microsoft.Web.Services3.Security.SecurityFault: The security token could not be authenticated or authorized
   at CounterSoft.Gemini.Business.WebServices.BaseWS.IsWSECompliant()
   at Gemini.AuthWS.GetAllUsers() -    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at AuthorisationServices.GetAllUsers()
   at CounterSoft.Gemini.Mail.Mailbox.MailboxProcess.CheckEmails(MailboxEN mailbox)
   at CounterSoft.Gemini.Scheduler.MailboxProcessor.MailboxProcess.CheckEmails()
   at CounterSoft.Gemini.Scheduler.MailboxProcessor.MailboxProcess.ProcessOne()
   at CounterSoft.Gemini.Scheduler.SchedulerService.OnStart(String[] args)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


MarkB
· 1
MarkB
helpful
0
not helpful

You need to set the username and password for the web service manager:

Call the SetAuthenticationTokenOnAllServices method on it.


Saar Cohen
· 5000
Saar Cohen