Commits

Christian Ebert  committed af3e700

sigpager: remove potential sig dashes when reading signature files

  • Participants
  • Parent commits 063b664

Comments (0)

Files changed (1)

File muttils/sigpager.py

         try:
             fp = open(fn)
             try:
-                sig = fp.read()
+                lines = fp.readlines()
+                if lines and lines[0] == self.sep:
+                    lines = lines[1:]
+                if lines:
+                    sig = ''.join(lines)
             finally:
                 fp.close()
         except IOError: