mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 02:11:59 +01:00
fixed the underscore in email addresses
This commit is contained in:
parent
b137a1b0ef
commit
34568e7d82
@ -13,7 +13,7 @@
|
||||
|
||||
#define VERSION "0.1.22"
|
||||
|
||||
#define BUILD 729
|
||||
#define BUILD 731
|
||||
|
||||
#define HOSTID "mailarchiver"
|
||||
|
||||
|
@ -512,6 +512,8 @@ void translateLine(unsigned char *p, struct _state *state){
|
||||
|
||||
if( (state->message_state == MSG_RECEIVED || state->message_state == MSG_FROM || state->message_state == MSG_TO || state->message_state == MSG_CC || state->message_state == MSG_RECIPIENT) && *p == '@'){ continue; }
|
||||
|
||||
if( (state->message_state == MSG_FROM || state->message_state == MSG_TO || state->message_state == MSG_CC || state->message_state == MSG_RECIPIENT) && *p == '_'){ continue; }
|
||||
|
||||
if(state->message_state == MSG_SUBJECT && (*p == '%' || *p == '_' || *p == '&') ){ continue; }
|
||||
|
||||
if(state->message_state == MSG_CONTENT_TYPE && *p == '_' ){ continue; }
|
||||
|
@ -646,7 +646,7 @@ class ModelSearchSearch extends Model {
|
||||
|
||||
private function fix_email_address_for_sphinx($email = '') {
|
||||
$email = preg_replace("/\|@/", "|", $email);
|
||||
return preg_replace("/[\@\.\+\-]/", "X", $email);
|
||||
return preg_replace("/[\@\.\+\-\_]/", "X", $email);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user