anchor.diff:  # This is done by stat()ing each entry, so it causes more disk I/O.
   # (For systems setting struct dirent->d_type, this check is free and it's
   # done always regardless of this setting)
  -#maildir_stat_dirs = no
  +<%= Dovecot::Conf.attribute(@conf, 'maildir_stat_dirs', false) %>
   
   # When copying a message, do it with hard links whenever possible. This makes
   # the performance much better, and it's unlikely to have any side effects.
  -#maildir_copy_with_hardlinks = yes
  +<%= Dovecot::Conf.attribute(@conf, 'maildir_copy_with_hardlinks', true) %>
   
   # Assume Dovecot is the only MUA accessing Maildir: Scan cur/ directory only
   # when its mtime changes unexpectedly or when we can't find the mail otherwise.
  -#maildir_very_dirty_syncs = no
  +<%= Dovecot::Conf.attribute(@conf, 'maildir_very_dirty_syncs', false) %>
   
   ##
   ## mbox-specific settings
  
positive.code: # System user and group used to access mails. If you use multiple, userdb
  # can override these by returning uid or gid fields. You can use either numbers
  # or names. <doc/wiki/UserIds.txt>
  #mail_uid =
  #mail_gid =
  
  # Group to enable temporarily for privileged operations. Currently this is
  # used only with INBOX when either its initial creation or dotlocking fails.
  # Typically this is set to "mail" to give access to /var/mail.
  #mail_privileged_group =
  
  # Grant access to these supplementary groups for mail processes. Typically
  # these are used to set up access to shared mailboxes. Note that it may be
  # dangerous to set these if users can create symlinks (e.g. if "mail" group is
  # set here, ln -s /var/mail ~/mail/var could allow a user to delete others'
  # mailboxes, or ln -s /secret/shared/box ~/mail/mybox would allow reading it).
  #mail_access_groups =
  
  # Allow full filesystem access to clients. There's no access checks other than
  # what the operating system does for the active UID/GID. It works with both
  # maildir and mboxes, allowing you to prefix mailboxes names with eg. /path/
  # or ~user/.
  #mail_full_filesystem_access = no
  
  ##
  ## Mail processes
  
negative.code: # in is important to avoid deadlocks if other MTAs/MUAs are using multiple
  # locking methods as well. Some operating systems don't allow using some of
  # them simultaneously.
  <%= Dovecot::Conf.attribute(@conf, 'mbox_read_locks', 'fcntl') %>
  <%= Dovecot::Conf.attribute(@conf, 'mbox_write_locks', 'dotlock fcntl') %>
  
  # Maximum time to wait for lock (all of them) before aborting.
  <%= Dovecot::Conf.attribute(@conf, 'mbox_lock_timeout', '5 mins') %>
  
  # If dotlock exists but the mailbox isn't modified in any way, override the
  # lock file after this much time.
  <%= Dovecot::Conf.attribute(@conf, 'mbox_dotlock_change_timeout', '2 mins') %>
  
  # When mbox changes unexpectedly we have to fully read it to find out what
  # changed. If the mbox is large this can take a long time. Since the change
  