Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'BTW this works with 10.3 "postmail"' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
BTW this works with 10.3 "postmail"
Authored by: morphis on Feb 19, '04 10:26:22AM
A little edit to the startup item /Library/StartupItems/fetchmail/fetchmail
#!/bin/sh

. /etc/rc.common

StartService ()
{
    if [ "${MAILMAN:=-NO-}" = "-YES-" ]; then
            ConsoleMessage "Starting fetchmail services"
            /usr/bin/fetchmail --fetchmailrc /etc/mail/fetchmailrc  --logfile /var/log/mail.log --silent
    fi
}

StopService ()
{
        ConsoleMessage "Stopping fetchmail services"
        /usr/bin/fetchmail --quit
}

RestartService ()
{
return 0
}

RunService "$1"
And to /Library/StartupItems/fetchmail/StartupParameters.plist
{
  Description   = "Fetchmail mail server";
  Provides      = ("fetchmail");
  Requires      = ("Resolver");
  Uses          = ("Network Time", "NFS");
  Preference    = "None";
  Messages =
  {
    start = "Starting Fetchmail";
    stop  = "Stopping Fetchmail";
  };
}
Remember man fetchmail for help
Otherwise your brain may/will explode

[ Reply to This | # ]