GNU/Linux >> Tutoriales Linux >  >> Linux

Minimice los resúmenes que se muestran en los encabezados en Mailman 2.1.xx

Problema:
Los resúmenes en Mailman se componen de muchos encabezados innecesarios que saturan los mensajes.

Solución:
Edite el archivo de configuración de Mailman manualmente de la siguiente manera:
ADVERTENCIA !!!:estos encabezados son parte del 'RFC 1153' que, si se modifican, pueden tener efectos impredecibles o no deseados.
Así que aquí mantuvo los encabezados:Fecha:, De:, Asunto:, Palabras clave (si las hay) y Tipo de contenido (bastante importante de mantener)

Pasos:
Cambie el nombre del archivo de configuración de Python compilado automáticamente:
mv /usr/lib/mailman/Mailman/Defaults.pyc /usr/lib/mailman/Mailman/Defaults.pyc.orig

Edite el archivo de configuración:
mcedit /usr/lib/mailman/Mailman/Defaults.py

y realice los siguientes cambios desde:

# Headers which should be kept in both RFC 1153 (plain) and MIME digests. RFC
# 1153 also specifies these headers in this exact order, so order matters.
MIME_DIGEST_KEEP_HEADERS = [
'Date', 'From', 'To', 'Cc', 'Subject', 'Message-ID', 'Keywords',
# I believe we should also keep these headers though.
'In-Reply-To', 'References', 'Content-Type', 'MIME-Version',
'Content-Transfer-Encoding', 'Precedence', 'Reply-To', 'List-Post',
# Mailman 2.0 adds these headers
'Message',
]
#
# The order in this list controls the order of the RFC 1153 digest headers.
# Also, any headers in this list will be kept in the MIME digest even if they
# don't appear in the MIME list above. Finally, headers appearing in both
# lists must be casewise the same or duplication can result in the digest.
PLAIN_DIGEST_KEEP_HEADERS = [
'Message',
# RFC 1153 headers in order
'Date', 'From', 'To', 'Cc', 'Subject', 'Message-ID', 'Keywords',
'Content-Type',
]

PARA:

# Headers which should be kept in both RFC 1153 (plain) and MIME digests. RFC
# 1153 also specifies these headers in this exact order, so order matters.
#MIME_DIGEST_KEEP_HEADERS = [
# 'Date', 'From', 'To', 'Cc', 'Subject', 'Message-ID', 'Keywords',
# # I believe we should also keep these headers though.
# 'In-Reply-To', 'References', 'Content-Type', 'MIME-Version',
# 'Content-Transfer-Encoding', 'Precedence', 'Reply-To', 'List-Post',
# # Mailman 2.0 adds these headers
# 'Message',
# ]
#
MIME_DIGEST_KEEP_HEADERS = [
'Date', 'From', 'Subject', 'Keywords',
# I believe we should also keep these headers though.
'In-Reply-To', 'References', 'Content-Type', 'MIME-Version',
'Content-Transfer-Encoding', 'Precedence', 'Reply-To', 'List-Post',
]
#
# The order in this list controls the order of the RFC 1153 digest headers.
# Also, any headers in this list will be kept in the MIME digest even if they
# don't appear in the MIME list above. Finally, headers appearing in both
# lists must be casewise the same or duplication can result in the digest.
#PLAIN_DIGEST_KEEP_HEADERS = [
# 'Message',
# # RFC 1153 headers in order
# 'Date', 'From', 'To', 'Cc', 'Subject', 'Message-ID', 'Keywords',
# 'Content-Type',
# ]
#
PLAIN_DIGEST_KEEP_HEADERS = [
# RFC 1153 headers in order
'Date', 'From', 'Subject', 'Keywords',
'Content-Type',
]

Nota: Esto puede parecer confuso, pero mire bien los cambios que hice y podrá ver que simplemente eliminé algunos encabezados de las 2 listas.
Simplemente conservé la versión original pero la comenté como referencia por si acaso salen mal y necesito volver a presentar algunos de ellos.


Linux
  1. Cambiar el bit de 'moderación' de suscriptores de cartero en la línea de comando

  2. ¿El resultado de Ls *, Ls ** y Ls ***?

  3. ¿La diferencia entre [[ $a ==Z* ]] y [ $a ==Z* ]?

  4. ¿El valor máximo de la identificación del proceso?

  5. El Bash'?

Guía esencial:la manera fácil de habilitar 'Minimizar al hacer clic' en Ubuntu

¿Qué es el Shell en Linux?

El comando del temporizador en Linux

¿Los 'si'?

¿Cómo minimizo Evolution a la bandeja del sistema en Ubuntu?

¿Cómo acorto la ruta del directorio actual que se muestra en la terminal?