| java.lang.Object org.columba.mail.folder.mailboximport.AbstractMailboxImporter
All known Subclasses: org.columba.mail.folder.mailboximport.MHImporter, org.columba.mail.folder.mailboximport.EvolutionImporter, org.columba.mail.folder.mailboximport.MozillaImporter, org.columba.mail.folder.mailboximport.PegasusMailImporter, org.columba.mail.folder.mailboximport.MBOXImporter, org.columba.mail.EudoraMailImportFilter,
AbstractMailboxImporter | abstract public class AbstractMailboxImporter implements IExtensionInterface(Code) | | This is the base class for mailbox importers.
|
TYPE_DIRECTORY | final public static int TYPE_DIRECTORY(Code) | | |
TYPE_FILE | final public static int TYPE_FILE(Code) | | |
counter | protected int counter(Code) | | |
AbstractMailboxImporter | public AbstractMailboxImporter(IMailbox destinationFolder, File[] sourceFiles)(Code) | | |
AbstractMailboxImporter | public AbstractMailboxImporter()(Code) | | Default constructor
|
getCount | public int getCount()(Code) | | Returns the number of successfully imported messages so far.
|
getDescription | abstract public String getDescription()(Code) | | Override this method to provide an adequate description to the user.
|
getDestinationFolder | public IMailbox getDestinationFolder()(Code) | | Returns the folder new messages will be added to.
|
getSourceFiles | public File[] getSourceFiles()(Code) | | Returns the source files/directories new messages will be read from.
|
getType | public int getType()(Code) | | Override this method to specify type.
the wizard dialog will open the correct file/directory dialog automatically
|
importMailbox | public void importMailbox(IWorkerStatusController worker)(Code) | | Import all mailbox files in Columba. This method makes use of the
importMailbox method you have to override and simply iterates over all
given files/directories.
Parameters: worker - |
importMailboxFile | abstract public void importMailboxFile(File file, IWorkerStatusController worker, IMailbox destFolder) throws Exception(Code) | | Override this method to do the actual import work. In here, the messages
should be read and passed to the folder using saveMessage.
|
setDestinationFolder | public void setDestinationFolder(IMailbox folder)(Code) | | Set the destination folder.
|
setSourceFiles | public void setSourceFiles(File[] files)(Code) | | Sets the source files/directories.
|
|
|