public void map(final Object key, final BSONWritable writable, final OutputCollector<MailPair, IntWritable> output,
final Reporter reporter) throws IOException {
BSONObject value = writable.getDoc();
if (value.containsField("headers")) {
BSONObject headers = (BSONObject) value.get("headers");
if (headers.containsField("From") && headers.containsField("To")) {
String from = (String) headers.get("From");
String to = (String) headers.get("To");
String[] recipients = to.split(",");
for (final String recip1 : recipients) {
String recip = recip1.trim();