Janek Walkenhorst | 2 Feb 2009 15:31
Picon
Favicon

Patch: "subscriber notification"

Hello!

To allow users (or groups of users by using a shared email address) to receive 
notifications about actions on all tickets in a set of queues we have created 
the following patch:

"subscriber_notification.patch"

It adds four new user-settings:
 * Answer notification
 * Note notification
 * Phone call notification
 * Owner changed notification

These settings enable the user to receive a notification when the 
corresponding event arises on a ticket in one of the users watched queues. 
(As determined by the setting "my queues")

The patch was created for OTRS version 2.3.2, but it applies cleanly to OTRS 
versions 2.3.2, 2.3.3, and 2.3.4.

Best regards
Janek Walkenhorst
--

-- 
Janek Walkenhorst
Software Engineering Apprentice

Univention GmbH
Linux for your business
Mary-Somerville-Str.1
(Continue reading)

Peter Beckman | 2 Feb 2009 16:37
Favicon
Gravatar

Sending Same Email to Multiple Users: API?

I need to send about 20 people the same email, and have OTRS open 20
tickets associated with the correct CustomerID as my database.  I can pass
OTRS the CustomerID and email address as well as Name without issue.

I'm pretty certain that the Email-Ticket web interface will only send one
message to one customer, or one message to multiple BCC customers, but will
only open one ticket.

I read the API, and after more perusal, it looks like what I need is
Ticket::Article::ArticleSend().  I'll just whip up a perl script and test
away.  So this email is now less of a question and more suggestion and
confirmation of what I think is correct.

I will admit that it would be useful to have some pointers in the Developer
docs for the API on what to use for the most basic of things, or even have
a few examples.

Suggestions:
     1. In TicketCreate(), in the synopsis, maybe suggest "to send an email,
        use Kernel::System::Ticket::Article::ArticleSend()" and link it to
        that page.  Suggest some other common tasks in OTRS that can be
        accessed easily via the API.

     2. In Kernel::System::Email, in the synopsis, suggest what that API
        call is used for, and "If you want to send an email (also called an
        Article in OTRS) to be included in a new or existing Ticket, see
        ArticleSend()."  That's the second place I looked to do this.

I'm going to create a little command-line script that will take you through
the steps of creating an email that will be send to multiple customers.
(Continue reading)

Michiel Beijen | 3 Feb 2009 11:47
Picon
Favicon
Gravatar

Secure SMTP mailer backend

Good afternoon,

My name is Michiel Beijen and I am a software consultant from The Netherlands. I have been working with service management software since 2002 now. I used to work at a company that sold pretty expensive enterprise-class service management software, BMC Remedy ITSM, as an implementation consultant. Since about a year now I'm a freelance consultant. My field is business information management, which covers subjects such as change management, demand management, requirements specification, but also testing and training. I also do (ITIL based) process management, -implementation and -optimization at customers.

In my opinion that OTRS is quite a powerful tool which already has a lot of the capabilities the commercial tool which I used to work with before had. Out of curiosity, and also because I think OTRS has great potential and I may be able to implement it at some customer in the future, I am now toying around with OTRS for quite some time, and answering questions on the mailing list here and there.

I have created a new mail backend for OTRS to be able to communicate to servers that only allow 'Secure' SMTP; that is, SMTP servers that only allow SSL or TLS connections. An example of such a server is the server for Google Apps users, smtp.google.com. I use Google Apps for Domains for the email of my company.

In bugzilla there are a couple of bugs that seem to be related to the lack of support for 'secure SMTP': 3041, 3363, 3394 and 3612.

The implementation is pretty straight forward. It uses the perl module Net::SMTP::SSL which is just a CPAN module. The module has the exact same implementation as Net::SMTP; so I found out I only had to copy and rename the Kernel/System/Email/SMTP.pm file and modify it a little bit to get it working. I have tested it and for me, it works. I have included the new file, and also patches to Framework.xml with slightly better wording (English only!) and I've updated otrs.checkModules to also search for Net::SMTP::SSL and Authen::SASL which are both needed to talk to SMTP hosts such as smtp.google.com

