How can I setup OWA/Outlook on Linux with either Evolution or Thunderbird 3?

79

Solution 1

Since this question is on top when looking for "Install evolution with outlook linux", here's how it worked for me :

First make sure you delete everything "evolution" related

sudo apt-get --purge remove evolution evolution-exchange evolution-plugins evolution-common evolution-webcal.

See this answer for further details.

Second, install the new recommended version of Evolution for outlook. evolution-mapi is deprecated.

Do sudo apt-get install evolution-ews, this answer for further details.

The new version of Evolution has everything it needs to work with Outlook right of the bat.

Open Evolution, create a new account, Server Type must be Exchange Web Services and fill up the forms.

Finally, there might be some keyring problem while fetching your OAB Url. Here's the different places you might want to look, I had to delete and reset everything related to Evolution :

  • ~/.local/share/keyrings/*
  • Passwords and Keys, under Settings

Update

Thunderbird needs Exquilla to work with outlook. This plugin is a freenium and will ask to pay after 60 days. Evolution is a better long term option IMO.

Update 2

To debug evolution, run it by shell with CAMEL_DEBUG=all evolution

Solution 2

Just in case any openSUSE user finds this question, this howto can help:

In short, use GNOME Online Accounts. To install the GOA framework, in case you don't have it already:

# zypper in gnome-online-accounts evolution-ews

Then, to add your OWA/Outlook/Exchange account, open the Settings app and click Online Accounts.

Share:
79

Related videos on Youtube

Shihan Khan
Author by

Shihan Khan

Updated on September 17, 2022

Comments

  • Shihan Khan
    Shihan Khan over 1 year

    Suppose there are 2 same images in different names. I want to upload these images & put them in different folder. Suppose, img1.jpg & a-img1.jpg are the images. Now img1.jpg will go on "files/images/" location & a-img1.jpg will go on "files/a-images/" location. I've successfully manage to upload images but it'll only go to one destination folder. This is my code,

        $upload_errors = 0;
        $images= $_FILES['img'];
        $img_id = get_new_image_id();
        $image_ok = true;
        $queries = array();
        $allowed_exts    = array('jpg', 'png', 'jpeg', 'gif');
        foreach ($images['tmp_name'] as $key => $val ) {
            $fileName = $images['name'][$key];
            $fileSize = $images['size'][$key];
            $fileSize = round($fileSize/1024);
            $fileTemp = $images['tmp_name'][$key];
            $path_parts = pathinfo($fileName);
            $fileExt = $path_parts['extension'];
            $fileExt = strtolower($fileExt);
            if($fileSize > 2*1024){
                $image_ok = false;
            }
            if(!in_array($fileExt, $allowed_exts)){
                $image_ok = false;
            }
            if($image_ok){
                $upload_link = "files/images/".$img_id.".".$fileExt;
        $tupload_link = "files/a-images/".$img_id.".".$fileExt;
    
            move_uploaded_file($fileTemp, $upload_link);
            move_uploaded_file($fileTemp, $tupload_link);
            $img_id++;
            }else{
                $upload_errors++;
            }
    

    Is there any way to identify an image file like "a-img1.jpg"? I need this help badly. Tnx in advance!

    • Dead Man
      Dead Man over 10 years
      Does both images have the same name on form img? Have different names for both images and then you will be able to identify that which image to upload in which folder.
    • Shihan Khan
      Shihan Khan over 10 years
      @DeadMan, No. I've to use a single multiple upload button. Multiple images will be uploaded at the same time & my program needs to identify which one has "a" or not.
    • Hieu Le
      Hieu Le over 10 years
      Check the name of the upload file to identify which location is suitable to it.
    • Gadoma
      Gadoma over 10 years
      if you moved your uploaded file once, you cant do it again on the same file as it is already MOVED.
    • Dead Man
      Dead Man over 10 years
      This is a bad idea because filename can have character "a" in it but if you want you can find the position of "a" in your filename by using strpos function. If you get it then upload it in different folder. Read it more here : php.net/manual/en/function.strpos.php
  • jnewman
    jnewman about 13 years
    Could you post a link to the Thunderbird instructions. I am wading through a forest of posts that say how these instructions are apparent, but I can't seem to find actual instructions, thanks.
  • Shihan Khan
    Shihan Khan over 10 years
    what is $haystack & $needle?
  • Scott Helme
    Scott Helme over 10 years
    They are the parameters for the function when you call it. So the $needle is what you are looking for in the $haystack. So when you do this: startsWith($img_id, "a-") It's looking for the needle "a-" in the haystack $img_id.
  • Pobe
    Pobe over 6 years
    evolution-mapi is deprecated, use evolution-ews.
  • Admin
    Admin almost 2 years
    Just to note, as of 2022-06-01 this is the answer that worked for me on Ubuntu 20.04 LTS - Settings -> Online Accounts -> Exchange