Eddie Hoeks

Greenhorn
+ Follow
since Mar 23, 2009
Merit badge: grant badges
For More
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 Eddie Hoeks

ok I'll do that, hopefully it makes some things clear. I've also read the jGuru fundaments of the JavaMail API, clears up some things, but I don't understand it completely yet. I'll run the sample tomorrow and see what it does.

Regards,

Eddie
14 years ago
Hey David & Paul,

thanks very much for you replies!

@David: I'm affraid using a third-party library is not preferrable, because we already have a production-environment that is using the JavaMail API.

@Paul: I've browsed through the sample code from the JavaMail API, but I'm not able to interpret this to the fullest I'm affraid. Please correct me if I'm not understanding the mail-format correctly, but isn't it so that a mail consists of a message (with from, to etc), and then the "body". I thought that the body consists of either a normal "text" format, or a "multipart" format. I thought that mails with attachments are always "multipart", where the attachment is in a Part of the message. I can't understand why normal files are detected correctly, but a mail as attachment is not interpreted in the same manner.

Please go easy on me, I don't have that much experience in the Java mailing world

Regards,

Eddie
14 years ago
Hello,

we have developed a Java class to read a mailbox from a mailserver using the javax.mail API. This class reads the unread messages, and exports the email to a .txt file (reads 'from' and 'subject' etc). The attachments of an email are saved individually. Recently however, users have been attachment mails to a mail (attaching a .msg as attachment it seems). It seems like the javax.mail is treating the .msg differently then other attachments (apparently it is reading the attachment-mail as a text format instead of multi-part).

We would like to save the .msg file that is attached to the mail just like other filetypes. I have searched on the internet, but haven't been able to find anything usefull on this matter.

Does anybody have an idea on how to extract .msg-files that are sent as attachments?
14 years ago
Hey all,

I'm trying to find the answer a problem I have, but I'm not sure if I'm on the right track. I need to configure WebSphere (5.1), so I can achieve the following:

- Check if the user is allowed to login based on custom criteria (I want a user only to be able to login if a special password was provided). If this succeeds, the user should just be logged in, no further questions asked.
- However,if this check fails, I want the user to be authenticated against LDAP.

After searching on the internet/javaranch, it seems to me that I can achieve this by creating a custom LoginModule, and define it as a JAAS LoginModule for WebSphere. However, when I try to just put in 1 custom JAAS module, it says that it cannot authenticate the user.

For a loginmodule, I'm currently trying to get this sample thing running:



Any help as to if this is even possible, and if so, what I'm missing, is greatly appreciated.

Regards
15 years ago
Hello,

Not sure if this is the right subforum, please correct me if its not.

I have an issue with AspectJ I just cannot figure out. I have several projects, which all use an individual aspect. This aspect is used to log entering and leaving statements for debug purposes. For this i'm using Log4j 1.2.9. For each project i have a separate log category, which is used by the individual aspect of the class. However, i cannot seem to get these to work properly. All the entering and leaving statements of all projects are currently put into 1 log category. This leads me to suspect that the first aspect is applied to all projects. The aspect contains the following code:



Does anybody have any idea why this is happening, or even better, how to fix this? Using eclipse as an IDE.

PS: LogCategory is a wrapper for log4j