3 messages in net.sourceforge.lists.courier-users[courier-users] Re: submit and enviro...
FromSent OnAttachments
Pawel TeczaAug 30, 2004 4:27 am 
Sam VarshavchikAug 30, 2004 4:55 pm 
Pawel TeczaAug 31, 2004 12:49 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re: submit and environmentActions...
From:Pawel Tecza (pawe@poczta.fm)
Date:Aug 31, 2004 12:49:43 am
List:net.sourceforge.lists.courier-users

When I send a message via telnet, then submit program is invoked 2 times, but it can read

submit should be invoked only once.

Submit on my box is still invoked 2 times. This is part of Jarle Aage's patch and my debug lines in courier/submit.C:

size_t headercnt=500; int headerlimit=100000; const char *p; int header_line_limit=5000; FILE *log = fopen("/tmp/courier.log", "a+");

p = getenv("ESMTP_HEADER_LINE_LIMIT"); // Max bytes (octets) on a single if (p && (atoi(p) >= 1024)) header_line_limit = atoi(p); p = getenv("ESMTP_HEADERLIMIT"); // Max bytes (octets) for the entire header if (p && (atoi(p) >= 20000)) headerlimit = atoi(p); fprintf(log, "header_line_limit=%dn", header_line_limit); fprintf(log, "headerlimit=%dn", headerlimit); fclose(log);

and this is the result in log file:

# tail -f /tmp/courier.log header_line_limit=20000 //my value of ESMTP_HEADER_LINE_LIMIT headerlimit=200000 header_line_limit=20000 //my value of ESMTP_HEADERLIMIT headerlimit=200000

Environment variables can be set up in the bofh configuration file:

opt VARIABLE=value

It seems that it works. Thank you very much!

Pawel