>The complaint about ‘/octet-stream’ coupled with the trailing >‘application’ after ‘audio/mpeg’ looks like two things are being >combined, e.g. ‘audio/mpeg application/octet-stream’.
That makes sense. >- How do you attach the MP3 file? By typing "at /path/to/file.mp3" at the whatnow? prompt. ...and I just checked the man page for whatnow and discovered the -v option: What now? at -v /tmp/session2.mp3 Attaching /tmp/session2.mp3 as a audio/mpegapplication/octet-stream What now? s (I didn't actually send anything just now, but that's what would follow). The relevant .mh_profile entries (at least, the ones I recognize as being relevant) are: comp: -form .compform send: -msgid -messageid random -alias .aliases -port 25 mhbuild: -maxunencoded 500 >- Can we see a draft before mhbuild gets run? Sure, here's one: 8<-------------------------- cut here ---------------------------->8 To: [email protected] Subject: foo Fcc: inbox From: Steven Winikoff <[email protected]> Reply-to: Steven Winikoff <[email protected]> Content-Type: text/plain; charset="UTF-8" Nmh-Attach: /tmp/session2.mp3 -------- -- ___________________________________________________________________________ Steven Winikoff | Montreal, QC, Canada | "The worst misunderstandings are the [email protected] | unspoken ones." http://smwonline.ca | | - Spider Robinson 8<-------------------------- cut here ------------------------->8 But I don't think you'll need it, because... >- What does ‘file -i’ give on the MP3 file? ...Aha! You nailed it: $ file -i /tmp/session2.mp3 /tmp/session2.mp3: audio/mpegapplication/octet-stream; charset=binary ...and similarly, $ file --mime-type /tmp/session2.mp3 /tmp/session2.mp3: audio/mpegapplication/octet-stream I hadn't known about the -i option until you suggested it, and I found --mime-type just now while looking up -i. With no options, file reports $ file /tmp/session2.mp3 /tmp/session2.mp3: Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Stereo Running strace on file lists the following openat() calls: openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/lib/libmagic.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/lib/libseccomp.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/lib/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/lib/libbz2.so.1.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, 0x555892c2d4f0, O_RDONLY) = 3 openat(AT_FDCWD, 0x153f7cb54848, O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, 0x7ffc2a816a10, O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, 0x7ffc2a819209, O_RDONLY|O_NONBLOCK|O_CLOEXEC) = 3 ...which includes none of the files I expected to see. The magic database on this system is /usr/share/file/misc/magic.mgc (the text version is supported by libmagic, but doesn't exist), and suspiciously, it was modified by a recent system upgrade: $ ls -l /usr/share/file/misc/magic.mgc -rw-r--r-- 1 root root 7012776 Apr 12 12:20 /usr/share/file/misc/magic.mgc I have a backup copy from before the upgrade: $ ls -l /path/to/backup/of/misc/magic.mgc -rw-r--r-- 6 root root 6652192 Jun 16 2020 /path/to/backup/of/magic.mgc But: $ file -i -k -m /path/to/backup/of/misc/magic.mgc /tmp/session2.mp3 /tmp/session2.mp3: audio/mpegapplication/octet-stream; charset=binary ...and the atime reported by stat(1) confirms that the backup file was accessed, so there's still something I'm obviously missing. >- What's ‘folder -version’ yield? $ folder -version folder -- nmh-1.7.1 built 2019-12-16 03:09:06 +0000 on mort - Steven -- ___________________________________________________________________________ Steven Winikoff | "The best executive is one who has sense Montreal, QC, Canada | enough to pick good people to do what he [email protected] | wants done, and self-restraint enough to http://smwonline.ca | keep from meddling with them while they | do it." | - Theodore Roosevelt
