Commits

Zhang Huangbin committed 13a9ea5

Split 'sender =' once to prevent failure while sender address contains '='.

  • Participants
  • Parent commits 90fd621

Comments (0)

Files changed (3)

File etc/iredapd.ini.sample

 run_as_user     = iredapd
 
 # Background/daemon mode: yes, no.
-# Detach iredapd from terminal. It's recommended to always running as daemon.
+# Run iRedAPD as daemon, detach iredapd from terminal.
 run_as_daemon   = yes
 
 # Path to pid file.

File src/iredapd-rr.py

             logging.debug("smtp session: " + line)
             if line.find('=') != -1:
                 key = line.split('=')[0]
-                value = line.split('=')[1]
+                value = line.split('=', 1)[1]
                 self.map[key] = value
         elif len(self.map) != 0:
             try:

File src/iredapd.py

             logging.debug("smtp session: " + line)
             if line.find('=') != -1:
                 key = line.split('=')[0]
-                value = line.split('=')[1]
+                value = line.split('=', 1)[1]
                 self.map[key] = value
         elif len(self.map) != 0:
             try: