How to put BugID in file name?

delphi package - automated exception handling
Post Reply
cubic
Posts: 10
Joined: Thu May 14, 2015 8:28 pm

How to put BugID in file name?

Post by cubic »

I would like to have the BUGID in the mad/png file that is sent by email (as attachment). Preferably, both names will also have appended a unique ID (same for both the PNG and MAD file). Maybe a timestamp could be used as ID. This is already done in the email subject line.

Reason: this way, if I have (I do have) multiple bug reports I could simply download all files in one folder and inspect them, grouped by bug ID. Now, I have to download each attachement, rename it, then download the next one (next email), etc. If there are 40 bug reports/emails, this could take quite a while!!

The ideal format (I had this in EurekaLog) would be:

AppName ver1.x Bug3829FE EFileNotFoundException UserOrPcName TimeStamp.mad
AppName ver1.x Bug3829FE EFileNotFoundException UserOrPcName TimeStamp.png
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: How to put BugID in file name?

Post by madshi »

Easiest way would be to use RegisterExceptionHandler(stDontSync, epQuickFiltering), then modify the attachment settings in your handler, using e.g. "exceptIntf.ScreenShotSendAs". See here:

http://help.madshi.net/MESettings.htm#I ... hBugReport
Post Reply