Mails are not getting deleted from server

Hi
I am reading a mail from using java mail from my mail server.
When i am setting the message.setFlag(Flag.DETELED,true);
the mail is not getting deleted from the server.
I am not able to trace the problem, please help me solving this problem. It's a bit urgent.
store = session.getStore("pop3");
store.connect(hName, portNo, uName, pWord);
folder = store.getFolder("INBOX");
folder.open(Folder.READ_WRITE);
Message message[] = folder.getMessages();
System.out.println("Unread Msg Count : " + folder.getUnreadMessageCount());
int n = message.length;
for (int i = 0; i < n; i++) {
fromMsg = (message.getFrom()[0]).toString();
subMsg = (message[i].getSubject()).toString();
if (folder instanceof POP3Folder) {
POP3Folder pf = (POP3Folder) folder;
Part messagePart = message[i];
content = messagePart.getContent();
if (content instanceof Multipart)
messagePart = ((Multipart) content).getBodyPart(0);
String contentType = messagePart.getContentType();
Part messagePart = message[i];
content = messagePart.getContent();
if (content instanceof Multipart){
messagePart = ((Multipart) content).getBodyPart(0);
String contentType = messagePart.getContentType();
message[i].setFlag(Flag.DELETED, true);
store.close();
Thanks and Regards,
Luv Amieee...
xx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

yeah true...
i did not close the folder.
i got to know from sun faq only later on yesterday.
but still.. thanks a lot...
luv amieee..
xx

Similar Messages

  • Profile Imanges are not getting deleted from Profile Image library

    Hi,
    If I go mysite and edit my profile and set a profile images and save the changes. Image is uploaded to profile Image library in the root of the mysite.
    I Edit my profile again and this time I remove the profile image and save the changes. Image is not getting deleted from the profile Image library.
    as per my understanding it should get deleted. My site clean job is running. user profile is active in AD.
    Thanks
    Omkar

    My first question would be is it a big deal if the picture doesnt get deleted from the libarary?  My understanding is that the profile picture field is a URL link, the first time you add a picture it will provision 3 copies of differing sizes to the
    library.  When you "remove" the picture, it just empties out the picture URL field.  Which is a nice hidden recovery if someone accidently deletes a profile photo they really wanted (Or if your company really locks down picutures so you only get
    a choice of a couple avatars instead of a personal photo).
    Similar issue:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/17bc8538-568f-4fff-8933-458fdba4b701/delete-user-profile-picture-in-sharepoint-2010-when-account-is-deactivated-or-deleted-from-ad?forum=sharepointadminprevious
    and response:
    Since the user photo library follows certain standards OOB:
    http://iedaddy.com/2010/12/sharepoint-2010photo-management-for-social-mysites/
    I would say just create a small script that will periodically read the UPS and make sure there are no photos sitting in the library not associated to an account... here's an example of accessing the User Profiles w/ Powershell:http://iedaddy.com/2010/06/sharepoint-2010-updating-user-profile-properties-with-powershell/
    You would just modify it to delete image files whose name is not associated to an existing NTName in the UPS.
    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

  • My deleted emails on iPhone 4s are not being deleted from server

    I'm facing a problem with my iPhone 4s when deleting emails. Unfortunately, they are not being deleted from the server. I tried setting the account in pop and imap with settings to delete from server and trash ticked. Still they keep on appearing in Outlook which is a double work to do. Please advise.

    I'm no expert by far, but have had issues with this before.
    IMAP should allow your iPhone to remove messages from the server.
    But have you made sure both the iPhone and Outlook are connecting via IMAP?
    If your iPhone does remove the messages from the server, but your computer is using POP, then the computer may download the email before it is removed form the server by your iPhone.
    This was my issue, that my computer had already downloaded the message, and POP does not check later if it is deleted.
    If you delete a message from Outlook does it disappear on the iPhone?
    Alternativly you may need to check the email server settings.
    Who is your email provider?
    They may be able to check if IMAP allows you to remove emails.

  • My locked posts are not getting deleted from my questions

    Hi,
    Can someone remove the posts that have been reported as abused from id.Thanks a ton in advance.

    I see that you have quite a number of unlocked and yet open threads. You need to go and close those threads manually. Don't you think you are obliged to get back to the people who spent time on your issues to go back and update them of the progress and close those threads?
    These are only some of the examples:
    Database growth
    HTTP sessions struck
    Issue with trusted system
    List of all spool tables
    Issue in ESS
    Issues uploading a file
    pk

  • Mail notifications are not getting sent from a Calendar client

    Mail notifications are not getting sent from a Calendar client
    <p>
    On the client, after creating an event and electing to send a mail notification,
    the following error appears in a pop up box:
    "module:mailmsg.ctp,label 190, service error"
    Also, in the /users/unison/log/cws.log file on the Calendar Server, there is an
    error from the corresponding time that the client receives one:
    DEXOTEK ERRCODE Ox132B0 -> CWTCP_RemoteSecurityModified: RNC_SecurityModified
    -> Request 0x443 for NodeId 10002,
    status set to CANTSERVICE
    Solution:
    If this is only happening for one user, then check for the presence of a dbv.log
    file in the /users/unison/log directory. If present this implies db corruption
    and the /users/unison/bin/unidbfix tool should be run.
    Note: For details on "unidbfix", please read the man page and also the online
    Calendar Administrators Guide.

    I am having the exact same problem sending through a comcast smtp server to a mac.com email address:
    Reporting-MTA: dns; qmta11.emeryville.ca.mail.comcast.net
    so some problem they are having in emeryville today? I too am waiting for it to clear up.

  • Mail suddenly not being received from server. The ISP tells me there's nothing wrong at his end. I can see emails on the server if I look up WebMail; they don't come into Mail. I haven't changed anything lately.

    Mail suddenly not being received from server. The ISP tells me there's nothing wrong at his end. I can see emails on the server if I look up WebMail; they don't come into Mail. I haven't changed anything lately. The incoming server details haven't changed; the Connection Doctor shows the accounts are connected; I've turned everything off including the modern. Have exhausted my limited knowledge. Anyone with something similar?

    I have decided to dedicate this thread to the wonderful errors of Lion OSX. Each time I find a huge problem with Lion I will make note of it here.
    Today I discovered a new treasure of doggie poop in Lion. No Save As......
    I repeat. No Save As. In text editor I couldn't save the file with a new extension. I finally accomplished this oh so majorly difficult task (because we all know how difficult it should be to save a file with a new extension) by pressing duplicate and then saving a copy of the file with a new extension. Yet then I had to delete the first copy and send it to trash. And of course then I have to secure empty trash because if I have to do this the rest of my mac's life I will be taking up a quarter of percentage of space with duplicate files. So this is the real reason they got rid of Save As: so that it would garble up some extra GB on the ole hard disk.
    So about 20 minutes of my time were wasted while doing my homework and studying for an exam because I had to look up "how to save a file with a new extension in  mac Lion" and then wasted time sitting here and ranting on this forum until someone over at Apple wakes up from their OSX-coma.
    are you freaking kidding me Apple? I mean REALLY?!!!! who the heck designed this?!!! I want to know. I want his or her name and I want to sit down with them and have a long chat. and then I'd probably splash cold water on their face to wake them up.
    I am starting to believe that Apple is Satan.

  • Exchange Mails are not getting updated properly without refreshing

    From couple of days, exchange mails are not getting updated properly without refreshing.
    Kindly suggest.

    Kindly suggest a solution

  • Material with flag for deletion are not getting deleted

    Hi All,
    Classic Scenario
    ERP - Materials were marked for deletion on the client level
    SRM - COMMPR01 - Materials are marked for deletion
    Question - When we ran BBP_CCM_Transfer_Catalog and Publish the Master Catalog the materials are not getting deleted in TREX.
    Please advice.
    Thank you very much,
    Carpenter

    I have to delete the Product in SRM and this will delete the Index in TREX Search.
    Thanks

  • Some outgoing e mails are not getting through

    Some of the people I e mail are not getting any of my e mails. I use the verizon e mail online not outlook express or any other software. Most of my e mails are getting through but not all. Anyone have an idea why this could be happening? It's not that my e mail is blocked on the other end. One of the recipients is my dad and he isn't getting my e mail. I walked him through his setup and he does not have me blocked and I am in his address book.

    Is there a particular domain you are having trouble with? Are you getting any delivery delay/failure messages?
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • My messages are not being deleted from the server

    Hi,
    Mail is not removing messages from the server. Every now and than I have to remove messages from my server manually. I went through all the settings ... it works as intended on 2 out of 3 machines ... am I missing something? I can use "delete now" in Mail preferences ... not a big deal, just a nuisance.
    Thanks, Stephan

    Are the Mail settings sticking between reboots on that one Mac?

  • LAN was down ie Users are not getting ip from DHCP server after enabling DHCP snooping

    Hi All ,
    Enclosed file has network connectivity diagram.
    1. L3 vlan's ie 2,3,4,5 and 6 are configured on ACC-CR1 and ACC-CR2. 
    2.Trunk is configured between Core switches ( CR1 and CR2) and access switches .VTP mode is transparent on all switches.L2 vlans are configured on all access switches.
    3.DHCP is server is located at different location and is reachable over MPLS.
    Without enabling dhcp snooping , users connected to access switches (Sw1,sw2,sw3 and Sw4 ) are getting ip address from DHCP server without any problem and everything is working fine.
    But users connected to Sw3 and Sw4 are getting ip address from rouge DHCP server which is not pingable from any one of the switch.
    So we have configured DHCP snooping for all vlan's on CR1 , CR2 , SW3 and SW4 and "trusted uplink ports" which are connected to WAN routers from CR1 and CR2  and also "trusted uplink ports " of Sw3 and Sw4 which are connected to CR1 and CR2.
    As soon we have enabled DHCP snooping and trusted respective uplink ports , users are not getting ip address from remote DHCP server and even users connected to Sw1 and SW2 are facing same issue.
    Note : DHCP snooping is not configured on SW1 and SW2.
    Why users are not getting ip address from remote DHCP server as soon as we enabled dhcp snooping on Core switches and two access switches ie sw3 and sw4 ? what could have caused DHCP packets to be dropped ? Any idea would be appreciated .

    Hi,
    as you say: " HSRP is configured between CR1 and CR2 and Vlans are active on CR1" does it mean there are L3 intrefaces configured in each VLAN on your CR switches and ip hepler-address pointing to the remote DHCP server is configured on each of them?
    I know it's difficult in a productive environment but IMHO you need to find out where are the DHCP offers dropped.
    Either by enabling DHCP debugging or by capturing packets via Wireshark, e.g.
    Best regards,
    Milan

  • Workitem not getting deleted from SAP inbox

    Hi ,
    I have a scenario in workflows , in which when a user creates a timesheet , a mail goes to approver , when the timesheet is approved the mail should get automatically deleted .
    We have created a standard task for this purpose ( a copy of TS31000007)  .
    The business Object is CATS , terminating event is COMPLETED , method is APPROVE . There is no triggereing event a FM is being used .
    The standard task is copied in two test environments , from first system the mail gets automatically deleted , but from the second one it is not getting deleted .
    Also the workflow log in SWEL doesnt show any rows in the second system .
    In the first system , there are 4 steps  in the workflow log :
    Dialog work item created
    Background process started
    terminating event received
    work item processing complete
    Though the workitem has deleted , but the status of the workflow is in Progress
    while the second has only two steps in workflow log
    Dialog work item created
    Background process started
    and the workflow status is "Ready"
    I guess the terminating event in the second case is not getting received .
    but ,I have  checked sweinst and found that the instance linkage is activated .
    Also when the workitem is approved , it does not get delete , and if we try to re execute it again , the gives a msg " NO data found "
    Can someone help me to find why the mail is stuck in the inbox and  correct this problem.
    Thanks
    Sheetal

    Unless and until the Terminating event is triggered the workitem will not disappear. Check how the Event is getting triggered in other system. I feel it is getting triggered by standard means. Check whether there is proper settings in SWEHR3.
    It means that you are not doing any special configuration for event triggering or coding. Please check what is missing in the system you are having problem.  Check SWU3 setting is fine or not.
    <b>Please close thread when issue resolved</b>
    Thanks
    Arghadip
    Message was edited by:
            Arghadip Kar

  • Exchange mail account not getting deleted - Iphone froze

    Exchange mail account is not getting deleted if i try it and
    it frozes the iphone.
    Switch off the phone and restarting doesn't help
    Same thing happens when you try to change contact off in exchange mail properties.
    I have 3G iphone with firmware 2.1

    I have the same or a similar problem - after my update to the firmware on friday, i have intermittent ability to download email.
    i have 4 accounts on my phone - a mobile me account, 2 accounts through Cox servers, and my exchange account. I was able to download from all accounts just once after updating the firmware 3 days ago.
    The Cox accounts are the only ones that work - and only sometimes. outbound emails become phantom emails and go nowhere.
    I lost the domain information in my exchange account. when i go in to update it, it freezes and won't save the new domain or let me leave the settings screen unless I hit the home or sleep/wake buttons.
    i tried deleting the exchange account to recreate it, but it freezes on that.
    I lost my calendar entirely.
    i had to resync my contacts.
    this is worse (much worse) than before the firmware fixes.

  • Data in BBP_DOCUMENT_TAB are not getting deleted

    Hi All,
    We are in SRM 4.0.
    Since today morning whenever a user trying to create / change shopping cart, PO, GR it got updated in the BBP_DOCUMENT_TAB. But it is not getting deleted automatically. Earlier it used to get deleted automatically once the documents have been ordered.
    But I could see the POs and GRs have been transfered to the back end system.
    Job CLEAN_REQREQ_UP is running every 2 mts.
    Please advise.

    Hi Arun,
    note 338985 describes in detail how the the status of the document(s), CLEAN_REQREQ_UP and the IDOCs interact.
    If the documents are posted without any error i.e. there´s everything perfect but the 'obsolete' entries in BBP_DOCUMENT_TAB, then this sounds like a malfunction.
    Maybe you should debug the the cleaner with one document and see whats happening starting at the following spot:
    CLEAN_REQREQ_UP
    process selected entries: check  existence of follow on documents,
    update if necessary local documents etc. (depends on entry type)
            LOOP AT selarea.
              IF still_to_proc = c_proc_block_size.
                SET UPDATE TASK LOCAL.
              ENDIF.
    lateron the entries are deleted in function module BBP_DELETE_FROM_DOCUMENT_TAB
    Note 535765 describes how to delete entries via a Z* report but I would NOT RECOMMEND to do that without having checked the situation by SAP before.
    see note 535765:
    Please note!:                                                       
    Deleting relevant entries from the BBP_DOCUMENT_TAB may cause severe
    problems, as the system needs the entries to set the right status to
    shopping carts, invoices and confirmations. So please be careful with
    the deletion of entries.                                            
    Kind Regards
    Michael

  • Temporary files are not getting deleted

    Hi All,
    I am using informix database and my code is reading BLOB from database and writing the image to different storage media. The program has to run for number of images. It is writing to media successfully but not exiting even after printing the last statement in program. it is generating some temporary files ifxb_* . If I use System.exit() garbage collection is not happeneing and temporary files not getting deleted.
    I am storing BLOB to an InputStream. and closing all the Connections and ResultSet before exit.
    Can anyone please tell why program is not exiting normally?

    gtRpr wrote:
    It doesn't make much sense to me to go through extra work to make code insecure, when doing things the right way is easier and more secure.@yawmark - I get it, relax.
    I never used them last year because I only found out about there existance about 4 Months ago.
    And guess what I have never used normal statements for something like that again.
    Only time I use a normal Statement is when I run that query only once, and no the entire query is hardcoded so no need for any worries due to security.Um ... D'you post this to the wrong forum/topic?
    Anyway, OP ... I don't know a thing about informix, so perhaps a trip over to IBM would help ... they have lots of information on their site. You might want to try a different forum right here at java.sun.com as well.
    About those closing of Connections and Resultsets ... are they in finally clauses? They should be.
    ~Bill

Maybe you are looking for

  • Sent attachment with pl/sql as a mail with ( mulitpel recepents )

    Hi, I have an requirement ,like send a particular file as attachment. i have done the same... but the issue is i need to send the file to multiple recipients that was based on the user provided value. Ex: [email protected];[email protected];xyz3_sa

  • How do I have multiple versions of the same .chm?

    Our developers recently were required to make changes to an earlier version of our software (thank goodness for backups). So I'm having to revert to that earlier version, make changes, and create a revised .chm. HOWEVER, I already had completed the u

  • Creating a Request via OIM 11g API

    I'm trying to create a request in OIM using the API. I found this post ( OIM 11g - Setting Process Form Data through Request API ) which has the code to do it but I'm getting an error: Here is what I have OIMClient client = getOIMClient(url, username

  • Hyperlink not on top of page, hyperlink not on top of page

    I have just created my website for my very own small business, and wanted to add hyperlinks. The problem is that when I created the page for the hyperlink, it has appeared in the menu bar across the top. I am not sure what I am doing wrong. I need to

  • What Generation is My MacBook?

    Hi there, I'm wanting to upgrade the RAM in my MacBook. The website I'm wanting to buy it from asks what generation the laptop is, I'm assuming its a different type of RAM. What's the easiest way of finding this out? I bought the laptop in October 20