At 20:11 27.05.2000, Jim Breton wrote:
 >Are there any patches available that will make qmail support the RFC 1870
 >SMTP SIZE extension?
 >
 >(I tried searching the ORNL list archive but since the word "size" is
 >returned with every response, my search was useless and returned tons of
 >irrelevant responses. :(  )
 >
 >Thanks.

Here's one:

*** qmail-smtpd.c.orig  Mon May 29 11:54:41 2000
--- qmail-smtpd.c.new   Mon May 29 11:54:59 2000
***************
*** 227,235 ****
--- 227,242 ----
     smtp_greet("250 "); out("\r\n");
     seenmail = 0; dohelo(arg);
   }
+ char size_buf[FMT_ULONG];
+ void smtp_size()
+ {
+   size_buf[fmt_ulong(size_buf,(unsigned long) databytes)] = 0;
+   out("250-SIZE "); out(size_buf); out("\r\n");
+ }
   void smtp_ehlo(arg) char *arg;
   {
     smtp_greet("250-"); out("\r\n250-PIPELINING\r\n250 8BITMIME\r\n");
+   smtp_size();
     seenmail = 0; dohelo(arg);
   }
   void smtp_rset()


regards,
Will
__________________________________________________________________________

  "I was going to be a Neo-Deconstructivist, but Mom wouldn't let me..."

multimedia laboratorium                              [EMAIL PROTECTED]
institut fuer informatik                        (pgp id)        F703D035
der universitaet zuerich                        (office) +41  1 635 4346
winterthurerstr. 190                            (fax)    +41  1 635 6809
ch-8057 zuerich                                 (mobile) +41 76 372 0913
switzerland                                     www.ifi.unizh.ch/~harris
__________________________________________________________________________

Reply via email to