lib/fat_free_crm/mail_processor/base.rb
# Discard message (not valid) action based on settings
#------------------------------------------------------------------------------
Discard message (not valid) action based on settings
Discard message ( not valid ) action based on settings
def discard(uid)
        if @dry_run
          log "Not discarding message"
        else
          @imap.uid_copy(uid, @settings[:move_invalid_to_folder]) if @settings[:move_invalid_to_folder]
          @imap.uid_store(uid, "+FLAGS", [:Deleted])
        end
        @discarded += 1
      end
def discard ( uid ) if @dry_run log "Not discarding message" else @imap . uid_copy ( uid , @settings [ :move_invalid_to_folder ] ) if @settings [ :move_invalid_to_folder ] @imap . uid_store ( uid , "+FLAGS" , [ :Deleted ] ) end @discarded += 1 end
Discard message (not valid) action based on settings
Discard message ( not valid ) action based on settings
uid