instruction = 'Please select the meta patterns you want to keep and copy/paste them into the Meta Patterns drawer in the new JunkMatcher.app.'
elif srcFN == 'safeIP.txt':
instruction = 'Please select the IP patterns you want to keep, and copy/paste them into the "Safe IP Patterns" window - this window is accessible via the Test Inspector window over the property "Open relay" in the new JunkMatcher.app.'
elif srcFN == 'safeRecipients.txt':
instruction = 'Please select the email address patterns that are used to send emails to you, and copy/paste them into the "Recipient Patterns" window - this window is accessible via the Test Inspector window over the property "Recipient(s) mismatch" in the new JunkMatcher.app.'
else:
instruction = 'The following patterns were used to match message view: "%s". \
Select the patterns you need and copy/paste them to target the same message view in the new JunkMatcher.app.' % instruction
if patternList is not None:
f = openFile(os.path.join(destPath, title + '.html'), 'w', 'utf8')
f = openFile(os.path.join(destPath, 'Whitelist.html'), 'w', 'utf8')
f.write(htmlTemplate % (title, 'Old Whitelist',
'<b>Instruction:</b> Please select the email addresses you want to whitelist into the Whitelist window of the new JunkMatcher.app (accessible via one of the toolbars).',
f = openFile(os.path.join(destPath, 'Safe Sites.html'), 'w', 'utf8')
f.write(htmlTemplate % (title, 'Old list of Safe Sites',
'<b>Instruction:</b> Please select the URL patterns you want to avoid collecting and copy/paste them into the Safe Sites drawer in the new JunkMatcher.app (accessible via the Sites window, on one of the toolbars).',