Coder Social home page Coder Social logo

Comments (24)

chrislee35 avatar chrislee35 commented on September 23, 2024

i'll look into tonight. which ubuntu and which java are you using?

from imapcrypt.

mhep avatar mhep commented on September 23, 2024

Thanks for your quick reply!

I downloaded the latest 32bit java from here and am on Ubuntu 14.04.

Edit: Getting the GUI to work is sadly fairly hopeless, for there are so many 32bit dependencies not met if you are running a 64bit version of Ubuntu

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

i've got a ubuntu 14.04 server vm. i'll try to get 32-bit java to work. why are you using 32-bit?

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

I should package the 64-bit SWT libraries with IMAPCrypt, shouldn't I?

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

My love for SWT has decreased significantly through this process... I'll probably get this to working state and then switch it over to Swing.

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

I've created x64 versions of the tool on my website. http://chrisleephd.us/projects/imapcrypt/imapcrypt-lin-x64.jar
sha256: 420b27f03270e0753194809dfae2fd113975eb6fe6ffa0c262c47648066e9c16
Please provide feedback on the tool.

from imapcrypt.

mhep avatar mhep commented on September 23, 2024

Thanks so much!

I was using 32-bit because I couldn't get IMAPCrypt GUI working with 64-bit. Now I am back to 64-bit java.

I've tried running the GUI, and though it opens up fine, it doesn't seem to recognize my IMAP server posteo.de:

javax.mail.NoSuchProviderException: No provider for imaps
    at javax.mail.Session.getProvider(Session.java:464)
    at javax.mail.Session.getStore(Session.java:539)
    at javax.mail.Session.getStore(Session.java:519)
    at org.dhs.chrislee.IMAPCrypt.getFolders(IMAPCrypt.java:232)
    at org.dhs.chrislee.imapgui.groups.ServerGroup$1.handleEvent(ServerGroup.java:120)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at org.dhs.chrislee.imapgui.IMAPGui.run(IMAPGui.java:75)
    at org.dhs.chrislee.imapgui.IMAPGui.main(IMAPGui.java:358)

The command-line version fails with the same error message.

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

Ew, I was able to reproduce this in the VM, but not on the host, which worked just fine.
This'll take a little bit of time to fix correctly.

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

There was a strange classpath error that I still don't quite understand, but I think that different OSes will load the classes in different orders and once class was overwriting the imap(s) provider preference from the correct class. So, I removed the offending JARs and it seems to work in both environments.
Please try: http://chrisleephd.us/projects/imapcrypt/imapcrypt-lin-x86_64.jar

from imapcrypt.

mhep avatar mhep commented on September 23, 2024

I am able to connect to the server now! But as soon as I try to run any encryption (with date filters) I get the following error message:

org.dhs.chrislee.DateBasedMessageEvaluationCallback cannot be cast to java.lang.Comparable

If I try running it without any date filters I just get: null

Thanks again for your time!

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

I'm still working on it. I'm giving the tool a complete make-over. I've almost got the transition to Swing done. Then I'll start testing with different Java versions and with Ubuntu.

from imapcrypt.

mhep avatar mhep commented on September 23, 2024

Thanks so much! I'd be happy to help you test!

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

I'm almost done with the next version. I've got all the GUI bits working, now I'm doing the integration with the IMAPCrypt portion and performing first-level testing.
Soon, it'll be ready for user testing.

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

I've got everything working but the logging in Swing. The LF5Appender won't update until control is returned from the IMAPCrypt module. I know that this is an issue where the event dispatcher loop isn't running while doing the folder enumeration or message encryption, but I can't figure out how to get the threading right. I'm frustrated with Swing.

from imapcrypt.

mhep avatar mhep commented on September 23, 2024

Thank you in any case for all your work! There really isn't another comparable tool out there...

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

mahaha, it's ready for testing. This link, http://chrisleephd.us/projects/imapcrypt/imapcrypt-2.0.0.jar, was built using Java 1.8. I hope this works better for you.
I really wish that the idea of encrypting previously sent email would be adopted by other MUAs, but it's really hard to get right.

from imapcrypt.

mhep avatar mhep commented on September 23, 2024

Sorry for getting back to you with yet another error, but trying to open the java GUI gives me this:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/dhs/chrislee/imapgui/IMAPGui : Unsupported major.minor version 52.0

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

That's a Java version issue. What version of Java are you running?

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

Rebuilt using Java 1.7, added SSL untrusted cert confirm box, other minor fixes:
http://chrisleephd.us/projects/imapcrypt/imapcrypt-2.0.1.jar

from imapcrypt.

mhep avatar mhep commented on September 23, 2024

2.0.1 starts perfectly, but seems to fail upon trying to encrypt an email. I guess it may have something to do with my Emails being mostly in German, and thus being saved in UTF-8? I hope there is a quick an easy fix to this! I am getting excited, so close.

2015-04-28 15:06:14 DEBUG IMAPCrypt:340 - Encrypting the MultiPartMime message
2015-04-28 15:06:14 ERROR IMAPCrypt:295 - Exception thrown: de.buelowssiege.mail.pgp_mime.PGPMimeException: Encryption failed!;
  nested exception is:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=utf-8

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

I ran into the same bug and thought it was something strange with my test set of emails (a bunch of collected spam). I'll drill into this issue and try to figure it out.

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

Looks related to this thread: https://stackoverflow.com/questions/21856211/javax-activation-unsupporteddatatypeexception-no-object-dch-for-mime-type-multi

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

When I cleaned up the new jar dependencies to make things work in Java 1.8, it removed some of the necessary handlers for the mime types. I upgraded the javamail package (1.5.3) to the latest version from https://java.net/projects/javamail/pages/Home, and everything works great now.

from imapcrypt.

chrislee35 avatar chrislee35 commented on September 23, 2024

An updated copy is now uploaded to my website and on github.

from imapcrypt.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.