aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/fs/imap4.c
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
commit02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch)
treef053238978479e408a2b83571443e132f30586ab /src/cmd/upas/fs/imap4.c
parentc0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff)
parent3d1382b98a502d0c34d5ba2c462396acc515016e (diff)
downloadplan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/cmd/upas/fs/imap4.c')
-rw-r--r--src/cmd/upas/fs/imap4.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/upas/fs/imap4.c b/src/cmd/upas/fs/imap4.c
index 48119fa7..7fcc51b5 100644
--- a/src/cmd/upas/fs/imap4.c
+++ b/src/cmd/upas/fs/imap4.c
@@ -136,7 +136,7 @@ imapgrow(Imap *imap, int n)
int i;
if(imap->data == nil){
- imap->base = emalloc(n+1);
+ imap->base = emalloc(n+1);
imap->data = imap->base;
imap->size = n+1;
}
@@ -165,7 +165,7 @@ imap4resp(Imap *imap)
ep = p+Blinelen(&imap->bin);
while(ep > p && (ep[-1]=='\n' || ep[-1]=='\r'))
*--ep = '\0';
-
+
if(imap->debug)
fprint(2, "<- %s\n", p);
strupr(p);
@@ -186,7 +186,7 @@ imap4resp(Imap *imap)
if(*p==' ')
p++;
verb = p;
-
+
if(p = strchr(verb, ' '))
p++;
else
@@ -221,7 +221,7 @@ imap4resp(Imap *imap)
/* <3031 bytes of data> */
/* ) */
if(strstr(p, "RFC822.SIZE") && strstr(p, "BODY[]")){
- if((q = strchr(p, '{'))
+ if((q = strchr(p, '{'))
&& (n=strtol(q+1, &en, 0), *en=='}')){
if(imap->data == nil || n >= imap->size)
imapgrow(imap, n);
@@ -268,7 +268,7 @@ imap4resp(Imap *imap)
/* ) */
/* * 1 FETCH (UID 1 RFC822.HEADER "data") */
if(strstr(p, "RFC822.HEADER") || strstr(p, "RFC822.TEXT")){
- if((q = strchr(p, '{'))
+ if((q = strchr(p, '{'))
&& (n=strtol(q+1, &en, 0), *en=='}')){
if(imap->data == nil || n >= imap->size)
imapgrow(imap, n);