Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Calculating ezmlm-hash of an email address

// Calculates the ezmlm-hash of an email address for use with mysql

email_address.downcase.split('').inject(5381) { |h,c| ((h + (h << 5)) ^ c[0]) % (2 << 31) } % 53

ezmlm command line reference

List all email addresses in list
ezmlm-list /path/to/mldir


Add an email address to the list
ezmlm-sub /path/to/mldir foo@bar.com



Remove an email address from the list
ezmlm-unsub /path/to/mldir foo@bar.com

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS