• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/procmail-14/procmail/src/

Lines Matching defs:chp

134 static int dirfile(chp,linkonly,type)char*const chp;const int linkonly,type;
149 if(chp-buf+sizeNUM(i)>linebuf)
154 do ultstr(0,++i,chp); /* find first empty MH folder */
166 { if(!unique(buf,chp,linebuf,NORMperm,verbose,doMAILDIR))
169 memcpy(chp-MAILDIRLEN-1,maildirnew,MAILDIRLEN); /* but link directly */
173 if(chp-buf+mpl+sizeNUM(stbuf.st_ino)>linebuf)
176 ultoan((unsigned long)stbuf.st_ino,strcpy(chp,msgprefix)+mpl);
196 { char*chp,*chp2;mode_t mode;int fd,type;
213 chp=strchr(buf,'\0');
223 { strcpy(chp,lockext);
226 *chp='\0';
255 chp2=buf2+(chp-buf)-MAILDIRLEN;
256 *chp++= *MCDIRSEP_;
260 if(0>(fd=unique(buf,chp,linebuf,NORMperm,verbose,doFD|doMAILDIR)))
267 strcpy(chp2,chp);
288 *chp++= *MCDIRSEP_;
290 chp2=buf2+(chp-buf);
292 0>(fd=dirfile(chp,0,type)))
307 { chp[-1]='\0'; /* restore folder name */
317 chp=strchr(buf,'\0');
318 *chp= *MCDIRSEP_;
319 if(dirfile(chp+1,1,type)) /* link it with the original in buf2 */
321 { *chp='\0';
334 { char*chp,*chp2;int i;static const char sfolder[]=FOLDER;
337 if(eqFrom_(chp=themail.p)) /* any "From " header */
338 { if(chp=strchr(themail.p,'\n'))
339 *chp='\0';
341 chp=thebody; /* preserve mailbox format */
342 elog(themail.p);elog(newline);*chp='\n'; /* (any length) */
346 (chp=egrepin(NSUBJECT,chp,(long)(thebody-chp),0)))
348 for(chp2= --chp;*--chp2!='\n';);
349 if((subjlen=chp-++chp2)>MAXSUBJECTSHOW)
375 { char*chp,*pastend;static size_t contlengthoffset;
427 (chp=egrepin("^Content-Length:",themail.p,
429 contlengthoffset=chp-themail.p;
434 if((chp=thebody)>themail.p)
435 chp--;
438 chp=themail.p+contlengthoffset;cntlen=filled-(thebody-themail.p);
442 { switch(*chp)
445 *chp++='9',places++,actcntlen=(unsigned long)actcntlen*10+9;
447 *chp++=' '; /* ultra long Content-Length: field */
458 chp=thebody+actcntlen; /* skip the actual no we specified */
460 restbody=chp;mailread=1;