From c0a5a56bfcad021c2bf4230c0b2c09e381811549 Mon Sep 17 00:00:00 2001 From: deuce Date: Tue, 28 Apr 2020 06:16:10 +0000 Subject: [PATCH] Rub some case-desinsitizing lotion on some regexs. --- imapservice.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/imapservice.js b/imapservice.js index ffd9169295..50ed88c753 100644 --- a/imapservice.js +++ b/imapservice.js @@ -5,7 +5,7 @@ * Copyright 2009, Stephen Hurd. * Don't steal my code bitches. * - * $Id: imapservice.js,v 1.73 2020/02/04 05:19:35 rswindell Exp $ + * $Id: imapservice.js,v 1.74 2020/04/28 06:16:10 deuce Exp $ */ load("sbbsdefs.js"); @@ -456,7 +456,7 @@ function send_fetch_response(msgnum, fmat, uid) if(objtype == undefined) continue; - if(objtype.search(/^BODY\[[0-9.]*HEADER\.FIELDS$/)==0) { + if(objtype.search(/^BODY\[[0-9.]*HEADER\.FIELDS$/i)==0) { tmp=''; for(j in fmat[i]) { if(part.headers[fmat[i][j].toLowerCase()]!=undefined) @@ -465,7 +465,7 @@ function send_fetch_response(msgnum, fmat, uid) resp += objtype+" ("+fmat[i].join(" ")+")] "+encode_binary(tmp+"\r\n")+" "; } - if(objtype.search(/^BODY\[[0-9.]*HEADER\.FIELDS\.NOT$/)==0) { + if(objtype.search(/^BODY\[[0-9.]*HEADER\.FIELDS\.NOT$/i)==0) { tmp=eval(part.headers.toSource()); delete tmp['::']; delete tmp[':mime:']; @@ -522,17 +522,17 @@ function send_fetch_response(msgnum, fmat, uid) case 'RFC822.TEXT': set_seen_flag(); get_rfc822_text(); - resp += fmat[i].replace(/\.PEEK/,"").toUpperCase()+" "+encode_binary(rfc822.text)+" "; + resp += fmat[i].replace(/\.PEEK/i,"").toUpperCase()+" "+encode_binary(rfc822.text)+" "; break; case 'RFC822.HEADER': set_seen_flag(); get_rfc822_header(); - resp += fmat[i].replace(/\.PEEK/,"").toUpperCase()+" "+encode_binary(rfc822.header)+" "; + resp += fmat[i].replace(/\.PEEK/i,"").toUpperCase()+" "+encode_binary(rfc822.header)+" "; break; case 'RFC822': set_seen_flag(); get_rfc822(); - resp += fmat[i].replace(/\.PEEK/,"").toUpperCase()+" "+encode_binary(rfc822.header+rfc822.text)+" "; + resp += fmat[i].replace(/\.PEEK/i,"").toUpperCase()+" "+encode_binary(rfc822.header+rfc822.text)+" "; break; case 'ENVELOPE': set_seen_flag();