i was installing qmail on my linux fedora core 5. I have downloaded the necessary files, unziped it and now applying the necessary patches. when i apply the: patch < ../qmail-maildir++.patch, i obtain this message at the end:

patching file maildirgetquota.c
patch unexpectedly ends in middle of line

How do i solve the error/problem.
also i applied this patch: patch < ../qregex.patch-20020129.txt
an got this result:
patching file qregex.c
patching file qregex.h
patching file qmail-smtpd.c
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #2 succeeded at 49 with fuzz 2.
Hunk #3 succeeded at 94 (offset 1 line).
Hunk #5 succeeded at 232 (offset 35 lines).
Hunk #7 FAILED at 240.
Hunk #8 succeeded at 293 (offset 43 lines).
1 out of 8 hunks FAILED -- saving rejects to file qmail-smtpd.c.rej
patching file Makefile
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 1633 (offset 101 lines).
patching file TARGETS
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 260 (offset 8 lines).
patching file README.qregex

plse help me solve this problem.