Git Product home page Git Product logo

znuny4otrs-giarticlesend's Introduction

Znuny logo

Build status

Znuny4OTRS-GIArticleSend

This package enables the standard Generic Interface ticket operations to send articles.

This feature is based on OTRS pull request #815 by github user fredericve. Also many thanks to PC-College who made this package possible.

Prerequisites

Installation

Download the package and install it via admin interface -> package manager or use Znuny4OTRS-Repo.

Download

Download the latest version.

Usage To send an article via operation TicketCreate or TicketUpdate, you have to set the following new parameters within the article data:

ArticleSend => 1,
To          => '[email protected]', # Email address to send article to.

Commercial Support

For this add-on and for Znuny in general visit https://www.znuny.com. Looking forward to hear from you!

Enjoy!

Your Znuny Team!

https://www.znuny.com

znuny4otrs-giarticlesend's People

Contributors

blangtech avatar dennykorsukewitz avatar jepf avatar rkaldung avatar rolfschmidt avatar thorsteneckel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

znuny4otrs-giarticlesend's Issues

Failing attachement creation

Hi guys,
thanks for your amazing work you've done here.
We are experiencing an issue during creating attachments through REST API after upgrading to OTRS 6.0.3.
It returns {"faultcode":"Server","faultstring":"CreateAttachment() Got no TicketID!"}; when "ArticleSend" and "To" params are not set.
It works flawlessly if GIArticleSend is not installed.

Example JSON payload:

  1. Fail:
    "{\"SessionID\":\"123456789...\",\"Ticket\":{\"Title\":\"Example title\",\"QueueID\":XX,\"State\":\"new\",\"PriorityID\":3,\"CustomerUser\":XXXX,\"CustomerID\":\"xxxx\"},\"Article\":{\"CommunicationChannel\":\"Email\",\"From\":\"Ondrej Bina \\[email protected]\\u003e\",\"Subject\":\"Example subject\",\"Body\":\"Integration test\",\"ContentType\":\"text/plain; charset=utf8\"},\"Attachment\":{\"Content\":\"aWQsS8OzZCxOw6F6ZXYgZmlybXksU3RhdixUeXAsSGxhdm7DrSBrb250YWt0\\nIChlLW1haFrdCxEZW4gdsO9cGxhdHksTXpkb3bD\\noSDDusSNZXRuw60sVsO9cGxhdG\\nbW9jIMSMU1NaCjEwMDUseHl6MTIzLFhZWiBhLnMuLEFrdGl2bsOtLE16ZHks\\nbm9ib2R5\\nemFzw61sYXQscG9sYWsK\\n\",\"ContentType\":\"application/csv\",\"Filename\":\"test.csv\"}}"

  2. Pass:
    "{\"SessionID\":\"123456789...\",\"Ticket\":{\"Title\":\"Example title\",\"QueueID\":XX,\"State\":\"new\",\"PriorityID\":3,\"CustomerUser\":XXXX,\"CustomerID\":\"xxxx\"},\"Article\":{\"CommunicationChannel\":\"Email\",\"From\":\"Ondrej Bina \\[email protected]\\u003e\",\"Subject\":\"Example subject\",\"Body\":\"Integration test\",\"ContentType\":\"text/plain; charset=utf8\",\"To\":\"Ondrej Bina \\[email protected]\\u003e\",\"ArticleSend\":1},\"Attachment\":{\"Content\":\"aWQsS8OzZCxOw6F6ZXYgZmlybXksU3RhdixUeXAsSGxhdm7DrSBrb250YWt0\\nIChlLW1haFrdCxEZW4gdsO9cGxhdHksTXpkb3bD\\noSDDusSNZXRuw60sVsO9cGxhdG\\nbW9jIMSMU1NaCjEwMDUseHl6MTIzLFhZWiBhLnMuLEFrdGl2bsOtLE16ZHks\\nbm9ib2R5\\nemFzw61sYXQscG9sYWsK\\n\",\"ContentType\":\"application/csv\",\"Filename\":\"test.csv\"}}"

There are obviously changes in OTRS 6 API ( especially in commit OTRS/otrs@5fdf347) but I'm not experienced in Perl enough to localize any possible connection.

Are you experiencing same issue with latest OTRS or is it rather any problem on our side?

Thanks for your response :]

Feature request: Multiple recipients

Hey guys,

first I want to thank you for your nice work.

In our company we need to send Articles/Tickets via GI automatically by a script which runs monthly.
Sadly it is only possible to add one 'To' parameter with the ArticleSend feature. So my question is:

Is it possible to add more than one recipient?
That would be really awesome.

