Re: Question on how to set attachment rules

Michael Yount <[email protected]> Fri, 24 Jul 2009 13:43:42 -0700
Newsgroups gmane.mail.majordomo.majordomo2.devel
Message-ID <[email protected]>
What is the content type of a message with a PGP signature?

Clearly, for a signature to be valid, the related parts of the message 
cannot be altered, so the "keep" example you cited is applicable to your 
situation.

Michael

Steven W. Orr wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I currently have attachment_rules and attachment_filters settings as:
>
> configset listname attachment_rules <<ENDAAM
> text/plain | require
> ENDAAM
>
> configset frambors attachment_filters <<ENDAAL
> text/plain | allow
> /./ | discard
> text/html | format
> text/enriched | format
> ENDAAL
>
> I would like to support PGP signature attachments so that they are not
> stripped out.
>
> A typical PGP signature attachment will look like this
>
> Content-Type: application/pgp-signature; name="signature.asc"
> Content-Description: OpenPGP digital signature
> Content-Disposition: attachment; filename="signature.asc"
>
> Also, I see this line before the first MIME header.
> This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
>
> Is there something I can do to allow these through?
>
> Also, in the help configset_attachment_filters verbage, it says something
> about signed messages, but I'm not clear if this is on a different topic.
>
> [The keep action
> - ---------------
> The keep action causes a body part to be passed untouched.  If the body
> part has subparts, those also will remain untouched.  For example,
> to allow a signed message to be posted without alterations, use the
> following rule:
>
> multipart/signed | keep]
>
> Does this help me?
>
> TIA
>
> - --
> Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
> happened but none stranger than this. Does your driver's license say Organ ..0
> Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
> individuals! What if this weren't a hypothetical question?
> steveo at syslang.net
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.10 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkpp7fsACgkQRIVy4fC+NyQvzwCfTqoKnMVO164Dus71w+FfX2GL
> KnwAniykT7sbU3SMAQdNINAzs5NzlA+d
> =quzg
> -----END PGP SIGNATURE-----
>
>