Sfoglia il codice sorgente

Adapted to new addressing style

Marcos Dumay de Medeiros 8 anni fa
parent
commit
80a1f22281
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/Walrus/Backend/Metadata.hs

+ 2 - 2
src/Walrus/Backend/Metadata.hs

@@ -237,8 +237,8 @@ renderMetadata m = BS.concat $ serializeDt ++ serializeMain ++ ["\r\n"]
         "SMTP-UTF8: ", serialBool utf, "\r\n"
         ] :: [String]
       in map s h ++ toStr ++ failStr
-    serializeHandle (AccountRequest a) = ["Target: ", s . show $ a, "\r\n"]
-    serializeHandle (AccountResponse (a, r)) = ["Failed: ", fullAccount a, renderLineResponse r, "\r\n"]
+    serializeHandle (AccountRequest a) = ["To: ", s . fullAccount $ a, "\r\n"]
+    serializeHandle (AccountResponse (a, r)) = ["Failed: ", fullAccount a, "; ", renderLineResponse r, "\r\n"]
     serializeHandle AccountOk = []
     serializeFetchResc (FetchRescData cnm rfm ofst sz trg resp) =
       ["Client-Name: ", s cnm, "\r\n",