https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6939
--- Comment #40 from VR <[email protected]> --- Hey guys, I tested `spamc -U ""` on the command line, and as Kip pointed out, it hangs on STDIN. I understand the motivation for this, but I don't think it should wait at all if the path to the daemon is broken. I don't understand why this is not an issue in SA. In my novice opinion, let's say I try to "cat" a non-existent file, using `cat blah.txt`. If the file is not found, cat politely tells me instead of barking out an error code. >From what I can see, spamc is doing something similar, except it passes the message onto spamd with whatever is passed into STDIN. If that message has nowhere to go (i.e. "" is an invalid path), spamc should inform the calling process (in this case, Evolution and its developers). I've tested Kip's patch and can confirm that it works and resolves this issue, and will probably give the Evolution devs a much easier time in fixing their bug. Let's try to help the Evolution guys a little. I think well-documented and helpful exit codes/messages will only serve to help future developers. If this means rewriting error codes and messages so they're more verbose, then so be it, but I think this case clearly illustrates that the current method is not completely intuitive for developers trying to integrate spamassassin into their work. My two cents. Thank you for reading. VR -- You are receiving this mail because: You are the assignee for the bug.