I'm not a Perl wizard like you guys are, I'm not that technical - usually I would be the person communicating between the users and the developers. That's why I do not have an idea what should go in the $Id: tag in the document. Can you look at that?
And also, can you please look at my modifications and consider them for inclusion?

I have also created an enhancement request, bug 3630 in Bugzilla, for this issue with the files attached.

I would love to hear any comments, thoughts or other remarks on this small patch, either via this list or offline, my contact details are below.

In the future I might submit some more work. As I said, since I'm not a developer, these will more likely be updates and enhancements to the documentation or things like that.
I already noticed the documentation is published on CVS. Should I send updates to the CVS documentation to this list?

Kind regards,
--
Michiel Beijen
Software Consultant
+31 6 - 457 42 418
Bee Free IT + http://beefreeit.nl

### Eclipse Workspace Patch 1.0
#P otrs
Index: Kernel/Config/Files/Framework.xml
===================================================================
RCS file: /home/cvs/otrs/Kernel/Config/Files/Framework.xml,v
retrieving revision 1.193
diff -u -r1.193 Framework.xml
--- Kernel/Config/Files/Framework.xml	13 Jan 2009 12:02:42 -0000	1.193
+++ Kernel/Config/Files/Framework.xml	2 Feb 2009 13:03:38 -0000
 <at>  <at>  -409,7 +409,7  <at>  <at> 
         </Setting>
     </ConfigItem>
     <ConfigItem Name="SendmailModule" Required="1" Valid="1">
-        <Description Lang="en">Module to send emails. "Sendmail" directly uses the sendmail binary of your
operating system. "SMTP" uses a specified (external) mailserver. "DoNotSendEmail" is not sending
emails and useful for test systems.</Description>
+        <Description Lang="en">Module to send emails. "Sendmail" directly uses the sendmail binary of your
operating system. "SMTP" uses a specified (external) mailserver. "SecureSMTP" uses SSL or TLS
encryption to connect to your external mailserver, which is required by some servers. "DoNotSendEmail"
is not sending emails and useful for test systems.</Description>
         <Description Lang="de">Modul zum Versenden von Emails. "Sendmail" verwendet das sendmail-Binary
Ihres Betriebssystems. "SMTP" versendet die Nachrichten ber einen externen Mailserver.
"DoNotSendEmail" versendet keine Email und ist ntzlich um in Test-System den Emailversans zu deaktivieren.</Description>
         <Group>Framework</Group>
         <SubGroup>Core::Sendmail</SubGroup>
 <at>  <at>  -427,7 +427,7  <at>  <at> 
         </Setting>
     </ConfigItem>
     <ConfigItem Name="SendmailModule::Host" Required="1" Valid="1">
-        <Description Lang="en">If "SMTP" was selected for SendmailModule you have to specify the mailhost that
sends out the mails.</Description>
+        <Description Lang="en">If you selected "SMTP" or "SecureSMTP" as SendmailModule, you have to specify
the mailhost that sends out the mails.</Description>
         <Description Lang="de">Wenn Sie fr SendmailModule "SMTP" ausgwhlt haben, mssen Sie hier den Mailserver
angeben, der zum Versenden von Nachrichten genutzt werden soll.</Description>
         <Group>Framework</Group>
         <SubGroup>Core::Sendmail</SubGroup>
 <at>  <at>  -436,7 +436,7  <at>  <at> 
         </Setting>
     </ConfigItem>
     <ConfigItem Name="SendmailModule::Port" Required="0" Valid="0">
-        <Description Lang="en">If "SMTP" was selected for SendmailModule specify the port where your
mailserver is listening for incoming connections.</Description>
+        <Description Lang="en">If you selected "SMTP" or "SecureSMTP" as SendmailModule, specify the port
where your mailserver is listening for incoming connections. If you're using "SMTP" this will default to
port 25. If you're using "SecureSMTP" you most probably will need to specify port 465. </Description>
         <Description Lang="de">Wenn Sie fr SendmailModule den Wert "SMTP" ausgewhlt haben, knnen Sie hier den
