Szymon Czerwiński

Greenhorn
+ Follow
since May 20, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Szymon Czerwiński

I wanted compare JavaMail to other lib, a specificly IMAP wanted to see. JavaMail seems good but if I will see something else, why not
1 month ago
At my last about know, Apache Commons Email.

Only SMTP has, similar like above. Where can find IMAP ?
1 month ago
Next, Simple Java Mail.

I forgot show it. It seems that this lib has only SMTP.
1 month ago
Second - GreenMail.

I just search it in Google. But this is little strange lib . I am looking for something other lib - the same like Java Mail.
1 month ago
For the first - JavaMail.

What is else ? Give next name to library. Give next point
1 month ago
Which E-mail Library Opensource we know ? Please write here some java's library of email, which have IMAP and SMTP. IMAP - recived emails, and SMTP - sending emails. Will write all we knows
1 month ago
I have to have method which me copy object to object. But I need copy object, not references object to object.



Util I saw that have this method. Who knows where can I find this ? Copy object to object, that it.
Corba meaby is stupid but has this method
2 months ago
I thought like this:


Still NullPointerExceptional. How to inicialize normally this ?? Please sugestions.
2 months ago
I try to be concretly, who knows how to inicialize variable "orb" ?



Only this.
2 months ago
I want to copy "obj" to "objCopy" using "Util", like I wrote the code.
2 months ago
I have problem with copy object in java.





Inicialize of orb is null. That's why I have problem with NullPointerException. Please tell me how to inicjalize "orb", that method "copyObject" copy my example object ? I don't understand "orb". Give me some example of inicialize this variable. I will be greatfully.
2 months ago
I understand all, but one other thing.. Please helps me to create code.

First, I have this:

Second, I have this:

Third:
         
I write in this third point "reader" object to file with utf-8. It's good. But how can be apperance reader ? It should be read "content" object with email.
2 months ago
You don't understand my intentions. This is JavaMail.

Message[]messages = inbox.getMessages(); // I have here all message of my email from IMAP
Object content = messages[1].getContent(); // create object with my first email message (messages[1]) of body (there are pictures, text or only pictures and etc.)
MimeMessage cmm = new MimeMessage(session); // use mime message with 1 sesion

cmm.setContent(content, "UTF-8"); // save content (body of email) to mime message

Then I want to save this mime message with body of message ("content" object) to file. I did this. I cannot show code rest.
But now, I would like that this file when I will be open this with this save message, should be open with Unicode (UTF-8).

I create file like this: File eml = new File("abc.doc"); And now.... should be line of code with this: when I will be open file that my file will be open from Unicode (UTF-8). How is this line of code, which open file with unicode ?
File open with utf-8 alone. I don't want to read code in addition.
2 months ago
This object "content" with message I save to file and I see this. Now I combinate to save this "content" to file with utf-8. I try create file with utf-8 at first time. This is my second preposition for this problem.

I create file: File f = new File("abc.doc"); How to do that file will open with utf-8 ? I try to set utf-8 for addition in this file. Text should be read corectly maybe.
2 months ago
I have -- Object content = messages[1].getContent();  -- and I want to decode this "content". How to do this ?

I using JavaMail.

"content" is wrong - is without polish letters like: ą, ć, ś etc. I think that inside this object is wrong text, that is why I try to decode "content" object with the text inside.

The result of my content is:
Niniejsza korespondencja nie wiąże się z udostępnieniem adresu e-mail użytkownika jakimkolwiek podmiotom trzecim. List został wysłany za zgodą użytkowników OnetPoczty i zgodnie z jej Regulaminem.Szczegóły dotyczące mailingów reklamowych można sprawdzić w ustawieniach konta. W razie dodatkowych pytań prosimy o kontakt

I encourage to discusses all you.
2 months ago