Project

General

Profile

Patch #3732 » patch_incoming_mail_notify_sender.diff

Mathieu Rochette, 2011-02-10 17:17

View differences:

app/models/mailer.rb
253 253
  end
254 254
  
255 255
  def notify_incoming_error(raw_email)
256
		recipients User.active.find(:all, :conditions => {:admin => true}).collect { |u| u.mail }.compact
257 256
    subject 'Incoming mail error notification'
258
    orignal_mail = TMail::Mail.parse(raw_email)
259
    orignal_mail.base64_decode
260
		body :original_mail =>orignal_mail;
257
    original_mail = TMail::Mail.parse(raw_email)
258
		recipients original_mail.sender
259
		logger.debug original_mail.sender
260
    original_mail.base64_decode
261
		body :original_mail =>original_mail;
261 262
  end
262 263

  
263 264
  # Overrides default deliver! method to prevent from sending an email
(3-3/3)