Editing Improving Modest email sync reliability

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 226: Line 226:
  * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN] Dovecot ready.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN] Dovecot ready.
-
In order dovecot to be started at boot time, you can create this upstart script as /etc/event.d/dovecot
+
In order dovecot to be started at boot time, you can create this init script as /etc/init.d/dovecot (taken from [])
-
  start on started hildon-desktop
+
  # License is public domain.
-
  stop on starting shutdown
+
-
  service
+
DAEMON=/usr/local/sbin/dovecot
-
  console none
+
-
  exec dovecot -F
+
test -x $DAEMON || exit 1
 +
  set -e
 +
 +
base_dir=`$DAEMON -a|grep '^base_dir: '|sed 's/^base_dir: //'`
 +
pidfile=$base_dir/master.pid
 +
 +
if test -f $pidfile; then
 +
  running=yes
 +
else
 +
  running=no
 +
fi
 +
 +
case "$1" in
 +
  start)
 +
    echo -n "Starting Dovecot"
 +
    $DAEMON
 +
    echo "."
 +
    ;;
 +
  stop)
 +
    if test $running = yes; then
 +
      echo "Stopping Dovecot"
 +
      kill `cat $pidfile`
 +
      echo "."
 +
    else
 +
      echo "Dovecot is already stopped."
 +
    fi
 +
    ;;
 +
  reload)
 +
    if test $running = yes; then
 +
      echo -n "Reloading Dovecot configuration"
 +
      kill -HUP `cat $pidfile`
 +
      echo "."
 +
    else
 +
      echo "Dovecot isn't running."
 +
    fi
 +
    ;;
 +
  restart|force-reload)
 +
    echo -n "Restarting Dovecot"
 +
    if test $running = yes; then
 +
      kill `cat $pidfile`
 +
      sleep 1
 +
    fi
 +
    $DAEMON
 +
    echo "."
 +
    ;;
 +
  *)
 +
    echo "Usage: /etc/init.d/dovecot {start|stop|reload|restart|force-reload}" >&2
 +
    exit 1
 +
    ;;
 +
  esac
 +
   
 +
  exit 0
 +
 
 +
Make it executable:
 +
 
 +
chmod +x /etc/init.d/dovecot
 +
 
 +
Then register it (as root):
 +
 
 +
update-rc.d dovecot defaults
Now open Modest, and add a new account:
Now open Modest, and add a new account:

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)