daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Jan 14th, 2018 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *** auth_results.lua    2018-01-06 11:24:32.952945963 +0100
  2. --- auth_results_patched.lua    2018-01-06 11:29:24.415299269 +0100
  3. ***************
  4. *** 50,55 ****
  5. --- 50,56 ----
  6.       none = 'ARC_NA',
  7.       reject = 'ARC_REJECT',
  8.     },
  9. +   add_smtp_user = true,
  10.   }
  11.  
  12.   local exports = {}
  13. ***************
  14. *** 172,181 ****
  15.       local hdr
  16.  
  17.       if #smtp_from[1]['addr'] > 0 then
  18. !       hdr = string.format('auth=pass smtp.auth=%s smtp.mailfrom=%s',
  19. !         u, smtp_from[1]['addr'])
  20.       else
  21. !       hdr = string.format('auth=pass smtp.auth=%s', u)
  22.       end
  23.  
  24.       table.insert(hdr_parts, hdr)
  25. --- 173,191 ----
  26.       local hdr
  27.  
  28.       if #smtp_from[1]['addr'] > 0 then
  29. !       if settings['add_smtp_user'] then
  30. !         hdr = string.format('auth=pass smtp.auth=%s smtp.mailfrom=%s',
  31. !           u, smtp_from[1]['addr'])
  32. !       else
  33. !         hdr = string.format('auth=pass smtp.mailfrom=%s',
  34. !           smtp_from[1]['addr'])
  35. !       end
  36.       else
  37. !       if settings['add_smtp_user'] then
  38. !         hdr = string.format('auth=pass smtp.auth=%s', u)
  39. !       else
  40. !         hdr = 'auth=pass'
  41. !       end
  42.       end
  43.  
  44.       table.insert(hdr_parts, hdr)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top