Version 3.0+ includes a scheduled job (command line script) that allows you to update the cached values for Email Greeting, Postal Greeting and / or Postal Addressee for all contacts. These fields will generally be set to the system default values when records are created or imported. However if you decide to change the default format, or find the the values are not populated for some contacts - you can use this job to populate missing values or force a change to the value for all contacts.
It is strongly recommended that test this script against a TEST COPY of your database first, and that you take a backup of your CiviCRM database prior to running this script on your production database.
Script: bin/cron.php OR bin/cli.php
Note: Syntax only permits one set of parameters at a time. To update all contact types and/or all greetings/addressee fields you must run the script for each contact type and for each greeting/addressee type. Thus each entry below exhibits an example of FORCEFUL updating all the greeting/addressee types for Individuals, you would substitute Household or Organization to update those as well. You can simply copy and paste these into the "Command Parameters" box within this Scheduled Job (follow Edit link to locate the box that you place these parameters into).
EACH PARAMETER SET MUST BE RUN ON ITS OWN AND CANNOT BE ENTERED INTO BOX WITHOUT LINE BREAKS