Author: Alexander Zangerl <az@debian.org>
Subject: use appropriate hostname command for finding the FQDN

diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' exmh-2.8.0~/lib/receipt.tcl exmh-2.8.0/lib/receipt.tcl
--- exmh-2.8.0~/lib/receipt.tcl	2012-04-22 14:02:56.000000000 +1000
+++ exmh-2.8.0/lib/receipt.tcl	2012-05-16 12:44:13.208865078 +1000
@@ -10,7 +10,7 @@
     if {[info exists mime(mdnTo)] && $mime(mdnTo) != {}} {
 	set mdnTo $mime(mdnTo)
     } else {
-	set host [exec hostname]
+	set host [exec hostname --fqdn]
 	set domain $faces(defaultDomain)
 
 	if {$domain == ""} {
@@ -459,7 +459,7 @@
 
 proc MDNBuildDraft { draft address doit choice} {
     global env mimeHdr faces exmh
-    set host [exec hostname]
+    set host [exec hostname --fqdn]
 
     # If /bin/hostname has a '.' in it, assume it's already a FQDN.
     if [ regexp {\.} $host ] {
