# Path: config/config.py

# 
# Path: core/common.py
# class Dictionary(dict):
# 	def __getattr__(self, key):
# 		return self.get(key, None)
# 		
# 	__setattr__ = dict.__setitem__
# 	__delattr__ = dict.__delitem__


import os
import sys
import sqlite3
from config.config import DBFile
from core.common import Dictionary
#!/usr/bin/env python
'''
Copyright (C) 2012-2013 Kevin Breen.
This file is part of the Maildb web application
See the 'LICENSE' File for copying permission.
'''

# All The Search Functions Will Be Here


conn = sqlite3.connect(DBFile)
cursor = conn.cursor()

def dict_factory(cursor, row):
	d = Dictionary()
	for idx, col in enumerate(cursor.description):
		setattr(d, col[0], row[idx])
	return d

class MailSearch():
		

	def __init__(self, root="."):
		

# Path: config/config.py

# 
# Path: core/common.py
# class Dictionary(dict):
# 	def __getattr__(self, key):
# 		return self.get(key, None)
# 		
# 	__setattr__ = dict.__setitem__
# 	__delattr__ = dict.__delitem__


# Path: core/search.py
import os
import sys
import sqlite3
from config.config import DBFile
from core.common import Dictionary

#!/usr/bin/env python
'''
Copyright (C) 2012-2013 Kevin Breen.
This file is part of the Maildb web application
See the 'LICENSE' File for copying permission.
'''

# All The Search Functions Will Be Here


conn = sqlite3.connect(DBFile)
cursor = conn.cursor()

def dict_factory(cursor, row):
	d = Dictionary()
	for idx, col in enumerate(cursor.description):
		setattr(d, col[0], row[idx])
	return d

class MailSearch():
		

	def __init__(self, root="."):
		

		self.db_file = DBFile