summaryrefslogtreecommitdiff
path: root/alpine/send.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2019-06-05 12:46:33 -0600
committerEduardo Chappa <chappa@washington.edu>2019-06-05 12:46:33 -0600
commit5a4481cdd645334158217a1072564837bf09b28b (patch)
tree8abddddc91dafde7a5ff55ee45185c30da95c40a /alpine/send.c
parent050e2800fb26ed0d418c3f947c99402c72492186 (diff)
downloadalpine-5a4481cdd645334158217a1072564837bf09b28b.tar.xz
* Add revision string to first time user report.
Diffstat (limited to 'alpine/send.c')
-rw-r--r--alpine/send.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/alpine/send.c b/alpine/send.c
index 6eb33136..21181aaa 100644
--- a/alpine/send.c
+++ b/alpine/send.c
@@ -5553,7 +5553,7 @@ Returns: none
void
phone_home(char *addr)
{
- char tmp[MAX_ADDRESS];
+ char tmp[MAX_ADDRESS], revision[128];
ENVELOPE *outgoing;
BODY *body;
@@ -5576,6 +5576,10 @@ phone_home(char *addr)
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");