Package: file Version: 5.11-2 Severity: important If a text file has 2 lines or more containing 3 (or more) ' or ", it is considered as a Python executable text script, which is bad because amavisd-new rely on file to determine the file type of mail attachments, and any mail which have more than 3 " or 3 ' in it would be reported as having an executable attachment.
Steps to reproduce : $ echo "Test." > /tmp/test.txt $ file /tmp/test.txt /tmp/test.txt: ASCII text $ echo "'''" >> /tmp/test.txt $ file /tmp/test.txt /tmp/test.txt: ASCII text $ echo "'''" >> /tmp/test.txt $ file /tmp/test.txt /tmp/test.txt: Python script, ASCII text executable ''' and """ (or more : """", '''''''', etc.) are used for multiline comments in Python, but that is not a sufficient condition to say if a file is a Python script. -- System Information: Debian Release: 6.0.8 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages file depends on: ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib ii libmagic1 5.11-2 File type determination library us ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime file recommends no packages. file suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org