Re: [rt-users] no alert for invalid mail addresses

2017-01-06 Thread Petr Hanousek
Hello Jeffrey,
thank you, I'll try to implement it here. Wonder if someone has done it
before or if there is any plugin for this? Or (the best way) if some
developer encodes it to some future release of RT? :)
Petr

On 5.1.2017 21:51, Jeffrey Pilant wrote:
> Check out
>   http://www.regular-expressions.info/email.html
> It indicates the 'most' official regex is:
> \A(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*
>  |  "(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]
>   |  \\[\x01-\x09\x0b\x0c\x0e-\x7f])*")
> @ (?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?
>   |  \[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}
>(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:
>   (?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]
>   |  \\[\x01-\x09\x0b\x0c\x0e-\x7f])+)
>  \])\z
> 
> Yeah.  Quite a mouthful.  This is because there are quite a few ways to 
> express email addresses.  And even this is not foolproof.
> 
> The same page also has other simpler regex expressions that work a fair 
> amount of the time, but are less complicated, like:
> \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b
> 
> The page claims it is 99% effective.
> 
> That, however, does not solve your problem.  Just because it is formulated 
> correctly does not mean it is a valid address.
> 
> The usual solution is to whitelist the addresses and do a lookup.  Any 
> address not found gets added tentatively, but flagged for testing.  You can 
> also at this time prompt for acceptance vs. going back to an edit screen.  
> This does require you maintain a list of valid email addresses somewhere.  
> The user list is a likely place, but if you are sending emails to people who 
> are not users, then that fails.
> 
> /jeff
> 
> The information contained in this e-mail is for the exclusive use of the 
> intended recipient(s) and may be confidential, proprietary, and/or 
> legally privileged.  Inadvertent disclosure of this message does not 
> constitute a waiver of any privilege.  If you receive this message in 
> error, please do not directly or indirectly use, print, copy, forward,
> or disclose any part of this message.  Please also delete this e-mail 
> and all copies and notify the sender.  Thank you. 
> 
> 

-- 
+---+
   Petr Hanousek   e-mail: petr.hanou...@cesnet.cz
   MetaCentrum User Supportphone: +420 950 072 112
   CESNET z.s.p.o. mobile: +420 606 665 139
   location: Zikova 13a, Praha room: 32b
Czech Republic
+---+


Re: [rt-users] no alert for invalid mail addresses

2017-01-05 Thread Petr Hanousek
Thank you Matt, this will also help. BTW, for the curiosity, the "Merge
with an alternate user" option behaves the same way like
http://search.cpan.org/~bps/RT-Extension-MergeUsers/lib/RT/Extension/MergeUsers.pm
or does it have some extra functionality?

But my main focus with this question was about to help that desperate
users who make that typos to realize, that no mail will come to the
intended recipient. Something like warning "Hey, this address is not
valid so your answer never reach anybody".

Imagine sending some info (like "downtime will occur next monday") to
multiple recipients and one of them has a typo like invalid domain in
his mail address. You feel safe that you've sent info to everybody
important but someone never receive that and surely will complain during
the unexpected downtime.

Petr


On 5.1.2017 16:09, Matt Zagrabelny wrote:
> Hi Petr,
> 
> We have this problem a lot.
> 
> BP wrote us this module to help manage autocreated users that don't
> belong in the database:
> 
> https://github.com/bestpractical/rt-extension-manageautocreatedusers
> 
> -m
> 
> On Thu, Jan 5, 2017 at 3:53 AM, Petr Hanousek  wrote:
>> Hi geeks,
>> sometimes someone here mistypes the mail address of Requestor or CC. The
>> typos in addresses are various, my question is about the really obvious
>> ones. Like if you put to CC an address "a@b". Is there any mechanism in
>> RT to detect such mistakes and say something at least? Or can I have a
>> feature request for this? :)
>>
>> If you try this in Gmail or Thunderbird, an error is raised and the
>> message is not sent.
>>
>> Thank you, Petr


[rt-users] no alert for invalid mail addresses

2017-01-05 Thread Petr Hanousek
Hi geeks,
sometimes someone here mistypes the mail address of Requestor or CC. The
typos in addresses are various, my question is about the really obvious
ones. Like if you put to CC an address "a@b". Is there any mechanism in
RT to detect such mistakes and say something at least? Or can I have a
feature request for this? :)

