How do I poll multiple email accounts?

Hi.
I'm switching from a Linux based PC to a Mac mini as my primary computer. (One reason only, a silent computer)
In my Linux system I have several accounts that I poll through fetchmail with cron.
Now I'm wondering if there is available in OSx an equal feature, to poll several accounts even though the email application isn't started?
Thx,
/Mysteron

If by poll you meant to check for new mail without downloading it, I don't think so. You could run an applescript to have mail get any messages from your configured accounts, and fire the script with cron. Otherwise, just replicate what you were doing on Linux- fetchmail is available.
AK

Similar Messages

  • How do I access multiple email accounts

    I just got my Bionic a few days ago and have set up multiple email accounts (work, gmail, yahoo).  When I click the "email" icon only one account appears.  I can't seem to find the inbox, etc for any of the other accounts.  The only time I can find those messages is when a new message comes in and I get notified of it.  Then I can catch the other messages.
    How do I access the inboxes for all the accounts?  This must be obvious but i'm missing it.

    Questions are typically followed by a question mark. My answer answered your question.
    Firefox doesn't do email, so there are no "Firefox email accounts". If you are accessing "email" with Firefox, you are using web mail. Some web mail services don't allow for direct access, they want their users to access their email from a "portal" or "main" page and will re-direct any attempt to load an "internal" web site page back to the main page.
    As far as loading 3 different web mail accounts at the same time, if they are in the same domain it won't work on Firefox without a Firefox addon. http://br.mozdev.org/multifox/
    IOW, if those three email accounts all with Yahoo, without that add-on you would have to logon to each email account separately and log out of the first before logging into the 2nd. Then log out of the 2nd before logging into the 3rd. Firefox isn't capable of having multiple session cookies for simultaneous logon's to the same server. That add-on provides that "multiple sessions cookies" feature.

  • How can i read multiple email accounts?

    hi,
    my program is to get emails from multiple email accounts, and grab the attachments, but it doesn't work properly.
    If there's only one email account, it works fine, but if there are more, it looks like that the program always goes into the first mail account to read the messages. i suspect that the 'Server' or the 'Session' are not reset before each connection, i printed out the connected 'Folder', it looks fine, but every time the 'Folder.getMessageCount()' returns the same number of messages as the first email account has.
    Here's my code:
    // this is to get the folder, mostly 'inbox'
    // serverString is like: "protocol://username@host/foldername"
    // all parameters are retrieved from the Database
    public static Folder getMailFolder(String serverString, String username, String password) throws Exception {
            // URLName server = new URLName("protocol://username@host/foldername");
            Folder folder = null;
            URLName server = new URLName(serverString);
            // the session is created by grabbing the authentication using the username and password
            // the MailAuthenticator is an inner class as shown at the bottom
            Session session = Session.getDefaultInstance(new Properties(),
                    new MailAuthenticator(username, password));
            folder = session.getFolder(server);
            // this message always show the same number of messages
            System.out.println("folder retrieved for " + serverString + ", with " + folder.getMessageCount() + " messages");
            return folder;
    // this method is to get the messages from the folder
    public static void getEmailWithSubjectContaining(String emailUrl, String username, String password,
                  String regex, String filepath, boolean addPrefix, boolean delete)
             throws Exception {
             Folder folder = getMailFolder(emailUrl, username, password);
            if (folder == null)  return;
            folder.open(Folder.READ_WRITE);
            Message[] msgs = folder.getMessages();
            // Here is my problem, the msgs.length always returns the same value
            // which is the number of messages that the first email account has
            System.out.println("Totally there are " + msgs.length);
            for (int i = 0; i < msgs.length; i++) {
                 String pathToSave = filepath;
                   String subject = msgs.getSubject();
                   System.out.println("Email subject: " + subject);
    // examine if the message should be dumped and deleted
                   if (!subject.matches(regex)) {
                        System.out.println("Email subject doesn't match regex: " + regex + ", this email is ignored.");
                        continue;
                   Part p = (Part) msgs[i];
    //               p.getFileName();
                   if (addPrefix) {
                        pathToSave = filepath + "/" + getFilenamePrefix(subject);
    // this method call is to save the attachment
                   dumpAttachment(p, pathToSave);
                   msgs[i].setFlag(Flags.Flag.DELETED, delete);
              folder.expunge();
    folder.close(false);
    // this method calls getEmailWithSubjectContaining using a loop
    public static void getEmailWithSubjectContaining(String dbUsername, String dbPassword, String dbUrl) throws Exception {
         Connection con = null;
         if (dbUrl == null || dbUrl.equals("")) dbUrl = "jdbc:mysql://localhost/email_util";
              try {
    // here is just simply get the Database connection
                   con = MySqlJDBCConnection.getConnection(dbUsername, dbPassword, dbUrl);
                   Statement s = con.createStatement();
                   String sql = "SELECT * FROM email_fetching_config WHERE active = 1";
                   ResultSet rs = s.executeQuery(sql);
                   while (rs.next()) {
                        String protocol = rs.getString("protocol");
                        String url = rs.getString("url");
                        String box = rs.getString("email_box");
                        String username = rs.getString("username");
                        String password = rs.getString("password");
                        String regex = rs.getString("sub_regex");
                        String path = rs.getString("save_to");
                        String prefix = rs.getString("append_prefix");
                        boolean delete = rs.getBoolean("delete");
                        String emailUrl = protocol + "://" + username + "@" + url + "/" + box;
                        boolean addPrefix = (!prefix.equals("") || prefix != null);
                        System.out.println("Ready to grab emails from " + emailUrl + ", path to save is: " + path);
                        try {
                             getEmailWithSubjectContaining(emailUrl, username, password, regex, path, addPrefix, delete);
                        } catch (Exception ex) {
              } catch (Exception ex) {
                   ex.printStackTrace();
              } finally {
                   MySqlJDBCConnection.close();
    ********* Authenticator *******
    class MailAuthenticator extends Authenticator {
    private String username;
    private String password;
    public MailAuthenticator() {
    public MailAuthenticator(String username, String password) {
    this.username = username;
    this.password = password;
    public PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication(this.username, this.password);
    This is all my program doing, anyone knows what the program is? thanks for your help!
    regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Assuming you're passing in the right URL, I don't see the problem.
    Still, try change session.getDefaultInstance to session.getInstance
    and see if that helps. If not, turn on session debugging and check the
    protocol trace for clues. If you still can't figure it out, post the protocol
    trace.

  • How do I sync multiple email accounts on ipad

    So I'm now, dubiously, the lucky owner of iPad mini with up to date software and iMac with latest software.
    It now seems apple have decided they don't want me to use more than one email account and so have stopped me being able to sync them ? Even for apple this is breathtaking in its arrogance and fascistic nature...
    Anyone any ideas?

    By synchronize, I suspect you mean that reading or deleting a message on one device will result it its being read or deleted on the other device. If so, this is only possible for IMAP accounts or exchange accounts. This is not an iPad limitation but a limitation in the email system protocols. iCloud mail is an IMAP system; so, iCloud email will synchronize automatically. There could be a slight delay in this, but it works.
    Many email systems (Comcast may be one of the more common) are POP accounts. Those won't sychronize at all regardless of device used.
    If by synchronize you mean that you can have the account on multiple devices and that's all; no problem regardless of the system. But, remember that you will download all your POP messages even if you have read and deleted them on another device. That can be a pain.

  • How do I setup multiple emails accounts on mail for mac pro ?

    how do I setup multiple mails on mac pro

    Multiple mail accounts? With mail.app? It doesn't matter what mac it is?  Just set up accounts with Mail.app preferences --> Accounts --> '+', fill in the relevant info.

  • How to set up multiple email accounts?

    I need to set up additional email accounts on my iphone and can't figure out how to do that.  I set up an AOL account but want to add one from my personal website.  All it show is my AOL account and doesn't give me an option to add another email address.

    Go to settings, go to mail, then add account

  • How can i host multiple email accounts?

    Hi there,
    I've a problem.
    I have installed Lion os x server with the latest updates.
    I need help to set up Separate E-Mail Accounts for each Domain, so each Domain receives it's own mail.
    I have the following domains that i want to host with emails.
    www.example1.com
    www.example2.com
    Hosting of website is not a problem. I have it working including PHP+MYSQL.
    But now..How can i setup to receive and send emails with both domains? (www.example1.com and www.example2.com)
    I want to have something like this:
    www.example1.com:
    [email protected]
    Hostname: server.example1.com
    Outgoing: server.example1.com
    and
    www.example2.com:
    [email protected]
    Hostname: server.example2.com
    Outgoing: server.example2.com
    for www.example1.com it's the standard one and works fine (including apple Push). But realy confusing that i cannot get it work with example2.com.
    Can anybody help me? I've searched the whole web but cannot find a good answer.
    Thank you very much in advance!
    JBressers

    You can run multiple domains in postfix/Mac OS X server, but don't get bogged down with the hostname.
    There is nothing wrong with mail for a [email protected] being delivered to/from a server.example2.com (or vice versa). Most users never see the hostname of the server in the process, so don't bother trying to create multiple hostnames on the server to make this work. If you're really bothered just create records in your DNS that map back to the same IP address (e.g. server.example1.com -> 1.2.3.4, server.example2.com -> CNAME -> server.example1.com) so users can use either hostname.
    For the accounts, there are two ways of managing multiple domains, depending largely on your comfort level with the command line vs. GUI, and how the users map.
    If the usernames are the same (e.g. [email protected] is the same person as [email protected]) then the simplest thing to do is tell postfix to accept mail for both domains - mail addressed to either domain (example1.com or example2.com) will route to the same user's mailbox.
    If your users are different then you can either use Mac OS X-style aliases or postfix aliases.
    The Mac OS X-style aliases work through Workgroup Manager - you add all your users to the main directory, and create additional shortnames for each user's email addresses. For example, you might have a user 'joe' who is also '[email protected]', so add that second email address as a shortname.
    Postfix-style aliases require setting up in the command line, where you create maps of email addresses to users, and is well documented on various postfix-driven web sites.

  • Can I open multiple email accounts on my ipad?

    How can I open multiple email accounts on my ipad?

    Hello Danbonow,
    Yes, to do that, follow this instructions:
    Open Settings.
    Tap "Mail, Contacts, Calendar".
    Select "Add account" and fill the details.
    Sincerely,
    Gonçalo Matos

  • How do i delete  multiple emails at one time from iphone Mail account with iphone 4s?

    how do i delete  multiple emails at one time from iphone Mail account with iphone 4s?

    Better than that!
    http://www.youtube.com/watch?v=fKa-KFjUIGE
    Select a message, hold the move button, deselect the message while still holding the move button.
    A new window appears allowing you to move all messages to the trash.
    Bingo!

  • If I have multiple email accounts, how can I prevent one of them from sending email?

    If set up multiple email accounts in Thunderbird, how can I prevent one of them from sending email, while allowing others to send?

    Simple answer:
    do not use the email address when sending or replying or forwarding emails. Sending is not automatic, you have to generate the email and click on a Send button.
    You could use an smtp server that will not allow sending using the incorrect server for the email address, so that it cannot send, but if you accidentally use the email address you may get an error message, but at least the email will not be sent. Do this here:
    Tools > Account Settings for the mail account.
    bottom right Outgoing Server - select one that will not accept sending using wrong email address
    OR
    in Outgoing Server(SMTP) select the server you are using for that account
    click on 'Edit'
    deliberately make an error in the server name - remove the port details etc.
    So the details are wrong and cannot send.

  • I have multiple email accounts on my iPad. How do I control the order in which the accounts are displayed?

    I have multiple email accounts on my iPad. How do I control the order in which the accounts are displayed?

    In landscape mode, the mailbox list is automatically displayed (in portrait mode, you will need to tap the button to,show it).
    To edit the list, tap edit as shown below.

  • How to setup multiple email accounts on one apple device It syncs to the rest of my apple devices?

    I have a Macbook pro (10.8.2), iPad 4 (6.0.1), and iPhone 5 (6.0.1).
    I have multiple email accounts set up on my iPhone:
    3X Work
    1X personal
    1X School
    They use Gmail and Microsoft exchange.
    Is it possible to have all these accounts automatically created on my ipad and Macbook without typing in all info again?
    Heres a visual:
    I hope this makes it a little more clear.
    I'm sure in the time it took me to type this, I could've manually added all the accounts to the devices lol
    Oh, and iCloud > Mail is enabled on all devices.
    Thanks for any and all help!

    Your post is a bit open ended....
    First thing - You need to decide if you want to use virtual domains or not.
    If
         [email protected]
         [email protected]
         [email protected]
    all should be separate mailboxes, then you need virtual domains.
    If those 3 addresses can all go to the same mailbox, then you don't.
    If you don't need virtual domains, then don't use them... things are simpler without that feature.
    If thats the case, in the domain name field in Mail service, enter your primary domain.
    You'll then need to enter your other domains via command line.
    First, check your mail domain setting with:
    sudo serveradmin settings mail:postfix:mydomain
    Here is how you enter more than one domain:
    - Quit the Server app
    - Issue this with your domains between the quotes
    sudo serveradmin settings mail:postfix:mydomain = "domain1.com, domain2.com"
    - Restart postfix to activate your change
    sudo postfix reload
    If you open the Server app, you will notice both domains are now listed.

  • I have multiple email accounts.  One is a google email and another aol.  I have the aol going into my google.  I Now Go Lead Generate! Am using outlook on my pc.  How can I get my outlook to share with my ipad?

    I have multiple email accounts.  One is a google email and another aol.  I have the aol going into my google.  I Now Go Lead Generate! Am using outlook on my pc.  How can I get my outlook to share with my ipad?

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • HT2490 how do i change my settings for iMessage on an iMac? I want to be able to use multiple email accounts and cell number as well.

    how do i change my settings for iMessage on an iMac? I want to be able to use multiple email accounts and cell number as well.

    Open Messages and choose Preferences from under the menu bar program's name and add source accounts to use.

  • How do I set individual sound alerts for multiple email accounts?

    How do I set individual sound alerts for multiple email accounts?

    Here: http://www.guidingtech.com/15275/get-different-notifications-per-mail-account-io s-6/
    Long and short of it, the settings can be individually changed under Notifications. Select Mail and then the account you want to change the sound to.

Maybe you are looking for

  • Two If statments

    Hi Gurus, Please check below conditon here two if statements are there if a>b then Result = c - d if c<=d then Result = 0 How to write if statement in Query designer Regards, Ram

  • Changing the name of serial communication example in lab windows. Urgent help required

    I am using the example of getting data from rs 232 in lab windows. I want to use this in my final year project that's why I want to change its name that appears as  "serial communication example" how can I change its name and how can I make its exe f

  • Data exchange Mainscript (SCRIPT) with script block (DAC)

    Is there any way to exchange data beetwen a Mainscript (SCRIPT) with user-dialoges and script block (DAC) in this way that the script in scriptblock can access to this data? Background: I write a DAC-Application with some script-blocks for reading an

  • Execute Java code after login

    Hi experts, I'd like to execute some Java code after a successful login. I guess I could write a custom login module or use a WD Java iView to do this but a "better" solution may exist. Regards, Pierre

  • How do I view notes that I had backed up onto my computer from my iphone on my mac?

    I backed up my notes on my iphone 4s to my mac before wiping it to give to someone else. I found on here to go to Library-App Support- Mobile Sync-Backup and I can see the files of the backup, but it all opens in TextEdit as gibberish when I try and