~fuzzgun/emailgraph/trunk-1

« back to all changes in this revision

Viewing changes to emailgraph.h

  • Committer: Bob Mottram
  • Date: 2011-08-29 14:03:10 UTC
  • Revision ID: fuzzgun@gmail.com-20110829140310-xbpkgnag05gzm3c4
Ability to specify contacts to be merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
  struct filename_list * next;
80
80
} filename_list;
81
81
 
 
82
typedef struct {
 
83
  char fromtext[256];
 
84
  char totext[256];
 
85
  struct merge_rule * next;
 
86
} merge_rule;
 
87
 
82
88
#ifdef STYLOMETRICS
83
89
typedef struct {
84
90
  unsigned int sentence_length;
209
215
contact * merge_duplicates(contact *contact_list);
210
216
contact * get_contact(contact * contact_list, int index);
211
217
contact * find_contact(contact * c, contact * contact_list);
 
218
contact * find_contact_email(contact * c, contact * contact_list);
212
219
void free_contacts(contact * contact_list);
213
220
contact * add_contact(contact * c, contact * contact_list, int entry_type);
214
221
void add_contacts(contact * contacts, contact * contact_list, int entry_type, contact ** result);
265
272
void corpus_extract(filename_list * email_list);
266
273
void corpus_update(char * mbox_filename, int start_line_number, int end_line_number, filename_list * email_list);
267
274
 
 
275
/* merge.c */
 
276
void merge_read_file(char * filename, merge_rule * rules);
 
277
void merge_free(merge_rule * rules);
 
278
void merge_contacts_with_rules(contact * contact_list, merge_rule * rules);
 
279
 
268
280
/* words.c */
269
281
int ContainsNonChars(char * ch);
270
282
int ContainsWord(char * ch, char * search);