If you try this in Gmail or Thunderbird, an error is raised and the
message is not sent.

Thank you, Petr

-- 
+---+
   Petr Hanousek   e-mail: petr.hanou...@cesnet.cz
   MetaCentrum User Supportphone: +420 950 072 112
   CESNET z.s.p.o. mobile: +420 606 665 139
   location: Zikova 13a, Praha room: 32b
Czech Republic
+---+


Re: [rt-users] Slow quote folding

2016-10-25 Thread Petr Hanousek
Hi,
we have migrated to another server with newer Debian and this issue
suddenly dissapeared. So I wanted just let you know. Thanks to Jeffrey
Pilant for interest and morale support :)
Petr

On 1.6.2016 11:04, Petr Hanousek wrote:
> Dear all,
> we have here some users who have such a habit to keep all the
> conversation history in e-mails. Some of them have also stupid mail
> clients which doubles the number of spaces. This results in looong mails
> and therefore long ticket history. So some individuals use, for better
> information overview, quote folding.
> This works quite well, but when the stuff that is to be quoted in ticket
> is too long (or too many of them?), the quoting procedure takes very
> long time. I've got here a ticket with 24 replies, each with the full
> mail history, and showing the ticket with folding turned on takes about
> 8 minutes. The ticket history during that time shows only "Loading..."
> notice.
> 
> When I searched in the code to see how this folding is done, it gave me
> an impression that it uses some general method which affects the whole
> RT. So I am little bit scare to give it some tuning :) Could you someone
> please either to confirm a bug, or (if it is a feature) explain me the
> mechanism how this should work and what to tune/rewrite?
> 
> Thank you, Petr
> 

-- 
+---+
   Petr Hanousek   e-mail: petr.hanou...@cesnet.cz
   MetaCentrum User Supportphone: +420 950 072 112
   CESNET z.s.p.o. mobile: +420 606 665 139
   location: Zikova 13a, Praha room: 32b
Czech Republic
+---+
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017


Re: [rt-users] mail header use by RT

2016-06-08 Thread Petr Hanousek
Hi,
I've got an opposite problem: when I make a mail reply or forward, it
doesn't matter whether I change the subject (remove RT ID from it) or
not. And the mail is attached to the original ticked, although I wanted
to create a new one. It appears to me that RT is using the "References"
part in the header and the mail subject.

Problem is that if you forward the mail outside RT and change subject,
nobody then normally knows that it came from RT and therefore if you
then send such a mail back to RT, it would be routed elsewhere, than you
intended. I don't know whether it's the default behaviour or it's some
hack from my predecessor administrators.

So, could someone write here, what is the decision process in RT that
takes place for a mail to create new ticket or attaching it to an
existing one?
Thank you, Petr

On 2.5.2016 16:07, Albert Shih wrote:
> Hi everyone.
> 
> I got some issue about reply mail, some answer (to a mail come from RT) 
> create a new ticket instead
> to be merge to the original ticket.
> 
> I would like to known which header is use by RT to see it's a new mail or a
> old ticket.
> 
> I find in a mail header
> 
>   References: 
>   Message-ID: 
>   X-RT-Loop-Prevention: support.obspm.fr
>   X-RT-Ticket: support.obspm.fr #28939
>   X-Managed-BY: RT 4.2.12 (http://www.bestpractical.com/rt/)
>   X-RT-Originator: some@obspm.fr
> 
> Are they all be used or only X-RT-Ticket is used ?
> 
> Regards.
> 
> JAS
> 
> 
> 
> 
> --
> Albert SHIH
> DIO bâtiment 15
> Observatoire de Paris
> 5 Place Jules Janssen
> 92195 Meudon Cedex
> France
> Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71
> xmpp: j...@obspm.fr
> Heure local/Local time:
> lun 2 mai 2016 16:04:13 CEST
> -
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Washington DC - May 23 & 24, 2016
> 

-- 
+---+
   Petr Hanousek   e-mail: petr.hanou...@cesnet.cz
   MetaCentrum User Supportphone: +420 950 072 112
   CESNET z.s.p.o. mobile: +420 606 665 139
   location: Zikova 13a, Praha room: 32b
Czech Republic
+---+
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] Slow quote folding

