Tutoriels/Kontact/Office365

From KDE UserBase Wiki
Revision as of 19:00, 29 February 2024 by Dduca (talk | contribs) (Created page with "===Obtenir un accès en lecture/écriture===")
Other languages:

Comment utiliser Office365.com avec Kontact

Scénario : vous souhaitez utiliser KDE PIM Kontact - avec Office365.com basé sur le cloud (cela pourrait fonctionner avec un échange basé sur LAN, non testé)

Ceci est testé avec 4.13.x et 4.14.10 KDE mais pourrait fonctionner avec des versions antérieures.

Ajouter le calendrier en mode lecture seule

Faire cela est très facile, car Office 365 peut exporter des URL avec des fichiers iCal :

  • Accédez à l'interface web du calendrier d'Office 365 puis cliquez sur Partager. Sélectionnez ensuite « calendrier », insérez votre propre adresse e-mail et choisissez de partager tous les détails.
  • Cliquez ensuite sur Envoyer.

Important

N'envoyez pas l'e-mail à une adresse Office 365, sinon cela ne fonctionnera pas.


  • Lorsque vous recevez l'e-mail, recherchez le lien qui commence par « webcal:// » et copiez-le.
  • Puis dans Korganizer faites un clic droit sur la liste des calendriers et sélectionnez Ajouter un calendrier…. Sélectionnez ensuite Fichier de calendrier iCal dans la liste.
  • Dans le champ Filename (nom de fichier), vous devez coller l'URL "webcal://". Mais vous devez remplacer le « webcal:// » initial par « https:// ».

Obtenir un accès en lecture/écriture

  1. Get mail working. This is fairly easy as Office365 supports both pop3 and IMAP4. Instructions for settings can be found here.

    You can also choose to access mail via DavMail, see below for installation instructions. This is said to handle Outlook invitations sent via Exchange better (not tested by the author of this article). In such case when you install DavMail tick setting for IMAP and set up your KMail account accordingly.

  2. Get your Office365 calendar and contacts in Kontact. For this use DavMail as intermediary "go-between". So first of all install DavMail, for Debian/(x)Ubuntu users here is a deb package, for others a shell installer.

    Once that is done start DavMail and configure it. In KDE a "systray" should pop up for basic settings. "Untick" the mail settings but leave Caldav and LDAP settings. The other setting you need is OWA URL that for Office365 is https://outlook.office365.com/owa

    All other settings are done in Kontact/KDEPIM.

  3. To get Calendar working (shared calendars are not tested, feel free to experiment): System Settings -> Personal Information -> Add -> DAV groupware resource -> DAVical. Put [email protected] and your password, choose Davical server. For server name and path put anything, you will edit later in any case. Click Finish.

    On next menu set a name for your resource and click Edit on the fictional resource. Leave "CalDav" as protocol but change remote url to

    http://localhost:1080/users/yourname@yo ... /calendar/
    and credentials to
    [email protected]
    and your password, then click Fetch and your Calendar should show up. Set a preferred refesh rate and in Kontact do not forget to now tick this Calendar to activate it.

  4. To get your Contacts working: System Settings -> Personal Information -> Add -> DAV groupware resource -> DAVical. Put

    [email protected]
    and your password, choose Davical server. For server name and path put anything, you will edit later in any case. Click Finish.

    On next menu set a name for your resource and click Edit on the fictional resource. Choose CardDav as protocol but change remote url to

    http://localhost:1080/users/yourname@yo ... /contacts/
    and credentials to
    [email protected]
    and your password, then click Fetch and your Contacts should show up. Set a preferred refresh rate and in Kontact do not forget to now tick this Address Book to activate it.

  5. Finally to access "public address books". They can be found as LDAP via Kontact/Kaddressbook in KAddressbook Settings -> Configure KAddressbook. Then select on the left column LDAP Server Settings and click Add host.

    Set this up as "host:localhost", "port:1389", "DN=ou.people", "authentication:simple" "Bind DN" as "[email protected]" and password well you should know next time you compose a new mail you can now use Select button and then Search directory service.