# d_QNial_mine/email - Thunderbird anonymous email real-time process.ndf # www.BillHowell.ca Oct2018 based on based on # d_QNial_mine[email - split Thunderbird email folder.ndf, email - ThunderBlog.ndf] # WCCI2020 HELP web-page - processes anonymous Thunderbird emails real-time # motivation : Avoid spammer pick-up of Organising Committee emails f_emailProcess := 'email - Thunderbird anonymous email real-time process.ndf' ; write link 'loading ' f_emailSplit ; lq_emailProcess IS loaddefs link d_QNial_mine f_emailProcess # loaddefs link d_QNial_mine f_emailProcess #**************************** # Contents - email - extract, sort, cull addresses from text.ndf # ??operators etc #******************************************* # Setup (kind of like header info) flag_break := l ; flag_debug := l ; # Reminder of debug setup... # IF flag_break = l THEN Break ; ENDIF ; write_debug IS OP AAA { NONLOCAL flag_debug ; IF flag_debug THEN write AAA ; ENDIF ; } # Defined in Qnial/profile.ndf # d_QNial_mine := '/media/bill/PROJECTS/Qnial/MY_NDFS/' ; IF not in "TOSTRING_SEP (EACH first symbols 0) THEN loaddefs (link d_QNial_mine 'strings.ndf') 0 ; ENDIF; # *regexp_substitute* R S T [O] replace one or more substrings in string T that match the regular expression pattern R with string S # loaddefs link d_QNial_mine f_emailProcess #****************** # Global variables etc # see header file d_QNial_mine 'email - split Thunderbird email folder, header.ndf' # I copied loaddefs link d_QNial_mine 'email - split Thunderbird email folder.ndf' #IF flag_break = l THEN Break ; ENDIF ; # loaddefs link d_QNial_mine f_emailProcess #********************************* # inbox_process IS OP p_inbox { LOCAL ; NONLOCAL ; % ; #********************************* # Procedure for mass email processing : # 1. move '/media/bill/SWAPPER/Thunderbird/n4caryuo.default/Mail/Local Folders/0_Lexicom INNS email server.sbd/a_raw responses' to : d_archive (= '/media/bill/SWAPPER/a_INNS Lexicom email server/d_Archive/') and create an empty Thunderbird file 'a_raw responses' and delete corresponding '.msf' file to force regeneration Thunderbird menu -> to regenerate .msf # qnial> massEmails_data # EITHER individually : # 1. qnial> emailSplit_folder - this splits "a_raw responses" into folders # qnial> emailSplit_stats - provides email counts in each folder # OR combined : # 1. qnial> emailSplit_and_stats - provides email stats BEFORE manually fixing folders # THEN : # 2. Manually check the results, and move emails from one folder to the next # filters_manual ('emSplit dunno','emSplit inquiries','emSplit leftover') are a particular focus # look for mis-classifications # 3. qnial> emailSplit_statsManual - provides email stats AFTER manually fixing folders # 4. Check "" for status # 5. When everything OK, : # qnial> emailSplit_archive #********************************* # Procedure for anonymous HELPER emails : # qnial> massEmails_data # EITHER individually : # 1. qnial> emailSplit_folder - this splits "a_raw responses" into folders # qnial> emailSplit_stats - provides email counts in each folder # OR combined : # 1. qnial> emailSplit_and_stats - provides email stats BEFORE manually fixing folders # THEN : # 2. Manually check the results, and move emails from one folder to the next # filters_manual ('emSplit dunno','emSplit inquiries','emSplit leftover') are a particular focus # look for mis-classifications # 3. qnial> emailSplit_statsManual - provides email stats AFTER manually fixing folders # 4. Check "" for status # 5. When everything OK, : # qnial> emailSplit_archive # loaddefs link d_QNial_mine f_emailProcess loaddefs_ended f_emailProcess ; # enddoc