2016-06-01 Thread Petr Hanousek
Dear all,
we have here some users who have such a habit to keep all the
conversation history in e-mails. Some of them have also stupid mail
clients which doubles the number of spaces. This results in looong mails
and therefore long ticket history. So some individuals use, for better
information overview, quote folding.
This works quite well, but when the stuff that is to be quoted in ticket
is too long (or too many of them?), the quoting procedure takes very
long time. I've got here a ticket with 24 replies, each with the full
mail history, and showing the ticket with folding turned on takes about
8 minutes. The ticket history during that time shows only "Loading..."
notice.

When I searched in the code to see how this folding is done, it gave me
an impression that it uses some general method which affects the whole
RT. So I am little bit scare to give it some tuning :) Could you someone
please either to confirm a bug, or (if it is a feature) explain me the
mechanism how this should work and what to tune/rewrite?

Thank you, Petr

-- 
+---+
   Petr Hanousek   e-mail: petr.hanou...@cesnet.cz
   MetaCentrum User Supportphone: +420 950 072 112
   CESNET z.s.p.o. mobile: +420 606 665 139
   location: Zikova 13a, Praha room: 32b
Czech Republic
+---+
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] outgoing email signing - S/MIME x GnuPG

2016-03-21 Thread Petr Hanousek
Hello all,
I've got a feature request here. Could be please added the possibility
to configure signing an outgoing email on queue basis rather than for
whole RT instance? There are some users in our system who use GnuPG and
some who need S/MIME. And RT::Crypt documentation (even for version 4.4)
says, that "RT can currently only use one protocol to encrypt and sign
outgoing email; this defaults to the first enabled protocol."
Thank you, Petr

-- 
+---+
   Petr Hanousek   e-mail: petr.hanou...@cesnet.cz
   MetaCentrum User Supportphone: +420 950 072 112
   CESNET z.s.p.o. mobile: +420 606 665 139
   location: Zikova 13a, Praha room: 32b
Czech Republic
+---+
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] RT and CRM functions/integration

2012-04-13 Thread Petr Hanousek

Hello,
this is the question that crossed also my mind few days ago. We are the 
company using RT and now we want to start using some CRM system. Well, 
not the whole one, but some sort of it, let's say addressbook on steroids.


I've tried to google it and among many crap I've found this thread and 
some other messages from some consulting companies that "it works 
somehow" and thy provide the solution.


So I wonder how is this possible. Because as far as I know about RT, 
it's rather the solution for solving problems and not tracking 
customers. On top of that, the system of dealing with users is based on 
email addresses which continuously changes. This is the opposite of CRM 
system, because there is the customer on the first place so his contact 
is unique and not dividet into several mail addresses.


I've found some workaround here 
http://www.gossamer-threads.com/lists/rt/users/48819 but didn't try it 
yet, because I am not confident this is the right way to go.


So do you someone have some experience with integrating CRM system and RT?

Best regards, Petr Hanousek

On 1.3.2012 11:49, Dan Shearer wrote:

What do service companies based around RT do when they formalise their
sales processes? I've only ever seen CRM done completely independently,
but now I'm wondering if there's a better way. RT is the opposite of a
CRM (the scale of the numbers and the direction of the communication are
inverses) but often an IT service company wants to keep sales close to
fulfillment, and fulfillment always happens through RT.

At one level, RT can do very transactional, short-cycle sales just like
any question-response cycle. At the other extreme, RT can't possibly map
onto a contacts-driven sales system. But I'm wondering if there might be
some ground in the middle, where the true CRM stuff is handled elsewhere
but RT is aware of the workflow.

So, who does CRM integration with RT?  :-)

Regards,

--
Dan Shearer
d...@shearer.org

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5&  6, 2012


--
+-------+
   Petr Hanousek   e-mail: petr.hanou...@cesnet.cz
   MetaCentrum User Supportphone: +420 234 680 241
   CESNET z.s.p.o. mobile: 606 665 139
   location: Zikova 13a, Praha room: 32b
Czech Republic
+---+