At 09:37 PM 3/11/01 -0800, you wrote:

>Hi all,
>
>some weeks back, I posted a query about rejecting binary attachments and 
>Chris kindly pointed me to the use of rule files to achieve this.
>
>I've since used the rule file to block binary postings and for the most 
>part, it works. Binary attachments are blocked. My rule file consists of 
>these two lines:
>
>if (isbinary()) reject "Sorry message contains attachments"
>accept "Good message"
>
>
>The thing is this - If I post a message containing a binary attachment 
>using Forte Agent, the message itself gets posted, but the attachment is 
>not. And if I post the same thing using Outlook Express, nothing is posted 
>at all.
>
>My two questions:
>
>1) Can this behavior be controlled on the server or is this decision to 
>not post anything or just post the text part controlled by the client?

It's really the client that is deciding to post the attachment 
separately.  If you look at the headers of the 'text' part of
an agent post, you could probably find a clue that it's got a related 
attachment and you could then reject the text part
as well with an extra rule.


>2) Is there any way to return an error message that the client can display 
>to inform an end-user that the post was rejected because binary postings 
>are not allowed?

If you add to dnews.conf
         spam_debug true
This makes dnews tell the user why a message is rejected.

         ChrisP.'
------------------------------------------------------------

To unsubscribe send to [EMAIL PROTECTED] a message
containing a single line, unsubscribe

Problems with:
  Incoming feed problems:  http://netwinsite.com/dnews/feedsin.htm
  Access rule problems:    http://netwinsite.com/dnews/access.htm
  General FAQ:              http://netwinsite.com/dnews/faq.htm



Reply via email to