summaryrefslogtreecommitdiff
path: root/alpine/send.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-01-18 13:08:35 -0700
committerEduardo Chappa <chappa@washington.edu>2020-01-18 13:08:35 -0700
commite328ab4a9dd90b53a4ae71cd97b699b1dd13e9a2 (patch)
tree87db9679cc4df09495c1d1bf7bf1bc69cacb3844 /alpine/send.c
parent29c656f7929ef43462c7f737a363ceecc16e3f11 (diff)
downloadalpine-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 'alpine/send.c')
-rw-r--r--alpine/send.c70
1 files changed, 0 insertions, 70 deletions
diff --git a/alpine/send.c b/alpine/send.c
index 332b3dc3..e611fa79 100644
--- a/alpine/send.c
+++ b/alpine/send.c
@@ -71,10 +71,6 @@ typedef struct body_particulars {
PARAMETER *parameter;
} BODY_PARTICULARS_S;
-#define PHONE_HOME_VERSION ".count"
-
-#define PHONE_HOME_HOST "vfemail.net"
-
/*
* macro to bind pico's headerentry pointer to PINEFIELD "extdata" hook
*/
@@ -5544,72 +5540,6 @@ pine_send_newsgroup_name(char *mailbox, char *group_name, size_t len)
/*----------------------------------------------------------------------
- Generate and send a message back to the pine development team
-
-Args: none
-
-Returns: none
-----*/
-void
-phone_home(char *addr)
-{
- char tmp[MAX_ADDRESS], revision[128];
- ENVELOPE *outgoing;
- BODY *body;
- NETMBX mb;
-
- outgoing = mail_newenvelope();
- if(!addr || !strindex(addr, '@')){
- snprintf(addr = tmp, sizeof(tmp), "alpine%s@%s", PHONE_HOME_VERSION, PHONE_HOME_HOST);
- tmp[sizeof(tmp)-1] = '\0';
- }
-
- rfc822_parse_adrlist(&outgoing->to, addr, ps_global->maildomain);
-
- outgoing->message_id = generate_message_id();
- outgoing->subject = cpystr("Document Request");
- outgoing->from = phone_home_from();
-
- body = mail_newbody();
- body->type = TYPETEXT;
-
- if((body->contents.text.data = (void *)so_get(PicoText,NULL,EDIT_ACCESS)) != NULL){
- so_puts((STORE_S *)body->contents.text.data, "Document request: ");
- so_puts((STORE_S *)body->contents.text.data, "Alpine-");
- so_puts((STORE_S *)body->contents.text.data, ALPINE_VERSION);
- get_alpine_revision_string(revision, sizeof(revision));
- so_puts((STORE_S *)body->contents.text.data, " (");
- so_puts((STORE_S *)body->contents.text.data, revision);
- so_puts((STORE_S *)body->contents.text.data, ")");
- if(ps_global->first_time_user)
- so_puts((STORE_S *)body->contents.text.data, " for New Users");
-
- if(ps_global->VAR_INBOX_PATH
- && ps_global->VAR_INBOX_PATH[0] == '{'
- && mail_valid_net_parse(ps_global->VAR_INBOX_PATH, &mb)){
- so_puts((STORE_S *)body->contents.text.data, " and ");
- so_puts((STORE_S *)body->contents.text.data, *mb.service ? mb.service : "UNKNOWN SERVICE");
- }
-
- if(ps_global->VAR_NNTP_SERVER && ps_global->VAR_NNTP_SERVER[0]
- && ps_global->VAR_NNTP_SERVER[0][0])
- so_puts((STORE_S *)body->contents.text.data, " and NNTP");
-
- (void) pine_simple_send(outgoing, &body, NULL,NULL,NULL,NULL, SS_NULLRP);
-
- q_status_message(SM_ORDER, 1, 3, "Thank you for being counted!");
- }
- else
- q_status_message(SM_ORDER | SM_DING, 3, 4,
- "Problem creating space for message text.");
-
- mail_free_envelope(&outgoing);
- pine_free_body(&body);
-
-}
-
-
-/*----------------------------------------------------------------------
Set up fields for passing to pico. Assumes first text part is
intended to be passed along for editing, and is in the form of
of a storage object brought into existence sometime before pico_send().