add debug
[kps.git] / allconv.h
blob3e1bb0af78d0eb339f54f40290a42ba084716acb
1 /* Convert one damain to another.
2 * Be sure all convertion should only be following conditions:
3 * 1. "from" is one of the sub-domain of "to" and "from" includes more than
4 * one person, otherwise convert this one by person convertion.
5 * 2. if "from" is not a sub-domain of "to", it should be a personal domain
6 * belong to one person.
7 * 3. any public mail server domain should be "Unknown".
8 */
9 struct conv_com conv_com[] = {
10 CONV_COM("audacityteam.org", "Hobbyists"),
11 CONV_COM("cmu.edu", "Hobbyists"),
12 CONV_COM("deeprootsystems.com", "Consultants"),
13 CONV_COM("ducksong.com", "Consultants"),
14 CONV_COM("sch.bme.hu", "Academics"),
15 CONV_COM("os.inf.tu-dresden.de", "Academics"),
16 CONV_COM("amd.com", "AMD"),
17 CONV_COM("amd64.org", "AMD"),
18 CONV_COM(NULL, NULL)
21 /* Convert person to one mail address and employer
22 * Be sure all convertion should only be following conditions:
23 * 1. person convertion has higher priority than company convertion.
24 * 2. all mails of one person should be convert to unique address.
25 * 3. if the domain of "from" is not converted to a unique domain, we should
26 * set "to_com".
28 struct conv_per conv_per[] = {
29 CONV_PER_TIME("<ellre923@gmail.com>", NULL, "Fujitsu", 0, 20091031),
30 CONV_PER_TIME("<ellre923@gmail.com>", NULL, "Trend Micro", 20091101, MAXDATE),
31 CONV_PER("<wangchen@cn.fujitsu.com>", "<ellre923@gmail.com>", NULL),
32 CONV_PER(NULL, NULL, NULL)