Skip to content

Commit

Permalink
Merge branch 'master' of ../cvs/exec
Browse files Browse the repository at this point in the history
  • Loading branch information
RealDeuce committed Apr 28, 2020
2 parents 01df63c + c0a5a56 commit 871e607
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exec/imapservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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)
Expand All @@ -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:'];
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 871e607

Please sign in to comment.