Changes to 1.0a: Correcting OpenMailScan Extension Manager Fixing adding text to html-mailbody. Completely rewriting function processBody for HTML-Mails Only the highest returncode (count it from top to bottom in config-document) is processed. Changes to 1.0: Mails not containing attachments are not modified any longer Changes to 0.99k: Corrected documentation Bugfix for printing out mime containing '%' to addin-logfile (replacing with underscores) Sanitycheck for not printing out % with AddinLogMessageText (replacing with underscores) Bugfix for filenames containing /,\ and % (replacing with underscores) Adding field MailScanNoteDomain to document, to prevent fetching mails via notes not scanning for viruses. Scans one time per domain. Renaming output-file of virusscanner (replacement for stdout or stderr) to mailscan.out in NOTESDATADIR Bugfix for checking virusscanner returncodes twice, if now one processed rc of virusscanner is found, processing of this mail ends. Changes to 0.99j: Additions to ntf! Replace your desing with new version! Logging of output from virusscanner. New NOTES.INI-Settings: Mailscan_LogtoLognsf=1 write all output from virusscanner to Mail-Event-Log or Mailscan_LogtoLognsf=2 write only output from virusscanner to Mail-Event-Log, if virus found MailScan_fetchVirusName=1 (Requires Mailscan_LogtoLognsf set to one or two) Adds virusname to admin-mail and mail to originator Correct logging to file (ext_mgr) Try to workaround NotesBUG (or Feature?) not saving all attachments in $FILE (You have to use "MailScan_ConvertToCDOn" for this to work!) Changes to 0.99i: Additions to ntf! Replace your desing with new version! Bugfix for mime-mails crashing server Option to disable originator-mail due to returncode of virusscanner (see config-database) Ext-Mgr silenced if extdebuglevel is not set or 0 Changes to 0.99h: Additions to ntf! Replace your desing with new version! Obsolete ENV-Variable MailScan_UseIndependentFileNames New ENV-Variable MailScan_DontUseIndependentFileNames It defaults to use independend filenames. Sometimes some mime-messages could contain dangerous filenames! If your scanner don't support scanning files regardless of file-extension, add this entry to your notes.ini MailScan_DontUseIndependentFileNames=1 New Debugparameters: MailScan_CrashDebug=n Be carefull! Waits n seconds after writing a log line MailScan_DebugPrinoutMIMEMail Print out content of MIME-Mails to log. Fixes: - Faster search. Search only documents for attachments with RoutingState==HOLD AND MailScanNoteProcessed!=TRUE - NEW: Send a message to the original FROM, if a virus is found - Configurable FROM for adminmails (Default: MailScan-System) (Set FROM-Address, Subject and Mailtext in confi-db) - Bugfix for deleting wrong directory with special mime-type-mails (thanks to guenter) - correct handling of mime-messages (only if a virus-infected attachment is found, the mail is converted to CD-format.) Changes to 0.99g Addin: - Faster search. Search only documents for attachments with RoutingState==HOLD Ext_Mgr: - Correcting mail gets delivered twice (scanned and unscanned) 0.99f Implementing enhancemnets from Mikael MailScan_ExtLogFileName 0.99e ExtMgr don't hold mails, if addin isn't running New NOTES.INI-Variable for this case: MailScan_AddinError Set this in NOTES.INI like this MailScan_AddinError=This is my added error message Add reopening of mails in extensionmanager. Domino convert inline mime attachments to CD-format while opening Notes-Documents. MailScan_ConvertToCDOff Save and reopen incoming documents to convert mie to cd Example Switch function off MailScan_ConvertToCDOff=1 Default function is on MailScan_ConvertToCDOff=0 0.99d3 beta Bugfix for Crash on Debian extracting files 0.99d2 beta BugFix for "handle out of range"-error 0.99d beta BugFix for false assertion between Text for Subject and Body and returned error code 0.99c beta BugFix for suddenly stopping MailScan-Servertask (NonExistent or Invalid Dcument) 0.99b beta Change Name from MailScan to OpenMailScan Documentation Bugfixes Changing default debuglevel in configuration examples Adding timestamp to logs Designchanges in Config-Template (Create-Button, Save&Close in Form) Other error handling: Task dosn't stop anymore if it can't process any email 0.99a beta Fixed Errors occuring sending mail and removing attachments. New NOTES.INI variable MailScan_logToFile (0 not logging to file, 1 only logging to file, 2 logging to file and console) File is always appended. Beware of size! MailScan_LogFileName (NOTESDATA\mailscan.log if not set) MailScan_Encrypted (Sets text to tag encrypted mails) 0.99 beta New NOTES.INI variables MailScan_DebugLevel=x MailScan_ExtDebugLevel=y x and y ranging from 0 (minimal) to 3 (very lot) New configuration options in NotesDB removing attachment, replacing with configurable text and real attachment name storing attachment in filesystem or send via mail working directory storing of temp-files in NOTESDATA/workingDirectory/NOTEID/filename (if configured 8.3 compliant!) adding license.txt, publishing source code 0.92 beta first real version more configurable return codes Bugfixing