On Thu, Dec 24, 2020 at 10:25:14AM +0800, Ren Wen wrote:
On Wed, Dec 23, 2020 at 06:51:33PM +0800, Luan Shengde wrote:
What will be matched using ""Xing Ming"? Should give an example.
there is one in the change log
Thanks, Luan Shengde
Thanks, RenWen
[why] parsed email address for received email file may like: "Xing Ming email_address@163.com" or ""Xing Ming" eamil_address@163.com"
if the email address contains double quotes as part of string, the email message may end unexpectedly, like:
Date: Wed, 23 Dec 2020 18:32:06 +0800^M From: compass-ci-reply@qq.com To: shdluan@163.com Subject: [compass-ci] Account Ready^M
Dear Luan ====email message ends
[how] delete extra double quotes
Signed-off-by: Luan Shengde shdluan@163.com
container/mail-robot/lib/parse-apply-account-email.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/mail-robot/lib/parse-apply-account-email.rb b/container/mail-robot/lib/parse-apply-account-email.rb index 8c55d8f..7024731 100755 --- a/container/mail-robot/lib/parse-apply-account-email.rb +++ b/container/mail-robot/lib/parse-apply-account-email.rb @@ -36,7 +36,7 @@ class ParseApplyAccountEmail
@my_info = { 'my_email' => mail_content.from[0],
'my_name' => mail_content.From.unparsed_value.gsub(/ <[^<>]*>/, ''),
} end'my_name' => mail_content.From.unparsed_value.gsub(/ <[^<>]*>/, '').gsub(/"/, ''), 'my_ssh_pubkey' => []
-- 2.23.0