jirentabu / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

allow pre-setting of "description" and "eailfrom" #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Enhancement request:
most people don't fill in the description or email address.
however, my app gathers their email address already, and i'd like to put the 
version number of the app into the description field.  the user can be free to 
edit these values, but i'd very much like to pre-set them so they get sent as 
part of the post data, rather than as buried in the zip file custom data.  this 
would make my php script much simpler (i currently have to unzip the file and 
look in the xml file to get this data)

Original issue reported on code.google.com by anbaricf...@gmail.com on 2 Mar 2012 at 8:30

GoogleCodeExporter commented 9 years ago
sorry, couple things: subject should read [allow pre-setting of "description" 
and "emailfrom"]  <-- note the "M" in eMail, duh.

second, i realize i already get the "appversion" string, so no need for that in 
the "description" line.  but it would still be nice to be able to pre-set a 
description

third, i can kindof work around this by setting the email address as PART OF 
the "emailsubject" line, but that's a kludge.

Original comment by anbaricf...@gmail.com on 2 Mar 2012 at 8:42

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 5 Mar 2012 at 2:40

GoogleCodeExporter commented 9 years ago
IMHO email and description fields must be filled by user himself. If you 
extract user E-mail automatically, you may use crAddProperty() function to 
store the E-mail as a custom property in the XML file. The same is for 
description field - if user does not fill it in, than it should be empty. If 
you need to store appversion or any other information, use crAddProperty() or 
crAddFile2() functions.

If you experiense problems with extracting the information from ZIP and XML... 
well, PHP provides rather reach capabilities of reading ZIP files and XML 
files. I'm not sure it is a real problem. I can not pack all information from 
crash report into POST request fields. Consider using crprober.exe tool, it can 
simplify the extraction of crash report data.

Summary: I prefer not to implement this enhancement for now.

Original comment by zexspect...@gmail.com on 26 Aug 2012 at 7:39