Port angeben, auf dem Ihr Mailserver Mails entgegennimmt.</Description>
         <Group>Framework</Group>
         <SubGroup>Core::Sendmail</SubGroup>
 <at>  <at>  -445,7 +445,7  <at>  <at> 
         </Setting>
     </ConfigItem>
     <ConfigItem Name="SendmailModule::AuthUser" Required="0" Valid="0">
-        <Description Lang="en">If "SMTP" was selected for SendmailModule and you need to authenticate to your
mailserver, specify the username.</Description>
+        <Description Lang="en">If you selected "SMTP" or "SecureSMTP" as SendmailModule and you need to
authenticate to your mailserver, specify the username.</Description>
         <Description Lang="de">Wenn Sie fr SendmailModule den Wert "SMTP" ausgewhlt haben und sich an Ihrem
Mailserver anmelden mssen, geben Sie hier bitte den Benutzernamen fr die Authentifizierung an.</Description>
         <Group>Framework</Group>
         <SubGroup>Core::Sendmail</SubGroup>
 <at>  <at>  -454,7 +454,7  <at>  <at> 
         </Setting>
     </ConfigItem>
     <ConfigItem Name="SendmailModule::AuthPassword" Required="0" Valid="0">
-        <Description Lang="en">If "SMTP" was selected for SendmailModule and you need to authenticate to your
mailserver, specify the password.</Description>
+        <Description Lang="en">If you selected "SMTP" or "SecureSMTP" as SendmailModule and you need to
authenticate to your mailserver, specify the password.</Description>
         <Description Lang="de">Wenn Sie fr SendmailModule den Wert "SMTP" ausgewhlt haben und sich an Ihrem
Mailserver anmelden mssen, geben Sie hier das Passwort fr die Authentifizierung an.</Description>
         <Group>Framework</Group>
         <SubGroup>Core::Sendmail</SubGroup>
Index: bin/otrs.checkModules
===================================================================
RCS file: /home/cvs/otrs/bin/otrs.checkModules,v
retrieving revision 1.25
diff -u -r1.25 otrs.checkModules
--- bin/otrs.checkModules	24 Jul 2008 15:57:50 -0000	1.25
+++ bin/otrs.checkModules	2 Feb 2009 13:04:16 -0000
 <at>  <at>  -124,7 +124,12  <at>  <at> 
             {
                 Module   => 'Authen::SASL',
                 Required => 0,
-                Comment  => 'for SMTP backend',
+                Comment  => 'for authentication to your SMTP server',
+            },
+            {
+                Module   => 'Net::SMTP::SSL',
+                Required => 0,
+                Comment  => 'for secure connections to your SMTP server',
             },
         ],
     },
Attachment (SecureSMTP.pm): application/x-perl, 4804 bytes
Attachment (otrs.checkModules): application/octet-stream, 6824 bytes
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
ml@bortal.de | 26 Feb 2009 08:53
Picon

Customer as manditory field - where to look for update customerid

Hello List,

we would like to have a customer assigned to a ticket at all time.

I asked the German mailing list, but i seem to be unklucky:
   http://lists.otrs.org/pipermail/otrs-de/2009-February/010884.html

Now i started to patch OTRS to include the Fields. I simply added the 
Fields to the form. Now i simply need to know how to save the CustomerID 
field.

E.g. when submitting AgentTicketCompose, where do i have to look in the 
code to add/update the CustomerID Field in the ticket?

Thanks,
Mario
---------------------------------------------------------------------
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Martin Edenhofer | 27 Feb 2009 16:04

Re: Customer as manditory field - where to look for update customerid

Hi Maric,

On Feb 26, 2009, at 08:53 , ml <at> bortal.de wrote:

> we would like to have a customer assigned to a ticket at all time.
>
> I asked the German mailing list, but i seem to be unklucky:
>  http://lists.otrs.org/pipermail/otrs-de/2009-February/010884.html
>
> Now i started to patch OTRS to include the Fields. I simply added  
> the Fields to the form. Now i simply need to know how to save the  
> CustomerID field.
>
> E.g. when submitting AgentTicketCompose, where do i have to look in  
> the code to add/update the CustomerID Field in the ticket?

