close Warning: Failed to sync with repository "(default)": [Errno 12] Cannot allocate memory; repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
Modify

#191 new defect

[patch] Automatic ignoring, rejecting or accepting queries

Reported by: Michał Nazarewicz <mina86@…> Owned by:
Priority: normal Milestone:
Component: BitlBee Version: 1.0.3
Keywords: query authorization Cc:
IRC client+version: Client-independent Operating System: Linux
OS version/distro:

Description

Here I wrote a patch which adds 4 new configuration options: query_auto_ignore, query_auto_reject, query_auto_accept and query_auto_display. The first three allows user to set a regexp (it's not a regexp really, just a set of strings separated by a pipe character) which, if is matched by the authorisation request, The last option defines if info should be written when query is ignored, rejected or accepted.

For example, one can set query_auto_ignore to http://|https://|ftp:// to ignore requests containing URLS and query_auto_accept to | (single pipe character) to accept all other requests.

I only attach patch for 1.0.3, any patches for any further versions will be available here: http://mina86.com/files

Attachments (2)

bitlbee-1.0.3-query-auto.diff (5.1 KB) - added by Michał Nazarewicz <mina86@…> at 2006-07-31T12:44:54Z.
Allows automatic ignoring, rejecting or accepting requests
bitlbee-1.0.3-query-auto.2.diff (5.0 KB) - added by Michał Nazarewicz <mina86@…> at 2006-08-04T16:08:44Z.
double free bug fixed when auto accepting or rejecting

Download all attachments as: .zip

Change History (4)

Changed at 2006-07-31T12:44:54Z by Michał Nazarewicz <mina86@…>

Allows automatic ignoring, rejecting or accepting requests

comment:1 Changed at 2006-08-01T16:52:53Z by wilmer

Hmm, looks interesting. The list of settings is getting a little bit filled up like this, but it could be nice to include it. I have to think of a way to keep the list a bit more clean...

You're still getting a lot of spam? It pretty much stopped here, after disabling the web-aware flag.

comment:2 Changed at 2006-08-01T21:46:24Z by Michał Nazarewicz <mina86@…>

I enabled it again. ;) I don't think disabling webaware solves the problem and personally prefere having it turned on so that i can put the status icon on the web. Anyways, the patch allows also things other then ignoring. Personally, I am ignoring all reqeusts containing URLs and accept all other.

Changed at 2006-08-04T16:08:44Z by Michał Nazarewicz <mina86@…>

double free bug fixed when auto accepting or rejecting

Modify Ticket

Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.