IMAP mail sorting on server?

I am running OS X 10.5 Server as a mail server. I access my mail also with Squirrelmail when on the road without my laptop. As I get quite a lot of mail, I use Mail.app to sort my mail on a client. The client, btw, has portable home directories.
So here is my problem. To keep my mail sorted when I am away (so I get sorted mail when I use Squirrelmail) I have to keep a client running, logged in as myself and with Mail.app running. I cannot keep an account of myself logged in on the server, because that would block the syncing of my portable home directory.
I would like to conserve energy. If I can sort the mail on the server without being logged in on that server, I would not need to keep a client up and running all the time. Is there a way I can do that? Specifically, is there a mail sorter that works with my (secure) IMAP mailbox on the server, can run on the server without me being logged in? I have used procmail years ago, but I would need some way to access my IMAP account securely. I'd rather have something that directly bolts on to IMAP and that reads a configuration file somewhere.
Does something like that exist?
Thanks,

This is about sorting into different mailboxes, not sort order in a view on a mailbox. But I think I have found some tools already. It seems sieve is the way to go.

Similar Messages

  • With an IMAP account, if "Store sent messages on the server" is checked does Mail only store mail on the server?

    With an IMAP account, if "Store sent messages on the server" is checked (in Mailbox behaviors) does Mail only store sent mail on the server?
    So should it not be checked if you want Mail to store sent mail on the server and the computer?
    Thank you.
    iHope

    Hi Norm G,
    Thanks for your comments and the link to further information.
    With it checked you will get both on the server and the Mac.
    I have it checked, yet when I pause the curser over Sent mailbox the tooltip says "Contents stored on server. Name on server: Sent Messages". Does this mean stored only on the server or also on the server?
    What does your tooltip say?
    At the moment sent emails only appear in that Sent mailbox. If Mail also stores them on the Mac should they also appear in another Sent folder "On My Mac"?
    Thanks for your help.
    iHope

  • IMAP-Mail: IllegalWriteException caused by IMAP-Server?

    hello guys,
    just one short question: does the IllegalWriteException from javax.mail.Message saveChanged() is caused by the underlying IMAP-Server (e.g. it doesn`t support that feature) or is it a java-problem?
    does changing the current IMAP-Server could solve the problem?
    can`t find nothing about that problem anywhere and the error-description from javadocs ("if the underlying implementation does not support modification of existing values.") is very abstract :(
    thanks
    Rolf

    The basic server setting is imap.mail.me.com and that is what should show in the settings: however Apple adds the p number, possiblly on a geographical basis, and you needn't take any notice of it as long as your email is working OK.
    Your signature says you have Leopard, but presumably this is not correct? Could you please correct it to avoid possibl confusion as answers often depend on your system.

  • Please a program to connect to IMAP mail server

    Hi All,
    I am using the following program to connect to my organization's imap mail server..
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class readm
    public static  void main(String args[]) throws MessagingException
    Properties props =System.getProperties();
    props.put("mail.imap.host","gwes.wide.corp.gwes.com " );
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(true);
    Store store = session.getStore("imap");
    System.out.println("IMAP");
    store.connect("gwes.wide.corp.gwes.com ", 25 , "user", "password");
    }and get the below exception..
    DEBUG: setDebug: JavaMail version 1.4.1
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    IMAP
    220 gwes.wide.corp.gwes.com  Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Sat, 6 Sep 2008 18:07:06 -0400
    Exception in thread "main" javax.mail.MessagingException: 220 gwes.wide.corp.gwes.com  Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Sat, 6 Sep 2008 18:07:06 -0400 ;
      nested exception is:
            com.sun.mail.iap.ConnectionException: 220 gwes.wide.corp.gwes.com  Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Sat, 6 Sep 2008 18:07:06 -0400
            at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:569)
            at javax.mail.Service.connect(Service.java:288)
            at readm.main(readm.java:16)
    Caused by: com.sun.mail.iap.ConnectionException: 220 gwes.wide.corp.gwes.com  Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Sat, 6 Sep 2008 18:07:06 -0400
            at com.sun.mail.imap.protocol.IMAPProtocol.processGreeting(IMAPProtocol.java:230)
            at com.sun.mail.iap.Protocol.<init>(Protocol.java:114)
            at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
            at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
            ... 2 moreI have posted this already in Java Essentials > Java Programming
    but I have not got any solution there. Please help me to correct this code or else give me a code that you feel work with an imap mail server at all conditions , I am running this code in unix. Any help would be a great one....
    Advance thanks..

    Thankyou for trying to help me...
    bshannon wrote:
    The FAQ has debugging tips for debugging connection problems.
    Did you try them? What happened?Please find in my code.. I have set debuggging(session.setDebug(true);)
    I tried to telnet Here is the output
    telnet gwes.wide.corp.gwes.com 25
    Trying 148.86.36.29...
    Connected to gwes.wide.corp.gwes.com .
    Escape character is '^]'.
    220 gwes.wide.corp.gwes.com  Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Thu, 4 Sep 2008 16:53:24 -0400
    quit
    221 2.0.0 gwes.wide.corp.gwes.com  Service closing transmission channel
    Connection closed by foreign host.This means the server accepts conection through port 25. is not it?
    "Conection refused" usually means one of:
    1. There's no IMAP server on that host.
    2. The IMAP server only accepts connections on the secure port.
    3. There's a firewall preventing you from connecting.So when I use the 25 port explicitly, I am not getting any conection refused exception, so I need not analyze for the solution in the lines of connection refused. am I right ?
    Advance Thanks..

  • E75 not connecting to corporate (IMAP) mail server

    Cannot connect my new E75 to corporate IMAP mail server (Exchange), using SSL/TLS.
    I have E71, and this device connects with same settings to corporate email without problems.
    The same E75 connects to Gmail perfectly.
    The most weird is that it connected once, downloaded three arbitrary emails and that is it, no connection anymore.
    I am not using MfE, because I do not like MfE usability, I am using "regular" POP/IMAP version of the email client.
    Does anyone have any helpful hints? Thank you!

    If one searches the web there are many similar problems being faced on this device (E75) - whether you use GroupWise or Exchange. We have used the IMAP client on all previous Nokia phones upto and including the E71 with total success. That includes accessing the same mail boxes - E71 100% E75 only works with HTML mail - not text or richtext. Nokia representatives have been to our offices and seen the problem - they believe its an incompatibility between the new IMAP client and mail servers - what they don't know - are trying to find out if we can load an older IMAP client -
    One would think NOKIA would look into this and let everyone know what the problem is and any solution. This kind of thing without speed communication chases people away from a brand and its hard to get them back.
    Nokia please help all the users experiencing problems.

  • Hello, I'm using Mountain Lion and mail does not leave the mails on the server, either on iCloud nor on other suppliers (orange). They are both using iMap protocol... Any place where I could change this ? Thanks for any hall; Christian

    Hello, I'm using Mountain Lion and mail does not leave the mails on the server, either on iCloud nor on other suppliers (orange). They are both using iMap protocol... Any place where I could change this ? Thanks for any hall; Christian

    Under what circumstances does mail "not leave the mails on the server"?
    If you mean that you delete them (or move them out of the inbox) on one device and then find them not in the inbox on the server when you look from another device, that's how IMAP is supposed to work. (Note that the deletion or moving might be the result of rules you have set up in Mail.)
    If you mean something else, please explain your issue in more detail.

  • IMAP-Mail sender adapter handling with read messages in mailbox

    Hi,
    (PI 7.0)
    we have a "funny" situation:
    We are using imap-mail-sender adapter polling a mailbox.
    Sometimes there are read messages in mailbox so the adapter cannot read these messages.
    When we sort all read messages and we mark e.g. the second message in list as not read, the adapter polls fetch the first (already read) message and afterwards the not-read message and afterwards no other message is read.
    I think this behaviour is wrong because pi should not handle an already read meassage.
    Does anybody know this problem?
    Or is it a problem of the mail-server (Exchange 2003)?
    Thanx and regards
    Wolfgang

    Hi,
    thanx for your answer.
    The default behaviour of imap is "only fetching unread message" (s. FAQ of mail adapter)...
    The mail sender channel with IMAP4 fetches only the unread messages from the specified mail box in the order they are stored. Therefore, please make sure that you have some unread messages in the top of the list (if ordered by most recent on top). After a polling cycle, you can look at the status of this channel at the adapter's monitor. This should show any error if the messages are not processed correctly. Once the messages are read but not processed correctly, they remain in the mail box but are not read in the subsequent polling cycle. You must correct the problem and delete these messages using your mail client program or reset them as unread so that they can be resend.
    In our example the adapter fetchs read messages too (till the first unread one)  - and this is wrong (i think so!?).
    But I dont know if its a MS-Exchange problem.
    Regards
    Wolfgang
    Edited by: Wolfgang Hummel on Oct 7, 2009 12:20 PM
    Edited by: Wolfgang Hummel on Oct 7, 2009 12:21 PM

  • Folders appearing in IMAP/Mail.app - cannot delete

    I've had several odd mailboxes/folders appear in one of my IMAP accounts over the last 6 months or so. They appear only in Mail.app. If I log into the browser-based email client for that account, these mailboxes/folders are not visible. The name of each begins with "nfs" and is followed by various sorts of junk, e.g.:
    nfs00000000d809d85c000021bd
    nfs00000000d8602f56000010a1
    nfsd8bd59e5000075b7
    None of the mailboxes have any messages in them. I wouldn't care too much except that they take up a line each on the left-hand pane of Mail.app, pushing mailboxes I want to see down and off-screen.
    If I right-click/control-click on one and choose "Delete Folder," I get the following error message:
    "The IMAP command 'DELETE' failed with server error: Mailbox does not exist or must be subscribed to.."
    I've done a lot of searching online and have found no solutions to this problem. Any thoughts?
    Thanks,
    EH

    Problem may have been on the server. The folders did show up there, where they caused some problems with the browser-based email client, making it impossible for me to manage my folders there. Tech support for my server managed to locate and delete them. Still not sure how/why they appeared in the first place.
    I'm going to mark this question as answered, though I still don't know for sure where the problem arose (Mail.app vs. server weirdness).

  • I can't find a preference to keep mail on the server as it's deleted on individual devices. We have 4 Mac devices and a PC running W8 with the iCloud control panel. How can we keepthe mail on the server as it is deleted from the individual devices?

    How do I keep mail on the server as it is deleted on individaul devices? We have 4 Apple devices and a W8 laptop. We sort and read mail on all of them, but have found that deleting mail on one deletes it on all of them.

    Yahoo and Gmail both support POP if you wish.
    All modern email systems are Imap (because it supports multiple and mobile devices)
    I do not recommend POP under any circumstances, it can not be synchronized so unless you do not use Mobile devices at all (iPhones etc) it is useless.
    Yahoo users (search this site) have endless problems and Gmail is highly non-standard. Expect a learning curve for that one.
    Are you short of server space, why do you need to do this rather retrograde step?

  • Anyone know why since May 18th I get this when checking my POP3 mail from Mail? 'The server returned the error: The attempt to send data to the server "(null)" failed.' Looked at all the debates on here, nothing works. APPLE?!

    <rant>I have seen many people complaining about this. I've seen lots of suggestions; change your POP3 SSL number, twist your knee backwards whilst standing on just your little finger. Nothing works. I'd like to not have to migrate to a new Mail software.
    </rant>
    I thank you.
    <Edited by Host>

    MY SOLUTION REPOSTED FROM ANOTHER THREAD:
    I've just solved a similar issue.
    I have a dedicated server running Plesk 9.5 and when I upgraded to iLife 11 and Snow Leopard this error appeared. I could quickly click "get mail" and I'd get all my mail, but only 3-4 of my 9 mail accounts would connect. Theo others would have the error:
    "The server error encountered was: The attempt to read data from the server..."
    I found solutions for those using IMAP mail:
    modify the /etc/courier-imap/imapd configuration file and change MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40. This allows all the machines behind my home firewall to connect to multiple accounts on the e-mail server with mailbox caching enabled.
    I'd made this change on my server but it didn't seem to have any effect. It dawned on me that I'm using POP, not IMAP. So I found in /etc/courier-imap/pop3d the same settings. I changed the MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40 and voila, all my connections concurrently worked.
    This has taken me more than two days to fix and I hope posting this helps someone else with the same issue.

  • Reading mails from Hmail Server

    hi all,
    I am using an java mail api to read mails from a hmail server.I was successfull in reading mails and analysing it further but the problem that i face is my program could read only the recent mails ,all the remaining unread mails were not accessible from the java code.......i am attaching my code...
    package mail.hmailserver;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    public class ReadMail_frm_hmailserver {
         int c=0;
    @SuppressWarnings("unchecked")
    public static void main(String args[]) throws Exception {
    ReadMail_frm_hmailserver mailObj=new ReadMail_frm_hmailserver();
    mailObj.readMails();
    public Vector[] readMails() throws Exception
         String host = "172.29.19.78";
    String user = "[email protected]";
    String password = "testuser1";
    // Get system properties
    Properties properties = System.getProperties();
    // Get the default Session object.
    Session session = Session.getDefaultInstance(properties,null);
    // Get a Store object that implements the specified protocol.
    Store store = session.getStore("pop3");
    //Connect to the current host using the specified username and password.
    store.connect(host, user, password);
    //Create a Folder object corresponding to the given name.
    Folder folder = store.getFolder("inbox");
    // Open the Folder.
    folder.open(Folder.READ_ONLY);
    //folder.open(Folder.READ_WRITE);
    Message[] message = folder.getMessages();
    // String [] contents=new String[10];
    Vector [] contents = new Vector[message.length];//creating array of vectors to store mails
    // Vector contents1=new Vector();
    System.out.println("No of mails : " + message.length);
    System.out.println("subject 1 : "+message[0].getSentDate());
    System.out.println("subject 2 : "+message[0].getSubject());
    // System.out.println("subject 3 : "+message[2].getSubject());
    // System.out.println("subject 4 : "+message[3].getSubject());
    //System.out.println("-----------------");
    // Display message.
    for (int i = 0; i < message.length; i++) {
              c=0;
              contents[i] = new Vector(); //since vector array is an array of arrays we hav to initilize each of the content vectors
    System.out.println("------------ Message " + (i + 1) + " ------------");
    System.out.println("SentDate : " + message.getSentDate());
    System.out.println("From : " + message[i].getFrom()[0]);
    System.out.println("Subject : " + message[i].getSubject());
    System.out.print("Message : ");
    //System.out.println(message[i].getContent());
    Multipart multipart = (Multipart) message[i].getContent();
    //System.out.println(multipart.getCount());
    String line = null;
    for (int j = 0; j < multipart.getCount(); j++) {
    //System.out.println(i);
    //System.out.println(multipart.getContentType());
    BodyPart bodyPart = multipart.getBodyPart(j);
    InputStream stream = bodyPart.getInputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(stream));
    while (br.ready()) {         
         try {
                                  //line.append(br.readLine());
              //line=line+"\n"+br.readLine();
              line=br.readLine();
              if(line.equals("NOTICE")){
                        System.out.println("entered-----------------------------exit loop");
                        //exit();
                        c++;
                        break;
              if(c==0)
              contents[i].add(line); //adding the mails line by line to the array
                             System.out.println(line);
              //System.out.println(contents[i].get(j));
         } catch (Exception e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                                  System.out.println("Exception : "+e);
         //contents[1].add(line);
    System.out.println();
    //System.out.println(line);
    // contents[i].add(line); //adding the mails line by line to the array
    System.out.println();
    // folder.close(true);
    //store.close();
    //System.out.println(contents.length);
    //System.out.println(contents[0].get(0));
    //System.out.println(contents[0].);
    return contents;

    You might want to use IMAP to read mail from hMail Server, if you keep messages on server. It has a lot more features for managing messages on server.
    A lot of POP3 implementations (both client and server side) will automatically delete retrieved messages. I don't know exactly what JavaMail does in that regard, nor of hMailServer, but I do know some mailservers out in the wild will ALWAYS delete mails retrieved with POP3.

  • How to change "Full Name" in iCloud IMAP mail account information

    Brand new to this forum so please excuse any newbieisms. I am running OS X 10.7.5 I created an iCloud IMAP mail account so that I can sync with my iPhone.
    Windows Live is my original mail account. All is good except the "Full Name" in "Accounts" preferernces is somehow incorrect. When I send mail frm my Mac, this incorrect name shows in the "From" field. Mail sent from my iPhone shows my correct name as it appears in my phone cloud settings. The name doesn't sync in iCloud. All other syncing is good. When I try to change it manually in my Mac mail preferences, I get the message "the"Incoming Mail Server" field can not be empty" when I try to save the changes. The aforementioned field is not empty and is in fact greyed out as this was self populated upon creation of the account. I can't even change the case sensitivity of the name or I get the message. As a stop gap I have created an alias to send mail with, but would like a proper fix. Any ideas?

    If you created a new iCloud account it would have a new associated iCloud email account.  You wouldn't be able to move your current @icloud.com address to the new account.
    Just to double-check, after quitting (Command-Q) and re-opening Mail, did you start an new message and click the down-arrow next to From to see if the new sender name was available from the drop-down list (see image below)?  If so, you might try signing out of iCloud entirely.  To do this, go to System Preferences>iCloud, click Sign Out, choose Delete at all of the prompts, restart your Mac, then sign back in and test Mail again.  (This deletes the account and your iCloud data from your Mac, but not from iCloud.  Your iCloud data will reappear on your Mac when you sign back in.)

  • Asha 200: Cannot setup IMAP mail account.

    Hello
    I'm trying to setup an IMAP mail account on Nokia Mail app.
    It's a simple and straightforward configuration (or I thought it was), but I'm allways getting an error "Cannot login. Try again later".
    I tried the same configuration in Mozzilla Thunderbird and some old Sony Ericsson with sucess.
    All other accounts like GMail or Hotmail are working fine. Internet also works
    Does anyone has a clue?
    Thanks.

    Hello:
    I've a similar problem with my Nokia Asha 302 because I can connect to IMAP server but the phone don't get the messages after the sync, the phone inbox is empty but there are a lot of new emails un the server.
    I'm using an institutional email account that's work using the gmail server utilities but with a specific server address. The same account is accessible using the same IMAP parameters but in another nokia phone (X6) and also in my tablet Toshiba, so, is not a server or configuration problem.
    My Asha 302 is up to date with software version 15.09.
    Did you resolve your problem?

  • Unable to delete IMAP mail account in Yosemite

    I have set up a number of IMAP mail accounts, but have changed servers. I'm unable to delete the old accounts in the "Accounts" tab of Mail with an "error" dialog referring me to "Internet Accounts" tab of System Preferences. The accounts do NOT exist in this list. The accounts have been unchanged for years and have migrated with each OS & Mail.app upgrade.
    I don't necessarily wish to delete the accounts - if I could just edit the server details that would do the job, however that  field is greyed-out and can't be edited.

    I am having the exact same problem. iPhone 5 on 7.1. I try to 'turn off' contacts, the phone requires me to 'delete my account'. I agree to do so, and the phone just 'hangs' at the 'Delete' screen. I have allowed it to continue for over a half hour.

  • IMAP mail problems -- is someone fixing this?

    Hi
    I've seen a ton of questions the last day on imap mail problems. I am experiencing the same on my gmail account; it's kicking out a message that my password is incorrect.
    I get the password is incorrect at imap.gmail.com; have logged out of gmail on the Mac, logged back in, checked that imap is enabled, 17-tuple checked the password, etc.
    Seems a lot of folks have this problem on various providers...is this an Apple problem, and are they doing anything about it?
    Thanks

    I know this from experience and general knowledge.
    If your account's password is rejected with an email client on your computer and with your iPhone, how do you figure this has anything to do with Apple?
    AOL reported problems today with AOL account access via IMAP with an email client only. Webmail access with a browser was not affected. This was an AOL server problem which had nothing to do with Apple or with Microsoft for those with a PC who couldn't access their AOL account being accessed as an IMAP account with an email client on their PC either.
    Have you contacted Google or Gmail customer or technical support?
    Message was edited by: Allan Sampson

Maybe you are looking for