View Issue Details

IDProjectCategoryView StatusLast Update
0016409Plugin - EmailReportingGeneralpublic2026-11-09 05:57
Reporterlibregeek Assigned ToSL-Gundam  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status resolvedResolutionnot fixable 
Summary0016409: Modify email notification content if ER plugin is enabled
Description

It would be nice if the email content is modified if EmailReporting plugin is enabled.

The case is that people tend to reply to the email notification inline and this is not recorded as note to the respective issue.

So we may have to add a line to the start of message saying something like "Reply above this line". We may also have to put a warning message like "Do not reply inline".

The above changes should apply only if EmailReporting plugin is enabled.

I'm not sure whether we can modify the email content using events, but we can request upstream if this makes any sense.

TagsNo tags attached.

Relationships

has duplicate 0020393 closedSL-Gundam custom account created message 

Activities

SL-Gundam

SL-Gundam

2013-09-26 11:50

manager   ~0038119

Currently the goal of the EmailReporting plugin is only processing the incoming email.

If people answer inline then the reply part of the email should not be removed in the first place.

As for any modifications in the notification system. I feel that should a separate plugin that depends on EmailReporting if you so wish

libregeek

libregeek

2013-09-30 23:34

manager   ~0038158

I agree with you. Initially, I thought of a different plugin, but the inline reply part put me back to the ER plugin. But since you suggest a new plugin, then it's the way to go.

AFAIK, there are no events available to customise the mail content. So this cannot be achieved immediately.

SL-Gundam

SL-Gundam

2013-10-01 16:11

manager   ~0038173

I'm going to keep this issue open. Maybe i'll think of something that could facilitate this feature.

SL-Gundam

SL-Gundam

2016-04-11 19:57

manager   ~0052941

You can make plugins optionally depend on another plugin and plugins can check whether other plugins are present and if so do something

Though the biggest issue is that, to my knowledge, we do not have any plugin events available that would allow us to modify email content

If this does become possible one would only need to add the following code to check whether emailreporting is currently processing an email

if function_exists( 'ERP_get_mailbox_api_name' )
{
$t_mailbox_api = ERP_get_mailbox_api_name;
if ( isset( $GLOBALS[ $t_mailbox_api ) ) echo 'ERP active';
}

or something like that...

SL-Gundam

SL-Gundam

2026-11-09 05:57

manager   ~0071581

Cas created a code that might help. But it requires code editing because, like you said, there is not option to change using a normal plugin.
https://github.com/mantisbt-plugins/mailtemplate

Since this is out-of-scope i will close this issue