On Fri, Dec 17, 1999 at 09:53:53AM -0800, Kai MacTane wrote:
> At 11:55 AM 12/17/99 +0100, you wrote:
> >[EMAIL PROTECTED] wrote:
> >> 
> >> Tried putting /dev/null in the .qmail but I get this error:
> >> 
> >>     Error_while_writing_message._(#4.3.0)
> >> 
> >> Any ideas? Haven't had time to search the docs/web though.
> >
> >make .qmail an empty file, or a file with only comments.

Comments. Empty file will trigger default instructions.

> .qmail-devnull:
> /dev/null

Should work theoretically, I think...

[snip]
> .qmail-devnull:
> |/dev/null

Is complete and utter bullshit.

[snip]
> 
> .qmail-devnull:
> # Comment. Deliver to /dev/null?

Discards the message as requested.

> Dec 17 09:44:24 gateway qmail: 945452664.275136 starting delivery 3165: msg
> 1194
> 6 to local [EMAIL PROTECTED]
> Dec 17 09:44:24 gateway qmail: 945452664.275647 status: local 1/10 remote 0/20
> Dec 17 09:44:24 gateway qmail: 945452664.332010 delivery 3165: success:
> did_0+0+0/
> Dec 17 09:44:24 gateway qmail: 945452664.363332 status: local 0/10 remote 0/20
> Dec 17 09:44:24 gateway qmail: 945452664.363701 end msg 11946
> 
> I did not try an empty file, as man dot-qmail states:
> 
>        If .qmail is completely empty (0 bytes long), or does  not
>        exist,  qmail-local  follows  the defaultdelivery instruc�
>        tions set by your system administrator; normally  default�
>        delivery  is  ./Mailbox,  so  qmail-local appends the mail
>        message to Mailbox in mbox format.
> 
> However, the documentation doesn't say anything about delivering to
> /dev/null if it finds only a comment line. (Indeed, I suspect that
> qmail-local is simply silently discarding the message, rather than
> explicitly attempting delivery to /dev/null.)

I don't know where I've read it, but it's true :)

> While it may be deducible that a .qmail file consisting of only one comment
> line (or of only comment lines) would result in silent discarding of
> messages, perhaps it should be made explicitly clear in the documentation?

I think that would be a good idea :)

> It isn't intuitively obvious, especially since it differs from
> qmail-local's behavior in the case of an empty (but present) .qmail file.

Correct.

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
|                             Bjarne Stroustrup, Inventor of C++

Reply via email to