Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
tdepim/kmailcvt
Michele Calgaro 3b3f9ec8f3
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
pirms 3 mēnešiem
..
pics Fix invalid headers in PNG files and optimize for size pirms 8 gadiem
samples Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. pirms 15 gadiem
CMakeL10n.txt It is no longer necessary to explicitly specify *.cxx and *.hxx pirms 4 gadiem
CMakeLists.txt Renaming of files in preparation for code style tools. pirms 3 gadiem
Makefile.am Renaming of files in preparation for code style tools. pirms 3 gadiem
README Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version pirms 7 mēnešiem
cr16-app-kmailcvt.png Fix invalid headers in PNG files and optimize for size pirms 8 gadiem
cr32-app-kmailcvt.png Fix invalid headers in PNG files and optimize for size pirms 8 gadiem
cr48-app-kmailcvt.png Fix invalid headers in PNG files and optimize for size pirms 8 gadiem
filter_evolution.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_evolution.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_evolution_v2.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_evolution_v2.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_kmail_archive.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_kmail_archive.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_kmail_maildir.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_kmail_maildir.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_lnotes.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_lnotes.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_mailapp.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_mailapp.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_mbox.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_mbox.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_oe.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_oe.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_opera.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_opera.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_outlook.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_outlook.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_plain.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_plain.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_pmail.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_pmail.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_sylpheed.cpp Replace various Q_* and QT_* defines with TQ_* and TQT_* pirms 8 mēnešiem
filter_sylpheed.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_thebat.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_thebat.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_thunderbird.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filter_thunderbird.h Renaming of files in preparation for code style tools. pirms 3 gadiem
filters.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
filters.h Renaming of files in preparation for code style tools. pirms 3 gadiem
kimportpage.cpp Rename common header files for consistency with class renaming pirms 11 gadiem
kimportpage.h Replace Q_OBJECT with TQ_OBJECT pirms 9 mēnešiem
kimportpagedlg.ui Rename obsolete tq methods to standard names pirms 13 gadiem
kmailcvt.cpp Renaming of files in preparation for code style tools. pirms 3 gadiem
kmailcvt.h Replace Q_OBJECT with TQ_OBJECT pirms 9 mēnešiem
kselfilterpage.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines pirms 3 mēnešiem
kselfilterpage.h Replace Q_OBJECT with TQ_OBJECT pirms 9 mēnešiem
kselfilterpagedlg.ui Rename obsolete tq methods to standard names pirms 13 gadiem
main.cpp Rename common header files for consistency with class renaming pirms 11 gadiem
uninstall.desktop Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. pirms 15 gadiem

README

The KDE Mail Import tool - KMailCVT
===================================

This directory contains the sources for the kmailcvt program. It communicates
with KMail via its DCOP interface to add messages.

Writing a filter
----------------

...is very easy. Create two files filter_myformat.cpp and filter_myformat.h
and add "filter_myformat.cpp" to the end of the kmailcvt_SOURCES line in
Makefile.am and "filter_myformat.cpp filter_myformat.h" to the end of the
EXTRA_DIST line in Makefile.am. Now run "make -f Makefile.cvs; ./configure" in
your tdepim source directory.

In the import method of your filter you are passed a FilterInfo object. This has
the following methods that you may want to use:

    void setFrom( const TQString& from ); // Set to file importing from
    void setTo( const TQString& to ); // Set to folder importing into
    void setCurrent( const TQString& current ); // What we are doing
    void setCurrent( int percent = 0 ); // Set percentage of current file
    void setOverall( int percent = 0 ); // Set overall percentage
    void addLog( const TQString& log ); // Add a message for the user to see
    void alert( const TQString& message ); // Tell user something has gone wrong
    TQWidget *parent(); // The parent widget
    
    bool removeDupMsg; // true, if user selected 'remove duplicated messages'
    
Also, every now and again you should check to see if the shouldTerminate method
returns true, if it does the user has pressed cancel and your import method
should return.

To add messages, extract the email (including all headers) into a KTempFile.
Then use the following:

if(info->removeDupMsg) addMessage( info, folderName, tempfilepath );
else addMessage_fastImport( info, folderName, tempfilepath );

For a simple example, look at filter_plain

Finally for the filter to appear in the combo box in the wizard you need to edit
kselfilterpage.cpp and add an appropriate addFilter() function call.

Danny Kukawka, February 2005
Laurence Anderson, April 2003.