#282 Thunderbird: Drag & Drop not possible (Connection issue)

Release_1.3
open
Importing (4)
5
2012-09-15
2012-07-16
Pascal
No

Hello,

If I try to drag and drop mails from Thunderbird to Task Coach, an authentification window appears. After I enter my password the following error message appears:

"Login falied (LOGIN failed.). Please try again"

The entered password is correct.

Do you have any idea how I could solve this issue?

System Information:

Task Coach Version 1.3.17, July 2, 2012
Thunderbird 13.0.1
Ubuntu 11.10

Thanks!
Pascal

Discussion

1 2 > >> (Page 1 of 2)
  • Pascal
    Pascal
    2012-07-16

    Screen Shot

     
    Attachments
  • Frank Niessink
    Frank Niessink
    2012-07-20

    Hi Pascal,

    I justed tested this with Task Coach 1.3.17 on Ubuntu 11.10 and TB 14.0 (latest version from the update manager) and it works fine. I use a GMail mail account over IMAP. What kind of mail account do you have?

    Thanks, Frank

     
  • Pascal
    Pascal
    2012-07-23

    Hi Frank,

    Hmm, indeed. If I use my private Gmail account then it works fine.

    However, if I try to use Task Coach with my office mails then I receive the above mentioned error. At work we use an Microsoft Exchange Server which I access with Thunderbird via IMAP.

    Please let me know if you need any further information.

    Thanks
    Pascal

     
  • Frank Niessink
    Frank Niessink
    2012-07-24

    I'll try to replicate this with my work email account. I'm rather busy at the moment so it may take me a few days before I get to it. Feel free to remind me if you don't hear from me before Saturday.

    Thanks, Frank

     
  • Frank Niessink
    Frank Niessink
    2012-07-27

    Hi Pascal,

    I just set up Thunderbird to access Exchange over IMAP. Dragging and dropping from Thunderbird to Task Coach works fine. What are the exact IMAP settings that you use for the Exchange account?

    Thanks, Frank

     
  • Pascal
    Pascal
    2012-07-31

    TB settings

     
    Attachments
  • Pascal
    Pascal
    2012-07-31

    Hi Frank,

    I uploaded my TB settings as a screen shot.

    Thank you so much for looking into this!
    Pascal

     
  • Frank Niessink
    Frank Niessink
    2012-07-31

    Hi Pascal,

    The default python IMAP library doesn't support NTLM for authentication. I'll see what I can do to add that (we'll can use https://github.com/bendyer/python-ntlm probably).

    Thanks, Frank

     
  • Pascal
    Pascal
    2012-08-01

    Hi Frank,

    I upgraded to version 1.3.17.5449 (August 1st, 2012).

    The behaviour is now different. If I drag a mail out of TB and drop it into Task Coach, it asks me for my password. After I entered the password the second login window (see initial comment) does not appear anymore. So far so good.

    However, nothing else happened. The mail was not transferred into a task. When I tried it again, Task Coach (or TB?) asksed me once more for the password and again nothing happened.

    The entered password was correct (I checked that... ;)).

    Best regards
    Pascal

     
  • Frank Niessink
    Frank Niessink
    2012-08-01

    Hi Pascal,

    I see that the python-ntlm library expects the domain as part of the username (domain\user). The username is extracted from the URL that Task Coach receives from Thunderbird when you drop an email onto Task Coach. We'll probably have to extract the domain from that next to the username. For that I need to know the exact URL Task Coach gets. I'll make another build that pops up the URL in a message box. Please take a screenshot and attach it to the support request.

    Just a minute while I cook up the build...

     
  • Frank Niessink
    Frank Niessink
    2012-08-01

    It's building. You need revision 5450 or higher.

     
  • Pascal
    Pascal
    2012-08-02

    URL

     
    Attachments
  • Pascal
    Pascal
    2012-08-02

    Hi Frank!

    Here you go. Screen shot is attached.

    Cheers
    Pascal

     
  • Frank Niessink
    Frank Niessink
    2012-08-02

    Hi Pscal, the greyed out part, is that just a username or does it also include a domain? It's exactly the part I was after ...

    Thanks, Frank

     
  • Pascal
    Pascal
    2012-08-03

    Hi Frank,

    It's just my user name. There was no domain.

    Cheers
    Pascak

     
  • Frank Niessink
    Frank Niessink
    2012-08-04

    Hmm, NTLM needs a user name and a domain to authenticate. It's strange that the authentication with just a user name did not result in an error message. Anyway, I'll extend the dialog to also let you enter the domain. If that doesn't work I'll ask on the user mailinglist whether there is someone who can give me an Exchange account with NTLM for testing this.

    Cheers, Frank

     
  • Frank Niessink
    Frank Niessink
    2012-08-04

    OK, revision 5451will ask for a domain and use that to connect to the IMAP server. The domain is currently not cached. I will implement that if this actually works :-)

    Please let me know how it goes.

    Thanks, Frank

     
  • Pascal
    Pascal
    2012-08-07

    I have updated to version 1.3.17.5465. I got asked first for my password and later then for the domain. After I entered both (at least what I think is meant by domain) nothing happened.

    It might be a stupid question but could you please just confirm which domain is expected?

    Cheers
    Pascal

     
  • Frank Niessink
    Frank Niessink
    2012-08-07

    Well, I expect it's the same domain that you use to log in to a Windows computer at the location where the Exchange server is (your place of work presumably). For example, when I log into a Windows computer at work I have to fill in my user name and my password and I enter a domain. Usually it's filled in by default so after a while you don't notice it anymore.

    Cheers, Frank

     
  • Pascal
    Pascal
    2012-08-09

    Ok, I have tried that. However, nothing happens when I drag and drop a mail.

    I opened Task Coach in a terminal. This is what happened there af:

    Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/taskcoachlib/widgets/draganddrop.py", line 97, in OnData
    self.onThunderbirdDrop(x, y)
    File "/usr/lib/pymodules/python2.7/taskcoachlib/widgets/draganddrop.py", line 143, in onThunderbirdDrop
    email = thunderbird.getMail(data)
    File "/usr/lib/pymodules/python2.7/taskcoachlib/mailer/thunderbird.py", line 416, in getMail
    reader.saveToFile(file(filename, 'wb'))
    File "/usr/lib/pymodules/python2.7/taskcoachlib/mailer/thunderbird.py", line 371, in saveToFile
    fp.write(self._getMail())
    File "/usr/lib/pymodules/python2.7/taskcoachlib/mailer/thunderbird.py", line 333, in _getMail
    domain_username = '\'.join(domain.upper(), str(self.user))
    TypeError: join() takes exactly one argument (2 given)

    Maybe this helps?

    Cheers
    Pascal

     
  • Frank Niessink
    Frank Niessink
    2012-08-09

    Hi Pascal,

    That's a bug. I fixed it. Revision 5467 or newer.

    Thanks for your patience, Frank

     
  • Pascal
    Pascal
    2012-08-16

    Hi Frank,

    I checked this issue with the latest version. If I drag and drop a mail the following is displayed in the terminal window:

    Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/taskcoachlib/widgets/draganddrop.py", line 97, in OnData
    self.onThunderbirdDrop(x, y)
    File "/usr/lib/pymodules/python2.7/taskcoachlib/widgets/draganddrop.py", line 143, in onThunderbirdDrop
    email = thunderbird.getMail(data)
    File "/usr/lib/pymodules/python2.7/taskcoachlib/mailer/thunderbird.py", line 418, in getMail
    reader.saveToFile(file(filename, 'wb'))
    File "/usr/lib/pymodules/python2.7/taskcoachlib/mailer/thunderbird.py", line 373, in saveToFile
    fp.write(self._getMail())
    File "/usr/lib/pymodules/python2.7/taskcoachlib/mailer/thunderbird.py", line 337, in _getMail
    ntlm.IMAPNtlmAuthHandler.IMAPNtlmAuthHandler( \ AttributeError: 'module' object has no attribute 'IMAPNtlmAuthHandler'

    I used ver. 1.3.17.5483, the mail is not taken over to Task Coach.

    Cheers
    Pascal

     
  • Frank Niessink
    Frank Niessink
    2012-08-19

    My bad. This error should be fixed now (revision 5498 or newer). Please try again?

    Thsnks, Frank

     
  • Pascal
    Pascal
    2012-08-23

    Step 1

     
    Attachments
1 2 > >> (Page 1 of 2)