Browse Source

Modify method_post() to add header needed for email sending

See http://192.168.0.4/gogs/marioforzanini/lcmlog-server/commit/23575c25e315687d099289afc01bad8d63b20841
mario forzanini 2 years ago
parent
commit
efdecda163
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lcmlog

+ 3 - 0
lcmlog

@@ -292,12 +292,15 @@ method_post()
 		read TAGS
 	done
 
+	SEND_MAIL="No"
+	ask "Send the log via email? [default: y]" "y" && SEND_MAIL="Yes"
 
 	# Update of the pipe
 	printf "%s\n" "POST" >> $pipe
 	printf "%s\n" "${KIND}" >> $pipe
 	printf "%s\n" "${DATE}" >> $pipe
 	printf "%s\n" "${TAGS}" >> $pipe
+	printf "%s\n" "${SEND_MAIL}" >> $pipe
 
 
 	# Write log