Attaching files with 2004/10/11 snapshot

George Ross <[email protected]>
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
The 2004/10/11 CVS snapshot doesn't seem to be able to attach files with 
"none" encoding.  QP and base64 both seem OK though.  I reckon there are 
two bugs: the encoding is actually "", not "none"; and the file needs to be 
reopened.  Here's a suggested patch...

--- /tmp/exmh-2.7.0_20041012/lib/seditExtras.tcl        2004-10-12 06:00:20.000000000 +0100
+++ /usr/lib/exmh2-2.7.1/seditExtras.tcl        2004-10-14 10:13:38.000000000 +0100
@@ -235,6 +235,7 @@
                set mark insert
            }
 
+            Exmh_Debug "SeditInsertFile encoding <$encoding>"
             switch -- $encoding {
                 base64 {
                   if {[info exist mime(encode)]} {
@@ -268,7 +269,9 @@
                     $t insert $mark [::mime::qp_encode $buffer]
                   }
                 }
+                "" -
                 none {
+                  set in [open $file]
                   $t insert $mark [read $in]
                 }
                 x-uuencode {

-- 
Dr George D M Ross, School of Informatics, University of Edinburgh
    Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
Mail: [email protected]   Voice: +44 131 650 5147   Fax: +44 131 667 7209
 PGP: 1024D/AD758CC5  B91E D430 1E0D 5883 EF6A  426C B676 5C2B AD75 8CC5

_______________________________________________
Exmh-workers mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-workers
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh version 2.6.3 2003/04/04

iD8DBQFBbkVqtnZcK611jMURAoDwAKCxX+Lb/rbW7VSVhWt5n55gJD0UYQCeJK1B
YxNcwTkSIB4KHbU/nZgz4hQ=
=uEoa
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.