We are running OTRS 5 on our Ubuntu-Server.
Just let me know if you need any further information.

Thanks a lot.

Greetings,
Oliver

Add support for PGP encryption

Hi!

Normally you can send emails PGP encrypted via OTRS, but I see that your package does not support that yet. In OTRS, ArticleSend does support this, via. the EmailSecurity field in the options.

EmailSecurity => {
            Backend     => 'PGP',                       # PGP or SMIME
            Method      => 'Detached',                  # Optional Detached or Inline (defaults to Detached)
            SignKey     => '81877F5E',                  # Optional
            EncryptKeys => [ '81877F5E', '3b630c80' ],  # Optional
        }

If it would be possible to specify this EmailSecurity option into GIArticleSend, that would be great.

Additionally, it would also be great if I could specify a plaintext of the article (that goes into the database), and a ciphertext (pre-encrypted PGP data) that would be sent in the email.

That would allow us to sometimes pre-encrypt something, without having to involve OTRS. This could be practical in some scenarios.

Thanks!

Email subject format

great thing you did here, really appreciate your hard work :)

I got small thing, is not a problem, is more of a feature request...

We use this to send email through API from our employee through OTRS to customer while still keeping copy in OTRS, which is exactly what we wanted, but recently it seems customers are either bothered by the subject line or it gets filtered by their incoming filters as somehow suspicious message....

I had a look and its mainly because subject line contains Ticket ID, which customer does not necessarily need...

I did some digging around and found this:
http://lists.otrs.org/pipermail/otrs/2009-November/029266.html

Which is exactly right and can be configured:
ticketformat

But that means for us that we change this for the whole system and that would hurt internal process of using OTRS, where we work with this ID to ease the pain of searching and stuff....

Please is there any chance you would consider putting another param in for this?

Ideal case for me is as I added to request these line from this plugin:

ArticleSend => 1,
To          => '[email protected]', # Email address to send article to.

I would also give it:

SubjectFormat => 'None' # Possible options 'Left', 'Right', 'None'

Otherwise it defaults to system setting described in:
http://lists.otrs.org/pipermail/otrs/2009-November/029266.html

Is it anywhere near possible? I am long time Ruby developer with PHP and Python experience, never done fulltime Perl, but I am willing to help if you point me in right direction :)

Thanks a lot :)

Bug - Random OTRS crashing

Environment

  • OS: Debian 11 (with MariaDB 10.5)
  • Browser: Not relevant
  • OTRS version:
    • Znuny LTS 6.0.45
    • Znuny4OTRS-Repo  6.0.76
    • Znuny4OTRS-GIArticleSend 6.0.8

Expected behavior

Not to crash OTRS.

Actual behavior

Using exactly the same REST API request, sometimes it works without a problem but other times it crashes whole OTRS instance.
Error logs and the request example is enclosed below.

How to reproduce

Steps to reproduce the behavior:

  1. Send this REST request:
POST https://{{serverUrl}}/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket

with body:

{
	"SessionID": "{{SessionID}}",
	"Ticket": {
		"QueueID": 1,
		"TypeID": 1,
		"StateID": 4,
		"PriorityID": 3,
		"Title": "Test title",
		"CustomerUser": "[email protected]"
	},
	"Article": {
		"ArticleSend": 1,
		"CommunicationChannelID": 1,
		"SenderType": "agent",
		"IsVisibleForCustomer": 1,
		"ContentType": "text/html; charset=utf-8",
		"To": "[email protected]",
		"From": "[email protected]",
		"Subject": "Test Subject",
		"Body": "Test body"
	}
}
  1. Most of the times the ticket is created correctly and e-mail is sent to it's recipient, but few times (appears to be random) it crashes with error:
[:error] [pid 2539705] Can't locate object method "Init" via package "Kernel::GenericInterface::Operation::Ticket::TicketCreate" at /opt/otrs/Custom/Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm line 345.
[:error] [pid 2539692] Can't locate object method "ValidateCustomer" via package "Kernel::GenericInterface::Operation::Ticket::TicketCreate" at /opt/otrs/Custom/Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm line 673.
[perl:error] [pid 2539396] [client IP:PORT] Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter: 0x55cbc124e080 at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 171.

Signature outgoing email

When a ticket is created in otrs, it is sent with the signature that has the queue established
When a ticket is created via rest in the same queue, it is send without signature


Expected behavior

When creating a ticket via rest api in a queue that has a signature assigned, the message should be sent with that signature.

Actual behavior

Currently a ticket is created via rest api in a queue that has a signature assigned, it is sent without the signature

How to reproduce

Create a queue.
Assign to this queue a signature.
Create a ticket via otrs rest, this ticket will be sent without signature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.