代码:
将extra.h中的
#define QUEUE_EXTRA ""
#define QUEUE_EXTRALEN 0
改成
#define QUEUE_EXTRA "Tlog\0"
#define QUEUE_EXTRALEN sizeof(QUEUE_EXTRA)
我改了上面的设定后
MAKE SETUP CHECK 出现
[root@redhat2 qmail-1.03]# make setup
./load qmail-send qsutil.o control.o constmap.o newfield.o \
prioq.o trigger.o fmtqfn.o quote.o now.o readsubdir.o \
qmail.o date822fmt.o datetime.a case.a ndelay.a getln.a \
wait.a seek.a fd.a sig.a open.a lock.a stralloc.a alloc.a \
substdio.a error.a str.a fs.a auto_qmail.o auto_split.o
qmail.o(.text+0x1d): In function `setup_qqargs':
: undefined reference to `env_get'
collect2: ld returned 1 exit status
make: *** [qmail-send] Error 1
上面那个错误有没有问题啊?
liuwping 回复于:2003-10-29 15:50:24
上面那个 LOG 可以用 列表吗 ?
gadfly 回复于:2003-10-29 17:27:14
你这个错误和改了这个文件没有关系。估计是你的Makefile不对了。
另外改了这个文件只需要替换qmail-queue就可以了。
所以
make qmail-queue
cp qmail-queue /var/qmail/bin
就可以了
可能可以用列表你可以试试
TlogTanother看看
liuwping 回复于:2003-10-29 18:44:41
但我有用 QMAIL-SCANNER 即 QMAIL-SCANNET 有代替了QMAIL-QUEUE 的!
reidstone 回复于:2003-10-30 08:45:44
好像qmail-scanner要使用qmail-queue的补丁先哦
Bruce Guenter's QMAILQUEUE patch is required to enable Qmail to call a different qmail-queue program than the one compiled in by default. Qmail-scanner's qmail-scanner-queue.pl perl script is used instead of Qmail's qmail-queue binary. After qmail-scanner-queue.pl has run, it calls the original qmail-queue binary to resubmit the message back into the system.
liuwping 回复于:2003-10-30 09:08:40
QMAIL-QUEUE 的补丁,装QMAIL 时就都有装了!
#patch -p1 < ../qmailqueue-patch
也就是这个吧!
reidstone 回复于:2003-10-30 09:24:32
你是编译qmail出问题,用的什么操作系统呢?
liuwping 回复于:2003-10-30 09:49:52
我用 redhat9
reidstone 回复于:2003-10-30 09:52:38
那应该还要打相应的补丁的,你可以在论坛找找看,有讲这个的
liuwping 回复于:2003-10-30 10:51:01
OK,我找找!
liuwping 回复于:2003-10-31 08:56:26
试了好多次, 发现在 那个地方如用 sizeof(QUEUE_EXTRA) 我的QMAIL 就有问题!
liuwping 回复于:2003-10-31 09:08:43
Tlog\0Tanother\0 这种方式可以使用呢, 测试成功, 感谢 gadfly ,不过那个SIZEOF 功能用不了,一用QMAIL 就有问题的! 不能正常收发电邮!
gadfly 回复于:2003-10-31 18:23:57
不能这样
Tlog\0Tanother\0
必须
这样
"TlogTanother\0"
否则,你后面的哪个没有用
sizeof()应该可以的,不行你就试试直接用数字大小是字符串的长度+1。
记住\0不算长度
你对照原始的Tlog的就知道了
liuwping 回复于:2003-10-31 19:54:10
我现在就是用 Tlog\0Tanother\0 这种方式啊, \0 算一个符号,
如果我一用 sizeof(XXX) 就用不了啦!
|