Opened 12 years ago

Closed 12 years ago

#290 closed enhancement (fixed)

the multiple white_list options should be inclusive not exclusive

Reported by: randy@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 2.5.0
Keywords: Cc:


white_list: ... white_list_registered_users: 1 white_list_file: ...

seem to be exclusive, while i expected them to be inclusive, i.e. an incoming matching any of them is allowed.

Attachments (0)

Change History (11)

comment:1 Changed 12 years ago by bas

  • Status changed from new to assigned


The options are exclusive. You can set set white_List and white_list_file. These settings will be combined when into one variable that is checked.

If a user is registered user and white_list_registered_users is set set the mail will be accepted.


comment:2 Changed 12 years ago by randy@…

i had

    white_list_registered_users: 1

and there is a registered user randy with email

i sent email from and it went into a black hole.  i
changed it to

    white_list_registered_users: 1

and it worked


comment:3 Changed 12 years ago by bas

Strange, there n must be a message in a log file that the message is rejected:

  • "'Message rejected : %s not in white list'"

I have done some test and can enable both options can you run the setup in debug mode and sent the output to me?

PS) I made some improvements to trunk so we have some log message for the new settings.

comment:4 Changed 12 years ago by randy@…

it seems logging should be enabled to syslog by default, but i am not
seeing anything


comment:5 Changed 12 years ago by bas

You can set the debug to 1 in email2trac.conf and the raw email message will be saved in /tmp. On the command line:

  • email2trac -n -d < saved_filename

Really strange that you don't have any logging.

comment:6 Changed 12 years ago by randy@… email2trac -n -d < tmpE2aB_0.rgnet.email2trac
2012-02-22 09:44:43,692 email2trac rgnet: Found trac version: 0.12
2012-02-22 09:44:43,966 email2trac rgnet: Loading environment
2012-02-22 09:44:44,335 email2trac rgnet: Main function parse
2012-02-22 09:44:44,335 email2trac rgnet: DRY_RUN: NOT saving email message
2012-02-22 09:44:44,339 email2trac rgnet: function get_sender_info
2012-02-22 09:44:44,340 email2trac rgnet: function email_to_unicode
2012-02-22 09:44:44,343 email2trac rgnet:        email name: Randy Bush,
email address:
2012-02-22 09:44:44,345 email2trac rgnet: function email_header_acl:
2012-02-22 09:44:44,345 email2trac rgnet: Message rejected :
not in white list

white_list_registered_users: 1

if i comment out white_list: it finds the registered user

what is the logging process name?


comment:7 Changed 12 years ago by bas

the logging process name is:

  • email2trac

Ah Randy which version did you install. The new options are only implemented in the trunk version. I did not release a 2.5.0 version!

If you comment out white_list all users are allowed!

comment:8 Changed 12 years ago by randy@…

i am downloading.  i do not know where to fetch cvs/svn.  and do not say
git to me, i am not a penguinista.

given that i might have other white_list_foo stuff that makes not too
much sense.

i think of it more as

white_list: randy, /usr/local/whitelist, REGISTERED, george, mary

iff it meets any of those conditions it passes.


comment:9 Changed 12 years ago by bas


I just released a new version. Just download this version and everything should work.


comment:10 Changed 12 years ago by randy@…

ok, it seems to work!  thanks.


comment:11 Changed 12 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed
  • Version changed from 2.4.7 to 2.5.0

your welcome. Thanks for testing this new feature. Will close this ticket

Add Comment

Modify Ticket

Change Properties
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.