473,663 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JavaMail POP3 folder.close() method close also store!

Hi @ll,

I was wondering why I lose the connection to the mail store while retrieving information from it
without
calling the method store.close()! At the end I found out that the method folder.close(bo olean) also
close the store!

Following you see the debug log of the JavaMail API:
C: QUIT
S: +OK POP3 server closing connection


I really have to keep the connection alive to the server to get all messages at once from the mail
store. But after closing the folder my client is disconnected :o(

From my point of view it is not very correct that the API close the connection to the store in the
background
that my program has implicity opened before! I expect that the connection is alive as long I
implicity call
the method store.close()!

Is there a workaround or a patch that the store won't be closed by calling the method
folder.close(bo olean)???

Thanks for helping!
Greetz,
Dan

--
NOTE:
To contact me directly remove "spam." from the email address.

Jul 17 '05 #1
1 5630
"Daniel Albisser" <da************ *@spam.swisscom .com> wrote in message news:<108134791 6.968791@ftpgat e>...
Hi @ll,

I was wondering why I lose the connection to the mail store while retrieving information from it
without
calling the method store.close()! At the end I found out that the method folder.close(bo olean) also
close the store!

Following you see the debug log of the JavaMail API:
C: QUIT
S: +OK POP3 server closing connection


I really have to keep the connection alive to the server to get all messages at once from the mail
store. But after closing the folder my client is disconnected :o(

From my point of view it is not very correct that the API close the connection to the store in the
background
that my program has implicity opened before! I expect that the connection is alive as long I
implicity call
the method store.close()!

Is there a workaround or a patch that the store won't be closed by calling the method
folder.close(bo olean)???

Thanks for helping!
Greetz,
Dan


I may be wrong but without looking into this to far, POP3 is a single
folder store. If that folder is cloded then the store is no longer
needed. I know nothing about your application so I can't say if
closing the folder is the action you should be taking or not.

Hope this helps,
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3120
by: Alexander Franksmann | last post by:
Hello, I'm going to write a anti-spam-program based on a Whitelist. "If the mail sender is found in the database, my program should move the mail into another mailbox" The mailserver fetched the mails from the clean pop3-account. The problem is a problem because the function imap_move() can only move mails from one folder in the mailbox into another folder. I hope someone could help me.
1
4687
by: Jeff | last post by:
I'm finding that as I loop through a large pop store and reading each message into an input stream that the JVM is running out of memory for the case where the pop store is large (several thousand messages). I've run this code through JProbe and found that InternetHeaders seems to be the culprit as the memory heap grows over time for this class but for the life of me I can't figure out how to get the objects freed up for garbage...
1
2189
by: Joshua | last post by:
Ive playedw ith the standard pop3 and imap and nntp and smtp modules but am unconvinced -- I would like to find a more sophisticated email handling API like JavaMail (from which I hope to convert). Can anyone recommend anything? (Ive gone through some o fhte stuff from the Vaults of Parnussus and some of the stuff in the PyPI but am as of yet unable to find something worthwhile. Anyhelp is greatlya ppreciated, thanks in advance, Joshua
4
3728
by: Paul Schmidt | last post by:
Dear list: I am new to python, and I am trying to figure out the short answer on something. I want to open a POP3 mailbox, read the enclosed mail using the POP3 module, , and then process it using the email module. Environment Python 2.3.4, Mandrake Linux 9.0 patched up the wazoo...
3
2878
by: Chad Myers | last post by:
I'm looking for an app that would allow me to download mails from various POP3 accounts and put them into my Exchange inbox on the server side (rather than having to have outlook open to do it all the time). There are many products that do this, but they're very expensive considering it's just for me and just for tinkering.
3
2536
by: Jay | last post by:
I'm not asking for any code (although it would be nice if someone got a sample). But how would i design a web based POP3 client? I want the users to be able to access the emails from Outlook, and the web based email client. What i'm not sure how to design is where to store the emails for the web based client. Should i operate on the mailroot folder directly, or create another folder on the server (or another server), where the emails...
3
1367
by: Sean McKaharay | last post by:
Hey All, I am writing a POP3 control and I want to know how I can find out if it is a new message or a message that I have already read. Can that be done. Is there a flag I can check and set on the server to let me know? I also want to know if it is possible to create folder schema in the POP3 mailboxes? Thanks, Sean
2
2826
by: Mike Brearley | last post by:
I need to write a script that will check a catch-all mailbox (pop3) and send a non delivery report back to the sender of the email. Background info: I have a domain hosted on a site that offers unlimited email accounts... the problem is, emails sent to an invalid address on the domain aren't automatically returned as non-deliverable. I am, however, able to set up a catch-all address and able to pick up those emails. Id like to set up a...
0
3429
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails to a PDA/palmtop via POP3. The PDA uses Windows Mobile software. Since using the PDA, I have had the problem of emails disappearing from the Yahoo! server. However I think I now understand how to avoid this. It seems that Windows Mobile is...
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.