|
|
Choosing A Webhost: |
Re: dbmail 2.0 RC2 pipe.c: msg#00187mail.imap.dbmail
Hi, Thanks for this fix! I've made a small additional change. Because the while-loop now also continues if linemem != 0, I've added a statement to set linemem = 0 if the end of the message (.\r\n as one line) is reached. Ilja all changes to pipe.c: ilja@test01:~/dbmail2_0$ cvs diff pipe.c Index: pipe.c =================================================================== RCS file: /cvsroot-dbmail/dbmail/pipe.c,v retrieving revision 1.99.2.4 diff -r1.99.2.4 pipe.c 582c582 < while (!feof(instream) && !myeof) --- > while ((!feof(instream) && (!myeof)) || (linemem != 0)) 587a588 > usedmem += linemem; 596c597 < while (!feof(instream) && usedmem < READ_BLOCK_SIZE) --- > while (!feof(instream) && (usedmem + linemem < READ_BLOCK_SIZE)) 614a616,618 > /* make sure that the function stops by setting linemem to zero > */ > linemem = 0; 628a633 > Chingson Chen wrote:
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | dbmail 2.0 RC2 pipe.c, Chingson Chen |
|---|---|
| Next by Date: | Ready to take the plunge, Gregory Youngblood |
| Previous by Thread: | dbmail 2.0 RC2 pipe.c, Chingson Chen |
| Next by Thread: | Re: dbmail 2.0 RC2 pipe.c, David Young |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |