Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence
I've looked into MailPlugins, but unless I'm reading the wrong section of the documentation, they are for auth/authz aspects of mail, and not for rewriting the content of the mail to, as I plan, remove redundant confidentiality agreements and signatures. I've been looking in RT::EmailParser and I see a _ParseMIMEEntity function which calls a handy-sounding _PostProcessNewEntity but I don't see any hooks in there for the casual user, so, either I need to wedge the code I need in there myself or need to be edjumakayted about where I should be looking. Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.com seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] From: ruslan.zaki...@gmail.com [mailto:ruslan.zaki...@gmail.com] On Behalf Of Ruslan Zakirov Sent: Thursday, October 07, 2010 9:39 AM To: Josh Narins Cc: Ruslan Zakirov; rt-users@lists.bestpractical.com Subject: Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence Then look into MailPlugins. Regards, Ruslan. From phone. 2010 10 7 17:34 пользователь Josh Narins jnar...@seniorbridge.commailto:jnar...@seniorbridge.com написал: That may be true, but I know exactly how to do what I want in perl, but don't know anything about how this would happen in postfix. Someone else, offlist, recommended postfix, but I tried a bunch of different searches postfix (remove|delete|strip) signature and didn't find one relevant link. Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.commailto:jnar...@seniorbridge.com seniorbridge.comhttp://seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] From: ruslan.zaki...@gmail.commailto:ruslan.zaki...@gmail.com [mailto:ruslan.zaki...@gmail.commailto:ruslan.zaki...@gmail.com] On Behalf Of Ruslan Zakirov Sent: Thursday, October 07, 2010 9:33 AM To: Josh Narins Cc: rt-users@lists.bestpractical.commailto:rt-users@lists.bestpractical.com Subject: Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence Hi. If you are talking about incoming mail then it's better to use external tool before mailgate. If it's outgoing mail then first of all you have to figure out where you insert that text. Regards, Ruslan. From phone. 2010 10 6 18:50 пользователь Josh Narins jnar...@seniorbridge.commailto:jnar...@seniorbridge.commailto:jnar...@seniorbridge.commailto:jnar...@seniorbridge.com написал: How can I do this? The company automatically puts a lot of information at the bottom of each email and between that and the commenting of the original message it gets to be quite excessive. I'm happy to modify RT's perl/Mason code directly, if that's what is required, as long someone tells me where. I figured it would be rt-mailgate, but I had no luck there. Thanks in advance, Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.commailto:jnar...@seniorbridge.commailto:jnar...@seniorbridge.commailto:jnar...@seniorbridge.com seniorbridge.comhttp://seniorbridge.comhttp://seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] SeniorBridge Statement of Confidentiality: The contents of this email message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. Any dissemination, distribution or copying of this email by an unintended or mistaken recipient is strictly prohibited. In said event, kindly reply to the sender and destroy all entries of this message and any attachments from your system. Thank you.
Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence
Hi Josh, On Wed, Oct 20, 2010 at 5:25 PM, Josh Narins jnar...@seniorbridge.com wrote: I've looked into MailPlugins, but unless I'm reading the wrong section of the documentation, they are for auth/authz aspects of mail, and not for rewriting the content of the mail to, as I plan, remove redundant confidentiality agreements and signatures. A mail plugin has access to MIME entity and can do with it whatever you like. Just return the same auth level and current user and RT will continue to process the message. I do believe it's right place to do it even if API is not quite obviouse for this purpose. Old design that is there since RT 3.0 and screams for major refactoring. I've been looking in RT::EmailParser and I see a _ParseMIMEEntity function which calls a handy-sounding _PostProcessNewEntity but I don't see any hooks in there for the casual user, so, either I need to wedge the code I need in there myself or need to be edjumakayted about where I should be looking. If you enable GPG/SMIME then email is not fully processed at first and I think those functions are called for this case and you wouldn't be able to access decoded bodies. Josh Narins -- Best regards, Ruslan.
Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence
Hi. If you are talking about incoming mail then it's better to use external tool before mailgate. If it's outgoing mail then first of all you have to figure out where you insert that text. Regards, Ruslan. From phone. 2010 10 6 18:50 пользователь Josh Narins jnar...@seniorbridge.com написал: How can I do this? The company automatically puts a lot of information at the bottom of each email and between that and the commenting of the original message it gets to be quite excessive. I'm happy to modify RT's perl/Mason code directly, if that's what is required, as long someone tells me where. I figured it would be rt-mailgate, but I had no luck there. Thanks in advance, Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.com seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] SeniorBridge Statement of Confidentiality: The contents of this email message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. Any dissemination, distribution or copying of this email by an unintended or mistaken recipient is strictly prohibited. In said event, kindly reply to the sender and destroy all entries of this message and any attachments from your system. Thank you. RT Training in Washington DC, USA on Oct 25 26 2010 Last one this year -- Learn how to get the most out of RT!
Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence
That may be true, but I know exactly how to do what I want in perl, but don't know anything about how this would happen in postfix. Someone else, offlist, recommended postfix, but I tried a bunch of different searches postfix (remove|delete|strip) signature and didn't find one relevant link. Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.com seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] From: ruslan.zaki...@gmail.com [mailto:ruslan.zaki...@gmail.com] On Behalf Of Ruslan Zakirov Sent: Thursday, October 07, 2010 9:33 AM To: Josh Narins Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence Hi. If you are talking about incoming mail then it's better to use external tool before mailgate. If it's outgoing mail then first of all you have to figure out where you insert that text. Regards, Ruslan. From phone. 2010 10 6 18:50 пользователь Josh Narins jnar...@seniorbridge.commailto:jnar...@seniorbridge.com написал: How can I do this? The company automatically puts a lot of information at the bottom of each email and between that and the commenting of the original message it gets to be quite excessive. I'm happy to modify RT's perl/Mason code directly, if that's what is required, as long someone tells me where. I figured it would be rt-mailgate, but I had no luck there. Thanks in advance, Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.commailto:jnar...@seniorbridge.com seniorbridge.comhttp://seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] SeniorBridge Statement of Confidentiality: The contents of this email message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. Any dissemination, distribution or copying of this email by an unintended or mistaken recipient is strictly prohibited. In said event, kindly reply to the sender and destroy all entries of this message and any attachments from your system. Thank you. RT Training in Washington DC, USA on Oct 25 26 2010 Last one this year -- Learn how to get the most out of RT!
Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence
Then look into MailPlugins. Regards, Ruslan. From phone. 2010 10 7 17:34 пользователь Josh Narins jnar...@seniorbridge.com написал: That may be true, but I know exactly how to do what I want in perl, but don't know anything about how this would happen in postfix. Someone else, offlist, recommended postfix, but I tried a bunch of different searches postfix (remove|delete|strip) signature and didn't find one relevant link. Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.com seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] From: ruslan.zaki...@gmail.com [mailto:ruslan.zaki...@gmail.com] On Behalf Of Ruslan Zakirov Sent: Thursday, October 07, 2010 9:33 AM To: Josh Narins Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence Hi. If you are talking about incoming mail then it's better to use external tool before mailgate. If it's outgoing mail then first of all you have to figure out where you insert that text. Regards, Ruslan. From phone. 2010 10 6 18:50 пользователь Josh Narins jnar...@seniorbridge.com mailto:jnar...@seniorbridge.com написал: How can I do this? The company automatically puts a lot of information at the bottom of each email and between that and the commenting of the original message it gets to be quite excessive. I'm happy to modify RT's perl/Mason code directly, if that's what is required, as long someone tells me where. I figured it would be rt-mailgate, but I had no luck there. Thanks in advance, Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.commailto:jnar...@seniorbridge.com seniorbridge.comhttp://seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] SeniorBridge Statement of Confidentiality: The contents of this email message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. Any dissemination, distribution or copying of this email by an unintended or mistaken recipient is strictly prohibited. In said event, kindly reply to the sender and destroy all entries of this message and any attachments from your system. Thank you. RT Training in Washington DC, USA on Oct 25 26 2010 Last one this year -- Learn how to get the most out of RT!
Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence
Josh, This wouldn't be something native inside of postfix. You could approach this two different ways. In the system aliases/virtual configuration instead of piping to rt-mailgate, pipe to your perl program clean the message and then send it to the rt-mailgate script. You could also specify an external delivery mechanism in postfix's master.cf and then call to this program in the virtual or transport maps. -Max On Thu, Oct 7, 2010 at 6:34 AM, Josh Narins jnar...@seniorbridge.comwrote: That may be true, but I know exactly how to do what I want in perl, but don't know anything about how this would happen in postfix. Someone else, offlist, recommended postfix, but I tried a bunch of different searches postfix (remove|delete|strip) signature and didn't find one relevant link. *Josh Narins* Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.com seniorbridge.com http://www.seniorbridge.com/ [image: SeniorBridge] *From:* ruslan.zaki...@gmail.com [mailto:ruslan.zaki...@gmail.com] *On Behalf Of *Ruslan Zakirov *Sent:* Thursday, October 07, 2010 9:33 AM *To:* Josh Narins *Cc:* rt-users@lists.bestpractical.com *Subject:* Re: [rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence Hi. If you are talking about incoming mail then it's better to use external tool before mailgate. If it's outgoing mail then first of all you have to figure out where you insert that text. Regards, Ruslan. From phone. 2010 10 6 18:50 пользователь Josh Narins jnar...@seniorbridge.com написал: How can I do this? The company automatically puts a lot of information at the bottom of each email and between that and the commenting of the original message it gets to be quite excessive. I'm happy to modify RT's perl/Mason code directly, if that's what is required, as long someone tells me where. I figured it would be rt-mailgate, but I had no luck there. Thanks in advance, Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.com seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] SeniorBridge Statement of Confidentiality: The contents of this email message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. Any dissemination, distribution or copying of this email by an unintended or mistaken recipient is strictly prohibited. In said event, kindly reply to the sender and destroy all entries of this message and any attachments from your system. Thank you. RT Training in Washington DC, USA on Oct 25 26 2010 Last one this year -- Learn how to get the most out of RT! RT Training in Washington DC, USA on Oct 25 26 2010 Last one this year -- Learn how to get the most out of RT!
[rt-users] Stripping Confidentiality and other stuff from emailed tickets, comments, correspondence
How can I do this? The company automatically puts a lot of information at the bottom of each email and between that and the commenting of the original message it gets to be quite excessive. I'm happy to modify RT's perl/Mason code directly, if that's what is required, as long someone tells me where. I figured it would be rt-mailgate, but I had no luck there. Thanks in advance, Josh Narins Director of Application Development SeniorBridge 845 Third Ave 7th Floor New York, NY 10022 Tel: (212) 994-6194 Fax: (212) 994-4260 Mobile: (917) 488-6248 jnar...@seniorbridge.com seniorbridge.comhttp://www.seniorbridge.com/ [http://www.seniorbridge.com/images/seniorbridgedisclaimerTAG.gif] SeniorBridge Statement of Confidentiality: The contents of this email message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. Any dissemination, distribution or copying of this email by an unintended or mistaken recipient is strictly prohibited. In said event, kindly reply to the sender and destroy all entries of this message and any attachments from your system. Thank you. RT Training in Washington DC, USA on Oct 25 26 2010 Last one this year -- Learn how to get the most out of RT!