Skip to content

Instantly share code, notes, and snippets.


Sahil Tandon tandon

View GitHub Profile
View callbacks.js
// Type JavaScript here and click "Run Code" or press Ctrl + s
console.log('Hello, world!')
// Challenge 1
function addTwo(num) {
return 2 + num
// To check if you've completed it, uncomment these console.logs!
tandon /
Created Aug 17, 2013
A custom handler for Mailman which discards messages with a Message ID that has already been seen for a particular list. A cache of seen IDs is maintained in a pickled dictionary, which is periodically cleansed of old entries.
import os
import errno
import time
import cPickle
from Mailman.Errors import DiscardMessage
from Mailman.Logging.Syslog import syslog
def process(mlist, msg, msgdata):
msgid = msg.get('message-id', None)
You can’t perform that action at this time.