- Load the branch:
xpo_improvement
- Open Rails console
- Run the command:
Resque.inline = true
- Grab the biller:
biller = Biller.find <id>
- Create a new importer object:
importer = Dade::EmailAdviceImporter.new
- Run the perform method on it:
importer.perform('/Users/Abraham/Desktop/potential_advices', biller.id, '[email protected]')
Notes: The first parameter is the absolute path to that folder. The third parameter is the recipient used for the inbound addresses, you can put there an XPO email address ** IF you don't pass a recipient, it will default to one for CONWAY.
The perform method:
perform(advice_folders, billerId, recipient = '[email protected]', auto_match = true)
** If you want the script to automatically create mappings after all the advices/cashes have been imported, then pass in true
in the last argument:
E.G:
importer.perform('/Users/Abraham/Desktop/potential_advices', biller.id, '[email protected]', true)