For Ticket creation you neet to look into Kernel/Output/HTML/Standard/ 
AgentTicketPhone.dtl

-=> Just see for the "Subject" field, you can do this 1:1 for the  
CustomerID field.

  -Martin

-- 
((otrs)) :: OTRS AG :: Europaring 4 :: D - 94315 Straubing
   Fon: +49 (0) 9421 56818 0 :: Fax: +49 (0) 9421 56818 18
     http://www.otrs.com/ :: Communication with success!

Address of record: Bad Homburg
Local Court: Bad Homburg, HRB 10751
Tax number: 003/240/97505

Chairman of the Supervisory Board: Burchard Steinbild
Executive Board: André Mindermann (CEO), Martin Edenhofer

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

---------------------------------------------------------------------
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Martin Edenhofer | 27 Feb 2009 16:10

Re: Patch: "subscriber notification" // OTRS 2.4

Hi Janek,

a really good patch! :)

I like it very much. :)

I added it to OTRS 2.4 but only with changed preferences setting. So  
the agent can select "Notify about watched Tickets", to get  
notifications like a owner or responsible to keep the possible  
settings simple as possible.

Many thanks Janek!

Greetings,

  -Martin

On Feb 2, 2009, at 15:31 , Janek Walkenhorst wrote:

> Hello!
>
> To allow users (or groups of users by using a shared email address)  
> to receive
> notifications about actions on all tickets in a set of queues we  
> have created
> the following patch:
>
> "subscriber_notification.patch"
>
> It adds four new user-settings:
> * Answer notification
> * Note notification
> * Phone call notification
> * Owner changed notification
>
> These settings enable the user to receive a notification when the
> corresponding event arises on a ticket in one of the users watched  
> queues.
> (As determined by the setting "my queues")
>
> The patch was created for OTRS version 2.3.2, but it applies cleanly  
> to OTRS
> versions 2.3.2, 2.3.3, and 2.3.4.
>
> Best regards
> Janek Walkenhorst
> -- 
> Janek Walkenhorst
> Software Engineering Apprentice
>
> Univention GmbH
> Linux for your business
> Mary-Somerville-Str.1
> 28359 Bremen
> Tel. : +49 421 22232-0
> Fax : +49 421 22232-99
>
> walkenhorst <at> univention.de
> http://www.univention.de
>
> Geschäftsführer: Peter H. Ganten
> HRB 20755 Amtsgericht Bremen
> Steuer-Nr.: 71-597-02876
> < 
> subscriber_notification 
> .patch>_______________________________________________
> OTRS mailing list: dev - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/dev
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

---------------------------------------------------------------------
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Laurent Minost | 2 Mar 2009 12:11
Favicon

Notifications on Ticket Age with working hours considered

Hi,

We would like to send notifications to specific people based on the 
Ticket creation date.

To explain a bit more our need, I will take an example :

* Our working hours are Monday to Friday 9am-6pm.
* a new ticket is created on Friday 5pm.

1 - if nothing was done on the ticket, we would like to notify one 
people 3 *working* hours after the ticket was created, so in this 
example it would be on next Monday 11am.

2 - if still no action was done on the ticket 6 *working* hours after 
the ticket was created we would like to notify another people, so in 
this example it would be on next Monday 14am.

3 - if still no action was done on the ticket 12 *working* hours after 
the ticket was created we would like to notify another different people, 
so in this example it would be on next Tuesday 11am.

I think such a behaviour could be configured through Generic Agent but 
not sure if every parameters could be configured (main problem for the 
moment is to take working/non working hours in consideration like OTRS 
default escalation is doing it based on Calendars).

This is a different behaviour than the original OTRS one with escalation 
because OTRS default escalation seems to only notify ticket owner or 
default owner if ticket is not yet locked and it seems to defaultly lock 
Queue view to avoid agents to do things on other ticket than the one 
concerned but it does not seem to fulfill our needs.

Anyone who have informations, advises, answers on this problem is welcome :)

Thanks by advance,

Laurent MINOST
---------------------------------------------------------------------
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/


Gmane