summaryrefslogtreecommitdiff
path: root/pith/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/send.c')
-rw-r--r--pith/send.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/pith/send.c b/pith/send.c
index 1be50e1..c5993c6 100644
--- a/pith/send.c
+++ b/pith/send.c
@@ -210,13 +210,6 @@ static NETDRIVER piped_io = {
/*
- * Phone home hash controls
- */
-#define PH_HASHBITS 24
-#define PH_MAXHASH (1<<(PH_HASHBITS))
-
-
-/*
* postponed_stream - return stream associated with postponed messages
* in argument.
*/
@@ -1673,48 +1666,6 @@ update_answered_flags(REPLY_S *reply)
}
-/*
- * phone_home_from - make phone home request's from address IMpersonal.
- * Doesn't include user's personal name.
- */
-ADDRESS *
-phone_home_from(void)
-{
- ADDRESS *addr = mail_newaddr();
- char tmp[64];
-
- /* garble up mailbox name */
- snprintf(tmp, sizeof(tmp), "hash_%08u", phone_home_hash(ps_global->VAR_USER_ID));
- tmp[sizeof(tmp)-1] = '\0';
- addr->mailbox = cpystr(tmp);
- addr->host = cpystr(ps_global->maildomain);
- return(addr);
-}
-
-
-/*
- * one-way-hash a username into an 8-digit decimal number
- *
- * Corey Satten, corey@cac.washington.edu, 7/15/98
- */
-unsigned int
-phone_home_hash(char *s)
-{
- unsigned int h;
-
- for (h=0; *s; ++s) {
- if (h & 1)
- h = (h>>1) | (PH_MAXHASH/2);
- else
- h = (h>>1);
-
- h = ((h+1) * ((unsigned char) *s)) & (PH_MAXHASH - 1);
- }
-
- return (h);
-}
-
-
/*----------------------------------------------------------------------
Call the mailer, SMTP, sendmail or whatever