[Slackbuilds-users] abcde slackbuild a little dated?

Andreas Vögele andreas at andreasvoegele.com
Mon Nov 5 06:43:01 UTC 2012


On 28.10.2012 19:25, Glenn Becker wrote:
> 
> Hi Heinz,
> 
>> Robby is a bit busy lately so he probably missed them. You can send
>> them to me
>> (or one of the other admins) instead and we'll make sure they get updated
>> asap.
> 
> Here are the files for abcde [...]

The included cddb-tool passes the option "-a" to the mail command when
sending a CDDB file in order to set the message's content type to UTF-8.
Slackware's Heirloom mailx uses the option "-a" for something else. On
Slackware, the message's content type will be set automatically if the
locale is properly set, e.g. to "en_US.UTF-8". See the section
"Character sets" in the mailx manual page for details.

-------------- next part --------------
--- cddb-tool.orig	2012-06-20 15:44:13.000000000 +0200
+++ cddb-tool	2012-11-05 07:27:16.000000000 +0100
@@ -196,7 +196,7 @@
 	ADDRESS="$2"
 	DISCID=$(grep ^DISCID= "$FILE" | cut -f2 -d= | tr -d \[:cntrl:\])
 	CDDBGENRE=$(grep '^#CATEGORY=' "$FILE" | cut -f2- -d= | tr -d \[:cntrl:\])
-	grep -v "^#CATEGORY=" "$FILE" | iconv -t utf-8 | mail -a "Content-Type: text/plain; charset=utf-8" -s "cddb $CDDBGENRE $DISCID" "$ADDRESS"
+	grep -v "^#CATEGORY=" "$FILE" | iconv -t utf-8 | mailx -s "cddb $CDDBGENRE $DISCID" "$ADDRESS"
 	;;
 
 query) # cddb-tool query serverurl proto user host discid...


More information about the SlackBuilds-users mailing list