Method: #report
- Defined in:
- lib/osa/scripts/scan_junk_folder.rb
#report(mail, context, email_address) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/osa/scripts/scan_junk_folder.rb', line 37 def report(mail, context, email_address) puts "forwarding spam from #{email_address}" context.graph_client.(mail['id'], context.config.spamcop_report_email) puts "deleting spam from #{email_address}" context.graph_client.delete_mail(mail['id']) end |