summaryrefslogtreecommitdiffstats
path: root/src/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Introduce a new function to test content type contentDamien Caliste2018-09-111-2/+2
| | | | | | | | | | | Create a new function to ensure that content type matching is always done case insensitive. Originally the comparison was done after a toLower(), but forgetting this, like in src/libraries/qmfclient/qmailmessage.cpp#6252, can create bugs. Change-Id: Ia93e068e5374c346c94c2afe4de768d3833b4a9a Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Add QMF_NO_WIDGETS option to disable QtWidgets depending codePekka Vuorela2018-09-071-1/+1
| | | | | | | | | | | | QMF_NO_MESSAGE_SERVICE_EDITOR used to have this effect but now that QmfWidget is a separate module, it pulls in QtWidgets. There could be use for disabling service editors, but still keeping QmfWidgets, but now for simplicity just disabling both with the new option. Change-Id: Iebb5c52aab4b645572f694bae8c5ed40e8d6aa6b Reviewed-by: Christopher Adams <chris.adams@jollamobile.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* [qmf] onlineMoveFolder API + IMAP implementationMichael Nosov2018-08-235-2/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | API to move folder in the hierarchy. Implementation is mostly based on 'onlineRenameFolder' API implementation Testing: ======== 1) Gmail account: Try to move a folder from one folder to another. Expected result: move success 2) Gmail account: Try to move a folder from one folder to root. Expected: move success 3) Gmail account: Try to move top-level (root) folder to some other folder. Expected result: move success 4) Binary compatibility - Verify that existing 3rd party QMF plugins still work well with new QMF - Try to move folder for 3rd party QMF account (which doesn't have implementation of MoveFolder) Verify that MoveFolder action is failed. Verify in logs that action is completed with "This function is not currently supported" error 5) Gmail account (handling errors): - Delete folder A on Web UI - Try to move folder A to folder B on device - Verify that action is failed - Try to perform some moveFolder operations again - Verify that those operation are completed (e.g. completion is not freezed) Change-Id: Ifd59ad4fe9c41d17963aa64101b203d31dcdfb2d Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Compile with GCC 6 -Werror=zero-as-null-pointer-constantChris Adams2018-07-191-1/+1
| | | | | Change-Id: I67eb29e13c5e643ee2f58a0696400e085999c01c Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Update licensing to match latest approach in QtCore.Robin Burchell2015-08-2810-222/+142
| | | | | Change-Id: Icce55517963f0cbc35211e9fc6f1a0fc413f5676 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Fix memory leak in NewCountNotifier.Valerio Valerio2014-09-051-2/+2
| | | | | | | | | NewCountNotifier was never deleted because it never emitted any signals. Original Author: Slava Monich <slava.monich@jolla.com> Change-Id: I4e85256c4e40b0c386ce6f58f7a9a1637217dd16 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Convert qmfclient & qmfmessageserver into Qt modules: QmfClient & ↵Robin Burchell2014-01-236-24/+6
| | | | | | | | | | | | | | | | | | | | | QmfMessageServer. This was not possible prior to now due to Qt 4 support hanging around like the undead vampire it is, but now we purged it with fire and light, and the build system looks a lot less like a stinky, decomposed corpse. There's still a lot of surprises lurking: qtmail is one such surprise. I don't quite grasp why it's so heavy on plugins, and qmfutil also needs some... attention. But at least it's a start. As part of this work, we rename the qcop headers to fit the private convention. This could have been done in a prior commit, but given that I didn't have an easy way to build prior to this commit, I opted to roll them together. Change-Id: Ia3e288ffc3639a7751c9040ceecb54fca77a31b1 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com>
* Remove Qt 4 support.Robin Burchell2014-01-211-17/+6
| | | | | | | | | | | This has persisted long enough, and as far as I am aware, has no users. It is also blocking potential build system cleanups and other good things. Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Change-Id: I5e0e0549ef6ffee31b5e60ec94a9e17f27e01436 Reviewed-by: John Brooks <john.brooks@dereferenced.net> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* OS X: Don't build messageserver binary as a bundle.Robin Burchell2014-01-201-0/+1
| | | | | Change-Id: I3215c99d44dc28b70890fcdd2dd3e4c2e10ba511 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Detection of libraries built as framework or dylib on MacTakahiro Hashimoto2014-01-171-2/+10
| | | | | | | | | | This makes build system detect if Qt libraries are built as framework or not and add correct flags to LIBS. Change-Id: Ifb0d2ed87f5d624966395bce39959ce53f1dee89 Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com> Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Rework the build system to better use parallel builds.4.0.3Robin Burchell2013-08-071-0/+2
| | | | | | | | | | Instead of having one gigantic master .pro, split things out into multiple SUBDIRS templates. This allows for slightly better grained build dependencies without losing the sanity of a clearly understandable build system. Change-Id: Ib09cd6170bcf8be55a1b351731f9a6451bb82d27 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Add missing include.Davide Pesavento2013-07-291-0/+1
| | | | | | | | | | | | | Fixes the following compilation errors with gcc 4.7 and later. messageserver.cpp: In static member function 'static void MessageServer::hupSignalHandler(int)': messageserver.cpp:501:5: error: '::write' has not been declared messageserver.cpp: In member function 'void MessageServer::handleSigHup()': messageserver.cpp:508:5: error: '::read' has not been declared Change-Id: I6fbcf2cba884f5e285c0259e020c60f4a44173b4 Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Remove obsolete ifdef.Valerio Valerio2013-06-251-4/+0
| | | | | | Change-Id: I379598ddb440fe5c7474873c078cade05c8e5fb6 Signed-off-by: Valerio Valerio <valerio.valerio@jollamobile.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Introduce messageserver plugins.4.0.2Valerio Valerio2013-06-242-0/+16
| | | | | | | | | | | | MessageServer plugins will be loaded and executed in the messageserver main loop, these plugins should only be used for services that need to know information about the operations initiated by all clients connected to messageserver. To make use of this functionality qmf should be compiled with 'DEFINES+=MESSAGESERVER_PLUGINS'. Change-Id: I6bebb150645d2c70a5bc67ffcaaa904f94ed3705 Signed-off-by: Valerio Valerio <valerio.valerio@jollamobile.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Allow parallel installation of qt4 and qt5 buildsValerio Valerio2013-04-261-3/+10
| | | | | | | | Signed-off-by: Valerio Valerio <valerio.valerio@jollamobile.com> Change-Id: I2c03d287fc871098cf45d75d4a1262b9c6c4378d Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Update Qt 5 port to match latest releaseValerio Valerio2013-04-191-1/+5
| | | | | | | | Update code base to match latest release of Qt. Signed-off-by: Valerio Valerio <valerio.valerio@jollamobile.com> Change-Id: I02c2ff250ea8cd960938b81903e92b04c745ae9c Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Remove Symbian support.Robin Burchell2013-02-284-23/+8
| | | | | | | | Symbian is not a supported platform anymore. Change-Id: I82e618e756ae0b247e6e038fa9d8d43fb90b44ff Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Change to new-form Digia license headers.Robin Burchell2013-02-1210-241/+241
| | | | | Change-Id: If0f4427ee93a37de4ebd9e097defd8b3956f0fc6 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* s/Nokia/QtProject/ in settings files.Robin Burchell2012-12-052-5/+5
| | | | | | | | | | minor, but matches the changes made in Qt 5, and reflects that Nokia is no longer the vendor of this software. Change-Id: I3b324b813359f53e65760f3ce7a751dbd5c970e7 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com> Reviewed-by: Valerio Valerio <vdv100@gmail.com>
* Prevent double deletion when canceling service action.Don Sanders2012-05-111-1/+3
| | | | Patch from Edit Siket-Szasz
* Replace uses of qDebug with qMailLog.Don Sanders2012-04-201-1/+0
| | | | | | | | | | | | | | As qDebug shouldn't be used in release code, and may become deprecated. There's still some uses of qDebug left, namely, some automated tests that actually test qDebug/qMailLog functionality, some uses of qDebug in uncompiled documentation code snippet examples, one use of include QDebug in symbian code, and in qmailid some uses of defining operator<<(QDebug <<, ...). There's still about 500 uses of qWarning and qFatal left. For these I include qmaillog.h as currently that inclues QDebug. Apart from the one symbian case already mention.
* Add logging for when a service action begins and finishes.Don Sanders2012-04-191-0/+33
|
* FWOD fix, don't try to upload email twice to remote serverDon Sanders2012-04-181-2/+8
| | | | | | | | | | | | | When sending a forward without download message, with a sent folder on the server, a second spurious attempt was being made to APPEND the message into the sent folder on the server. (Test server ignored the spurious append, so no error was detected). So fix this, checked for regressions in 4 cases: Forward without download with sent folder on server. Forward without download without sent folder on server. Normal sending (non-fwod) with sent folder on server. Normal sending without sent folder on server.
* Prevent uninitialized variable being referenced.Don Sanders2012-03-291-1/+1
| | | | | By initializing variable. Don't expect that this code path can be hit in practice. So just eliminate spurious warning.
* Fix small mistake from previous commit.Valerio Valerio2012-03-291-1/+1
|
* Enable log categories without restarting messageserver.Valerio Valerio2012-03-291-1/+14
| | | | Use 'kill -SIGHUP $(pidof messageserver)'
* Fix NB#290380 'ServiceHandler should keep all the info about running actions'Don Sanders2012-03-232-3/+31
| | | | | | | | | Keep info about QMailServiceAction::Status and progress of running actions. Tested by starting serverobserver tool after starting a long sync, waiting until previewing progress was > 0%, and putting some judicious qDebugs in.
* Fix Qtwidgets includes.Valerio Valerio2012-03-231-2/+2
| | | | Make sure all GUI code is under QMF_NO_MESSAGE_SERVICE_EDITOR config option.
* Ensure async disconnection actions emit activityChanged signal.Don Sanders2012-03-221-0/+10
| | | | And update auto test.
* Build fixes for Qt5 and remove some spurious DEPENDS_ON macrosDon Sanders2012-03-121-0/+1
| | | | | | as they do nothing. Thanks to Valerio for the patch.
* Fix bug whereby discard messages service actions weren't removed from expiry ↵Don Sanders2012-03-122-13/+10
| | | | | | queue. Were clogging up the queue of actions to be serviced.
* Limit concurrent serviceactions, facilitates limiting RAM usage.Don Sanders2012-02-241-1/+23
| | | | | | | | | | | Only allow 2 concurrent actions to be serviced on the device. Only allow 1 concurrent action per process. Fix a bug whereby invalid actions where being added to mActiveActions. Add 2 new functions (quasi public) QMF_EXPORT int maximumConcurrentServiceActions(); QMF_EXPORT int maximumConcurrentServiceActionsPerProcess();
* BIC: Update the imap plugin to use the public QMailServiceAction interface.Don Sanders2012-02-235-0/+43
| | | | | | | | | Instead of using its own private interface for push email and interval checking operations. This change will faciliate monitoring of push email network operations, and limiting peak memory use. Required adding a new service action, retrieveNewMessages, for retrieving new messages in a folder without updating existing messages.
* Fix onlineCreateFolder service action.Valerio Valerio2012-02-161-2/+1
| | | | | | | | | | | | | | | | | | | onlineCreateFolder service action was not returning when trying to create a folder in the root of the folder list. Fix accidentally committed in previous commit: void ServiceHandler::onlineCreateFolder(quint64 action, const QString &name, const QMailAccountId &accountId, const QMailFolderId &parentId) { if(accountId.isValid()) { - QSet<QMailAccountId> accounts = folderAccount(parentId); + + QSet<QMailAccountId> accounts; + if (parentId.isValid()) { + accounts = folderAccount(parentId); + } else { + accounts.insert(accountId); + }
* Merge MeeGo QMF conversations supportValerio Valerio2012-02-161-1/+9
|
* Add service action to find and create standard folders.Valerio Valerio2012-01-275-0/+42
| | | | | | | | | | | | void QMailRetrievalAction::createStandardFolders(const QMailAccountId &accountId) Requests that the message server create the standard folders for the account accountId. If all standard folders are already set in the storage the service action will return success immediately, in case some standard folders are not set, a matching attempt against a predefined list of translations will be made, if the folders can't be matched, messageserver will try to create them in the server side and match them if the creation is successful. In case folder creation is not allowed for the account accountId the service action will return.
* Add 'transmitMessage(quint64 action, const QMailMessageId &messageId)'Valerio Valerio2012-01-175-0/+79
| | | | | | | | void QMailMessageServer::transmitMessage(quint64 action, const QMailMessageId &messageId) Requests that the MessageServer application transmit the message identified by 'messageId' that are currently in the Outbox folder. The request has the identifier 'action'.
* Fixes: NB#272117Valerio Valerio2012-01-131-1/+44
| | | | | | | | Ported from MeeGo QMF. Set custom fields, fix caching, set msg id in QMailServiceAction::Status when TX fails. Ensure that messageserver does not crash when sending email with invalid smtp server address or invalid smtp commands, proper error will be reported.
* Add disconnected storage actions, for actions requiring database writes.2012W02Don Sanders2012-01-105-0/+109
| | | | | | | | | | | | | | | | | | | | | | | Specifically, as documented in src/libraries/qmfclient/CHANGES.qdoc item 52, added: 'void QMailStorageAction::deleteMessages(quint64, const QMailMessageIdList &ids)', 'void QMailStorageAction::rollBackUpdates(quint64, const QMailAccountId &mailAccountId)', 'void QMailStorageAction::moveToStandardFolder(quint64, const QMailMessageIdList& ids, QMailFolder::StandardFolder standardFolder)', 'void QMailStorageAction::moveToFolder(quint64, const QMailMessageIdList& ids, const QMailFolderId& folderId)', 'void QMailStorageAction::flagMessages(quint64, const QMailMessageIdList& ids, quint64 setMask, quint64 unsetMask)', 'void QMailStorageAction::restoreToPreviousFolder(quint64, const QMailMessageKey& key)', 'void QMailMessageServer::deleteMessages(quint64, const QMailMessageIdList &ids)', 'void QMailMessageServer::rollBackUpdates(quint64, const QMailAccountId &mailAccountId)', 'void QMailMessageServer::moveToStandardFolder(quint64, const QMailMessageIdList& ids, quint64 standardFolder)', 'void QMailMessageServer::moveToFolder(quint64, const QMailMessageIdList& ids, const QMailFolderId& folderId)', 'void QMailMessageServer::flagMessages(quint64, const QMailMessageIdList& ids, quint64 setMask, quint64 unsetMask)' and 'void QMailMessageServer::restoreToPreviousFolder(quint64, const QMailMessageKey& key)'. Also added documentation for new functions, and made some minor documentation updates for existing functions. Additionally added a new set of module tests tst_qmailstorageaction. These tests require the messageserver to be running. They are not just stubs but do real testing.
* Rename some QMailStorageAction functions to indicate they require the device ↵2012W01_1Don Sanders2012-01-055-71/+71
| | | | | | | | | | | | | | | | | | | | | | | | | to be online. Specifically: Renamed 'void QMailStorageAction::deleteMessages(const QMailMessageIdList &ids)' to onlineDeleteMessages, 'void QMailStorageAction::copyMessages(const QMailMessageIdList &ids, const QMailFolderId &destinationId)' to onlineCopyMessages, 'void QMailStorageAction::moveMessages(const QMailMessageIdList &ids, const QMailFolderId &destinationId)' to onlineMoveMessages, 'void QMailStorageAction::flagMessages(const QMailMessageIdList &ids, quint64 setMask, quint64 unsetMask)' to onlineFlagMessages, 'void QMailStorageAction::createFolder(const QString &name, const QMailAccountId &accountId, const QMailFolderId &parentId)' to onlineCreateFolder, 'void QMailStorageAction::renameFolder(const QMailFolderId &folderId, const QString &name)' to onlineRenameFolder, 'void QMailStorageAction::deleteFolder(const QMailFolderId &folderId)' to onlineDeleteFolder. 'void QMailMessageServer::deleteMessages(const QMailMessageIdList &ids)' to onlineDeleteMessages, 'void QMailMessageServer::copyMessages(const QMailMessageIdList &ids, const QMailFolderId &destinationId)' to onlineCopyMessages, 'void QMailMessageServer::moveMessages(const QMailMessageIdList &ids, const QMailFolderId &destinationId)' to onlineMoveMessages, 'void QMailMessageServer::flagMessages(const QMailMessageIdList &ids, quint64 setMask, quint64 unsetMask)' to onlineFlagMessages, 'void QMailMessageServer::createFolder(const QString &name, const QMailAccountId &accountId, const QMailFolderId &parentId)' to onlineCreateFolder, 'void QMailMessageServer::renameFolder(const QMailFolderId &folderId, const QString &name)' to onlineRenameFolder, 'void QMailMessageServer::deleteFolder(const QMailFolderId &folderId)' to onlineDeleteFolder. Additionally updated the doc to fix some assorted discrepancies, and indicate which functions require the device to be online. Have not yet regenerated the html version of the doc.
* Added QMailSearchAction::countMessages function, and ↵Don Sanders2011-11-215-10/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | QMailMessageServer::messagesCount signal. QMailSearchAction::countMessages(const QMailMessageKey &filter, const QString &bodyText) function Requests that the message server count all messages that match the criteria specified by \a filter. If \a bodyText is non-empty then messages that contain the supplied text in their content will also be matched and counted. It should be implemented for all protocol plugins for accounts with the QMailAccount::CanSearchOnServer flag set. Implemented for IMAP plugin, accelerated by use of ESEARH IMAP extension when supported by the remote server. QMailSearchAction::messagesCount(uint count) This signal emits the \a count of matching messages on the remote server. Only emitted for remote searches. Emitted by countMessages, and searchMessages functions. uint QMailSearchAction::messagesCount() const Returns the count of matching messages on the remote server. Also implemented boiler plate code in QMailMessageServer etc.
* Update remote server search API.Don Sanders2011-11-175-5/+72
| | | | | | | Add 'QMailSearchAction::remainingMessagesCount(uint count) signal. and 'QMailSearchAction::searchMessages' function with limit argument. Also add doc.
* Revert "Integrate fix for NB#272117"2011W432011W42Don Sanders2011-10-231-44/+1
| | | | This reverts commit 6a547b0b74faa3fabbe1656b2d8a45d2be59c40f.
* Integrate fix for NB#272117Don Sanders2011-10-041-1/+44
| | | | | | "Error occurred" keeps on popping up when sending mail to wrong recipient Also ensure mailstore notifications are emitted for custom-field changes.
* Update license headers (make them consistent with harmattan qmf)Don Sanders2011-08-0710-171/+171
| | | | Remove obsolete pre-release clause.
* Add new retrieveMessageLists interface and implementation.2011W26_4Don Sanders2011-07-075-0/+45
| | | | Fix for nb#271151.
* Revert initial retrieveMessageLists interface and implementation.2011W26_3Don Sanders2011-07-075-129/+1
|
* Add new retrieveMessageLists for performance2011W26_2Eric Springer2011-07-075-1/+129
|
* Remove remaining uses of QMailHeartbeatTimer.Don Sanders2011-06-221-1/+0
| | | | | | Finishes NB#257648 Use QTimer instead of syshb Fixes NB#265381 crash in QMailHeartbeatTimer Fixes NB#267768 segfaults @ QtMobility::QSystemAlignedTimerPrivate::error
* Prefer gb18030 over gb2312 or gbkEric Springer2011-06-202-10/+108
| | | | Patch by Don