16 lines
534 B
Ruby
16 lines
534 B
Ruby
class BouncedJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(*args)
|
|
# Do something later
|
|
end
|
|
end
|
|
# imap = Net::IMAP.new('imap.migadu.com' , ssl: true)
|
|
# imap.authenticate("LOGIN" , Rails.application.credentials.admin_email , Rails.application.credentials.
|
|
# admin_pass)
|
|
#
|
|
# imap.search(["SINCE", "1-Feb-2023"]).each do |message_id|
|
|
# irb(main):023:1* envelope = imap.fetch(message_id, "ENVELOPE")[0].attr["ENVELOPE"]
|
|
# irb(main):024:1* puts "#{envelope.from[0].name}: \t#{envelope.subject}"
|
|
# irb(main):025:0> end
|