diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-01-18 13:08:35 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-01-18 13:08:35 -0700 |
commit | e328ab4a9dd90b53a4ae71cd97b699b1dd13e9a2 (patch) | |
tree | 87db9679cc4df09495c1d1bf7bf1bc69cacb3844 /pith/send.c | |
parent | 29c656f7929ef43462c7f737a363ceecc16e3f11 (diff) | |
download | alpine-e328ab4a9dd90b53a4ae71cd97b699b1dd13e9a2.tar.xz |
* A few more changes in copyright notices and removal of phone-home code that
counts users of Alpine. This eliminates any information sent to the
developers of Alpine by Alpine users. Based on work by Geoffrey Thomas.
Diffstat (limited to 'pith/send.c')
-rw-r--r-- | pith/send.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/pith/send.c b/pith/send.c index 1be50e14..c5993c67 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 |