Skip to content

Commit

Permalink
Address issues with processing email.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkraul authored Jul 1, 2020
2 parents 5b26f02 + d3a9c04 commit 93236d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 7 additions & 8 deletions BBCodePlus/BBCodePlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function register() {
$this->name = plugin_lang_get( 'title' );
$this->description = plugin_lang_get( 'description' );
$this->page = 'config';
$this->version = '2.1.13';
$this->version = '2.1.14';

$this->requires['MantisCore'] = '2.0.0';
# this plugin can coexist with MantisCoreFormatting.
Expand Down Expand Up @@ -216,15 +216,14 @@ public function rss( $p_event, $p_string ) {
* @return string Formatted text
*/
public function email( $p_event, $p_string ) {
#$p_string = string_strip_hrefs( $p_string );
#$p_string = string_process_bug_link( $p_string, FALSE );
#$p_string = string_process_bugnote_link( $p_string, FALSE );
#$p_string = $this->string_process_cvs_link( $p_string, FALSE );

if ( ON == plugin_config_get( 'process_email' ) )
if ( ON == plugin_config_get( 'process_email' ) ) {
# process content to make sure all tags are converted to BBCode.
$p_string = $this->string_process_bbcode( $p_string );
else
$p_string = $this->string_strip_bbcode( $p_string );
}
# strip the BBCode right back out. mantisbt email does not currently support HTML.
$p_string = $this->string_strip_bbcode( $p_string );

return $p_string;
}
//-------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ If you would like to contribute to BBCode plus, please [read this guide first](h

## Change Log

### 2.1.14

- Corrected email parsing behavior when Email Processing is turned on. MantisBT does not support HTML email natively.

### 2.1.13

- Added the following characters to work with the quotee's name in the named quote function (basically to support email-adresses here): . @ - [@FSD-Christian-ISS](https://github.com/FSD-Christian-ISS)
Expand Down

0 comments on commit 93236d6

Please sign in to comment.