+

Add support to 'to or cc' Thunderbird condition field

Benjamin Renard [2014-08-25 22:37:09]
Add support to 'to or cc' Thunderbird condition field
Filename
convertFilters
diff --git a/convertFilters b/convertFilters
index 0e92802..2d8a0d2 100755
--- a/convertFilters
+++ b/convertFilters
@@ -126,6 +126,8 @@ for f in tbf:
 					raise Exception('Condition operator "%s" not recognized. Pass' % c['cri_operator'])
 				if c['cri_operand'] in ['subject','to','from']:
 					r['field']=c['cri_operand']
+				elif c['cri_operand']=='to or cc':
+					r['field']='to_or_cc'
 				elif c['cri_operand']=='cc':
 					r['field']='to_or_cc'
 					if not options.dontwarncc:
ViewGit