[Pluto-devel] problema con "mail"
Massimo Nuvoli
massimo@nuvoli.to.it
Mon, 25 Jun 2001 10:30:57 +0200
Questo è un messaggio con firma cifrata in formato MIME.
--------------ms1D8D89DBEC3B38CF8FBB1553
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
diaroby ha scritto:
> come si fà ad allegare un file ad un messaggio tramite il programma "mail" ?
> GRAZIE
Che io sappia è il sistema più difficile, io dove devo uso metamail o qualcosa
di simile.
Il problema è costruire l'intestazione e il messaggio nel formato multipart mime
encoded.
Per il perl esistono librerie apposta che fanno questa cosa al volo (cerca su
CPAN ce ne sono almeno tre o quattro).
--------------ms1D8D89DBEC3B38CF8FBB1553
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: Firma cifrata S/MIME
MIIHOgYJKoZIhvcNAQcCoIIHKzCCBycCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
BTgwggU0MIIEHKADAgECAgEDMA0GCSqGSIb3DQEBBAUAMIGeMSAwHgYJKoZIhvcNAQkBFhFp
bmZvQG51dm9saS50by5pdDEcMBoGA1UEAxMTTnV2b2xpIEFzY2Vuc29yaSBDQTEcMBoGA1UE
CxMTTnV2b2xpIEFzY2Vuc29yaSBDQTEZMBcGA1UEChMQTnV2b2xpIEFzY2Vuc29yaTELMAkG
A1UEBhMCSVQxFjAUBgNVBAcTDVBpbmVyb2xvIChUTykwHhcNMDAwOTEzMDkwMjE0WhcNMDEw
OTEzMDkwMjE0WjCBiDELMAkGA1UEBhMCSVQxGTAXBgNVBAoTEE51dm9saSBBc2NlbnNvcmkx
IDAeBgNVBAsTF051dm9saSBBc2NlbnNvcmkgdXRlbnRlMRcwFQYDVQQDEw5NYXNzaW1vIE51
dm9saTEjMCEGCSqGSIb3DQEJARYUbWFzc2ltb0BudXZvbGkudG8uaXQwgZ8wDQYJKoZIhvcN
AQEBBQADgY0AMIGJAo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