Merge pull request #852 from eguaj/3.2-A3651

Added CORE_MAILACTION param (closes #3651)
correct highlight in searchDoc (refs #3974)
add test for highlight in searchDoc (refs #3974)
Merge pull request #853 from Eric-Brison/3.2-I3974

correct highlight in searchDoc (closes #3974)
add se_author attribute (refs #3996)
init new se_author attribute (refs #3996)
correct error message (refs #3996)
only se_author and admins can delete/edit its searches (refs #3996)
correct check profil case insensitive (refs #3996)
Merge pull request #854 from Eric-Brison/3.2-A3996

add se_author attribute in SEARCH family (closes #3996)
adjust detection of need onlyCount (refs #3507)
Merge pull request #855 from Eric-Brison/3.2-A3507

adjust detection of need onlyCount (fixes #3507)
correct getLatestTDoc for zombie document (refs #3981)
Correct docid in array with other default value (refs #3992)
correct viewtemplate option for zombie document (refs #3981)
Merge pull request #856 from thingthing/3.2-I3992

Correct docid in array with other default value (closes #3992)
correct sql filter when update user account (refs #3981)
Merge pull request #857 from Eric-Brison/3.2-I3981

Correct send document for deleted documents (closes #3981)
Expand doclink HTML elements in MAIL_TEMPLATE's body (refs #3651)
Escape HTML special chars when using CORE_MAILACTIONURL (refs #3651)