Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker
In directory sc8-pr-cvs1:/tmp/cvs-serv11953/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker
Modified Files:
MailboxScanner.java
Log Message:
Fixed bugs #865417 and #865679
- Throwing exceptions during processing a message will not stop processing other messages
- Binary attachments are now handled properly (you should set binary=true) in scanner config
- Also new config option has been added to MailboxScanner - deleteInvalid which can be used for deleting messages that are not valid (that raise exceptions)
USE THIS OPTION WITH CAUTION since it can be destructive. It can be usefull when you know that valid e-mails does not throw exceptions and you want to delete all other mails
Index: MailboxScanner.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker/MailboxScanner.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** MailboxScanner.java 4 Dec 2003 00:44:42 -0000 1.30
--- MailboxScanner.java 25 Dec 2003 14:15:50 -0000 1.31
***************
*** 1,70 ****
! /* ====================================================================
! * The Apache Software License, Version 1.1
! *
! * Copyright (c) 2000 The Apache Software Foundation. All rights
! * reserved.
! *
* Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions
! * are met:
! *
[...1022 lines suppressed...]
! options.add(new ConfigOption(MailboxScanner.FROM_FILTER,
! IConfigOptionType.STRING, null, true, I18n
! .get("scanner.MailboxScannerInfo.option.fromFilter")));
! options.add(new ConfigOption(MailboxScanner.TO_FILTER,
! IConfigOptionType.STRING, null, true, I18n
! .get("scanner.MailboxScannerInfo.option.toFilter")));
! options.add(new ConfigOption(MailboxScanner.SUBJECT_FILTER,
! IConfigOptionType.STRING, null, true, I18n
! .get("scanner.MailboxScannerInfo.option.subjectFilter")));
! options.add(new ConfigOption(MailboxScanner.DELETE,
! IConfigOptionType.BOOLEAN, "false", true, I18n
! .get("scanner.MailboxScannerInfo.option.deleteInvalid")));
!
! return options;
! }
}
|