Bug 317023 - Incorrect settings from the Trojita import
Summary: Incorrect settings from the Trojita import
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdepim
Classification: Applications
Component: importwizard (show other bugs)
Version: GIT (master)
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-19 11:31 UTC by Jan Kundrát
Modified: 2017-01-07 22:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kundrát 2013-03-19 11:31:47 UTC
Hi Laurent, I came across kdepim/importwizard/trojita/ -- I'm flattered :). There's a couple comments in there which I think I can answer:

- imap.offline shall not map to DisconnectedModeEnabled. This settings controls whether Trojita automatically connects to the server on startup, not whether it's capable of offline operation.

- imap.enableId controls sending of the "ID" IMAP command. Not sure whether akonadi supports this.

- imap.ssl.pemCertificate contains the certificate chain of the remote server; this is used similar to .ssh/known_hosts for the certificate pinning.

- imap.capabilities.blacklist is a QStringList of capabilities which Trojita will ignore. This is useful when the IMAP server advertizes something which is hoeplessly buggy.

- The IMAP-SENDMAIL submission method is for http://tools.ietf.org/html/draft-kundrat-imap-submit-01

- Looks like you don't distinguish between using SMTP-over-SSL and SMTP-with-STARTTLS

- Better heuristics for using online/offline IMAP in akonadi are probably the cache settings

Please be advised that the settings format will change in future when we add support for multiple accounts; I'll try to remember to ping you when this happens. Also please don't hesitate to contact us when it isn't immediately obvious what some settings option is doing -- we're both involved in an OSS project and I'll be happy to help you ensure the importer works good.

Reproducible: Always
Comment 1 Laurent Montel 2013-03-19 12:02:21 UTC
Waou first  bug against importwizard :)

"imap.offline" you don't have imap offline support ? 

"imap.ssl.pemCertificate" we don't support it in akonadi I think.

"The IMAP-SENDMAIL " ok will look at.

"Looks like you don't distinguish between using SMTP-over-SSL and SMTP-with-STARTTLS" perhaps, will verify it.

"Please be advised that the settings format will change in future when we add support for multiple accounts; I'll try to remember to ping you when this happens. Also please don't hesitate to contact us"
ok thanks.

Good that trojika will support multi account in the future.
Just need to adapt importwizard.

Regards.
Comment 2 Jan Kundrát 2013-03-19 12:34:37 UTC
There is an offline mode, but it's set up in a different way than in Akonadi.

You should probably look at the value of offline.metadataCache. If it's "memory", then Trojita will not store anything to disk, saving the intermediate state only in some in-memory structures. Any other value leads to the (default) mode of operation where any already-downloaded data are saved on disk. That's probably the "disconnected IMAP" in Akonadi.

There are also settings for control of how long before removing stale data from the on-disk cache (reading this makes sense only if the previous option did not say "hey, don't save anything on disk"). This lifetime is controlled via the "offline.cache" option. If it's "all", then no data are ever removed, if it is "days", then   Trojita will remove data which was not accessed for "offline.cache.numDays" days (this cleaning is not yet implemented yet btw).

In future, there will also be options for controlling whether to preload messages before they are seen by the user, but this is not here yet. It's likely going to be per-folder settings.
Comment 3 Laurent Montel 2013-03-20 08:38:42 UTC
Git commit de07abb4a381ba5258e87bfd66baefbc1645a7e4 by Montel Laurent.
Committed on 20/03/2013 at 09:38.
Pushed by mlaurent into branch 'master'.

Add comment from Bug 317023 - Incorrect settings from the Trojita import

M  +7    -5    importwizard/trojita/trojitasettings.cpp

http://commits.kde.org/kdepim/de07abb4a381ba5258e87bfd66baefbc1645a7e4
Comment 4 Denis Kurz 2016-09-24 21:00:01 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kdepim (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 22:33:22 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.