Problem deleting messages

Hi. I wrote a small programm to check emails. On the startpage the message to be read is chosen, and then a jsp site opens displaying the text. Then there�s a button implemented to delete the email. In this case the message is marked with a flag and a routine is called that simply closes and reopens the emailfolder. then the next message in the messagearray is called (or the previous if it was the last one in line). When i do this first it works correctly, but when i try to delete two mails in a row the second one is not deleted. If I delete one , return to the startpage , choose a new one and delete this, it works again.
Anything I havent seen in my thought??
Best regard, Mathias

The Message[] you created when you first connected became defunct when you closed and reopened the folder. For example message numbers are reassgined on reconnecting as you are 1 message less and who knows if more mail arrived. Better to refresh the message array up reconnection.
Regards,
Gary

Similar Messages

  • Problem deleting messages Nokia 5610

    when i'm deleting messages over 45 my phone hangs up.. can you tell me what's the problem?

    This does happen occasionally.
    When i decide to delete my in box which always contains 1000+ messages it does take some time to clear as its getting rid of quite alot of data.
    If your worried then seek assistance from a Nokia Service centre who could action an update to get rid of buggy software.
    Nokia Lumia 520
     iphone 6 Plus.
    Be happy !!

  • TS3276 Problem deleting messages in Mail

    Using a hotmail account on iMac in Mail.  I get this error message:
    The message "name of message" could not be moved to the mailbox "Trash--Hotmail".  "3541.emix" couldn't be copied to messages because an item with the same name exists.
    Very much appreciate your knowledge in clearing this up.  Thank you!

    Hi rkheinrich,
    If you are having issues deleting messages from Mail in Mavericks, you may want to try Rebuilding and Reindexing your mailboxes, as outlined in the following articles:
    Mail (Mavericks): Rebuild mailboxes
    Mail (Mavericks): Reindex messages
    Regards,
    - Brenden

  • Thunderbird indiscriminately deletes messages in any of the folders in which messages exist.

    I have no problem deleting messages but find that messages I have not deleted disappear.

    If you select a mailbox, you should get an Edit button (easier to see in landscape mode). Clicking the button will provide you with check circles for the messages. You also get Delete and Move buttons at the bottom. Check the messages you want to move and then navigate to the mailbox you want to drop them into. I think as long as you can navigate to a mailbox you can move the messages to it.
    In the Mac Mail application and probably Outlook on the Windows side, you also setup rules to move messages to specific mailboxes. If the mailboxes are stored on the server, then you can have the sorting done on the server and they should appear that way on the iPad. If your later messages do not show up, you may need to have the iPad app pulled down more messages until they are all showing.

  • Deleting messages from POP3 gmail accouts

    Hello all.
    I built an application that deals with email boxes.
    I experienced a problem deleting messages from gmail accounts, but only on POP3.
    My approach was to open the folder in RW, mark the flag DELETED, and close the folder with expunge = true.
    It works for IMAP and other POP3 mailboxes.
    Thanks for any help.

    I haven't used Entourage in years, I can't remember exactly so start in the Mail accounts options and look around for Imap or Subscribed folders settings.
    Added
    It's in Account Settings on the Entourage menu.
    Also I found this:

  • I am having a problem with email, when I delete messages from my Ipad, they come back into trash whether they are on my PC or not. The only way I can delete them is to to my providers site and delete everything there.

    I am having a problem with email. I can receive and send, but when I delete, the deleted messages return into either Trash or Bin or both whether or not I have deleted them from my PC.
    The only way I can get rid of them permanently, is to go into my area of my providers site(Sky) and empty all of the boxes there. I imagine it's a setting, please advise.

    For IMAP mail only.
    Settings>Mail, Contacts, Calendars>tap on mail account>Archieve Messages>OFF

  • Gmail and deleted messages synch problem

    First of all, sorry for my english
    I have few gmail accounts on my Bold. Imap is enabled on ALL gmail accounts of course.
    If i delete a message from web/pc(imap) this message is deleted on my bold ONLY if the account was set *MANUALLY*.
    By "manually" i mean enter a wrong email address in the email address field (with this BIS new version you cannot set manually a gmail address any more) and then modify it filling all fields with the correct settings, email address, imap server etc etc.
    If i setup a gmail address automatically, when i delete a message from web, it won't be deleted from my bold.
    Tried with and without gmail plugin. It seems that this happens only with old accounts, removed and restored but not 100% sure about that... i used to have all my gmail accounts set manually.
    Of course i tried to reset, wipe, send book services thousand of times etc etc. No way... only gmail accounts with manual settings are synch.
    Any solution if i want to use gmail plugin and i want my deleted messages to be synch?
    Thanks a lot, i really don't know what to do....
    Message Edited by Danielem on 09-23-2009 03:16 PM
    Message Edited by Danielem on 09-23-2009 03:16 PM

    hi, did you try pop3 gmail account ?
    and ıf you have problem yet ? you should your gsm operator support and you should want auto sync delete about your gmail account?.. because this is a sync problem and they manage your account only some matter, ı hope that they can help you, and can you tell us thnks lot of;=)
    best regard
    Blackberry support teams in linkedin ...join
    http://www.linkedin.com/groups?home=&gid=2785187&trk=anet_ug_hm
    For Russian
    http://www.linkedin.com/groups?gid=3183812&trk=anetsrch_name&goback=.gdr_1278482273982_1

  • Problem : My messages are not deleted

    Hello everyone, (sorry for my english)
    I have an iPhone iOS 7.0.4 and 5C, and I have a problem about messages.
    When I delete a conversation (either with Messages or iMessage) it's impossible for me to send messages to anyone else, I absolutely have to turn off my iPhone, then, when I turn back on the messages, it is obviously not sent, and the conversation expected to be deleted reappear.
    I tried to delete the messages and wait a whole night, when I restart the iPhone, conversations reappeared.
    I wonder if this problem also happens for you.
    Ps: When I delete only one message from the conversation, it's the same problem, I can not send sms then.
    I look forward to your help

    SunGudzy;
    I have tried that too and nothing is working. I've also tried to reset that i have seen other IPhone users post and still the same problem.

  • Retaining deleted messages - problem with preference settings (?)

    I have set up my Mailbox Behaviours to
    1) automatically "move deleted message to the Trash mailbox" (this option is selected)
    and
    2) Store deleted messages on the server (IMAP)
    and
    3) Permenantly erase deleted messages when "One month old"
    BUT... for some reason Mail keeps deleting my messages after approx on week. I have tried changing the settings various ways, but can't seem to overcome this problem. There do not appear
    to be any restrictions or rules on my IMAP server side that would be over-riding the MAIL prefs.
    ANYONE have a suggestion or know what my problem is?

    I believe it’s the server, not Mail, who is permanently deleting those messages. Try turning OFF Store deleted messages on the server, so that deleted messages are stored locally instead, or create a new mailbox on the server and do Mailbox > Use This Mailbox For > Trash on it. Manually move messages to the mailbox that was previously being used to store deleted messages on the server (which should appear now with a generic folder icon in the mailbox list) and see whether the messages are still being deleted from there after one week like before, even though as far as Mail goes it’s now a mailbox like any other.

  • Having problem deleting all but one particular mail from the iPhone 4S mail inbox. I can delete mail either by the trash can or using edit, selecting the mail message and deleting.  However there is this one mail message that will not go away. Any ideas?

    I am having a problem deleting all but one particular mail message from my inbox. I delete by either using the trash can icon for individual mail, or using edit, selecting the mail message (s) and clicking delete.  However there is this one mail message that will not go away regardles of what I do including deleting all from the trash.  Any ideas?

    I get that every once in a while on my 3GS, and that's what I do to get rid of it. Probably not a bad idea to power down the phone every so often, anyway, gets rid of any crud waiting to cause a bug.
    Glad to hear that it worked for you.

  • Gmail & Mail 3.0: Sudden new problems--can't receive or delete messages

    For the last two days I've had very odd problems with Mail. They seemed to start out of the blue; the only thing new I've done in this time frame is get an iPhone, which I set up with imap/gmail (I installed Leopard long before these problems started). For a couple of days I was unable to send messages. Then suddenly last night I was able to send but now I can't receive or delete messages. Does anyone know what may be the problem and what to do? Thanks so much.

    I'll add my sad story...
    Since upgrading, one email account will not receive mail - says the server reject my password, although I can retrieve my mail from the web. It is a POP account, although I tried setting up another with the same settings but as an IMAP account, with no luck. Outgoing mail is fine and other accounts, such as .mac and gmail seem to work. Tried recreating the account as a new user (so no old preferences messing things up) and from a new mail program (Thunderbird), but still rejects my password. I will try from an 10.4 machine today to see if I can get my mail.

  • When deleting messages I get this message:"74608.emlx" couldn't be copied to "Messages" because an item with the same name already exists.  How can I fix this problem?

    When trying to delete messages in mail, I've been getting this message:“74608.emlx” couldn’t be copied to “Messages” because an item with the same name already exists."  The numbers at the beginning are always different but the ".emlx" and the rest of the statement is always the same.  How can I fix this problem?
    Thanks
    Candy777

    HT2500 Error when deleting email: Apple Support Communities

  • Mail Adapter Problem --- Unable to save deleted messages

    Hi All,
    I'm using a sender mail adapter.
    The XI adapter is polling the mailbox properly.
    I have choosen the option <b>Delete Messages Once Read</b> and I have also mentioned a folder for the deleted messages.
    But the messages after processing are deleted from the inbox and not being moved into the folder i specified for <b>deleted</b> messages.
    Request you ppl to help me out!!
    Cheers!!
    Sidharth

    Sidharth,
    Where have you created the folder?
    ---Satish

  • Why do deleted messages return to my inbox later? How can I fix this problem?

    Hours or sometimes days after I delete messages, they are returned to my inbox. Usually it's only one or two, so I simply delete them a second time. But this morning almost 30 returned.

    When deleted messages reappear it is likiely that the Inbox is corrupted.
    If you don't compact your folders regularly, performance can slow to a crawl, you can't store new messages anymore, start losing parts of messages or have deleted messages resurrected.
    This is what I suggest.
    * Move all good emails out of the Inbox into suitable folders for organising.
    * Delete any emails you do not want.
    * When Inbox is empty, right click on the Inbox folder and select 'Compact'.
    This will remove all traces of 'marked as deleted' emails.
    * Then right click on the Deleted folder and select 'Empty Deleted'
    * Then right click on the Deleted folder and select 'Compact'
    Info on Keeping Thunderbird healthy:
    * http://kb.mozillazine.org/Keep_it_working_-_Thunderbird
    Info on compacting. what it does and why it is important:
    * http://kb.mozillazine.org/Compacting_folders

  • "delete message on mailbox and handheld" Problem

    I have 4 email accounts on my BIS  2 hotmail, 2 pop3.   After I did a reset on my curve, only one of my accounts gives me the option to delete message on mailbox and handheld.  Previous to the reset, all accounts gave me that option.  I've tried resending service books, reregistering host routing tables, etc.   Any ideas?
    Solved!
    Go to Solution.

    You must to go your message inbox, then to options, then email reconciliation and scroll through EACH email address under message services and make sure "delete on" is set to prompt.  It must be set to prompt for each email address.  

Maybe you are looking for

  • Transfer playlists from my ipod classic to my computer

    When I bought a new computer my library got transferred but not my playlists. I cannot drag or populate a new playlist on my computer from the playlist on my ipod. How can I do this?

  • Removing attachments not always succeeds

    Most of the times, when I've selected a message which contains attachments and then click Remove Attachments things go well: Mail informs me that the attachments have been removed by showing something like: [The attachment someattachedfilename has be

  • Time Dimension _ Report on Current month and previous year.TOTAL

    Hi, My Time dimension is as under . July2013, Aug2013 ,......Jan2014,,,. June2014  = 2014.TOTAL My requirement is to report based on context view along with previous period total (.TOTAL) values. For example :      If i am using CV as : 2013.JUL my r

  • Controlling area does not exist in assignment ?

    Hi, I've created & assinged controlling area to the company code , But then When I used PPOME to create org unit and assign the Controlling area , It did not exist in the list ? How can i configure this Thanks in advance

  • Has anyone here ever used their Mac to run Holiday lights?

    I'm somewhat interested in running a holiday light show on my mac. I just started research last night but the majority of component and software manufacturers say Windows and the rest say nothing. Does anyone have any experience with this?