Quantcast
Download
(22 Kb)
Download
Updated: 02/24/23 06:38 PM
Pictures
File Info
Compatibility:
Scribes of Fate (8.3.5)
Firesong (8.2.5)
Updated:02/24/23 06:38 PM
Created:02/02/23 07:05 AM
Monthly downloads:277
Total downloads:760
Favorites:3
MD5:
8.3.5
Mail History
Version: 10
by: PacificOshie [More]
MailHistory by @PacificOshie. Have fun!

Mail History saves a copy of your mail when sending, taking, returning, and deleting mail to provide a history of your mail activity.

Mail History data is stored account-wide across all characters. Mail that was sent, taken, returned, or deleted on one character may be viewed on another character.

Mail is only shown in the history when it is no longer in your mailbox.

Reply to mail and Forward mail (without attachments) from the history.

DEPENDENCIES
- LibAddonMenu-2.0
- LibAsync

++

MAIL HISTORY SETTINGS
- Automatically show and hide the history when viewing your mailbox.
- Included or exclude System mail from displaying in the history.

CHAT SETTINGS
- Log a mail summary in the chat window when sending, taking, returning, and deleting mail.

STORAGE SETTINGS
- Save or delete System mail.
- Increase or decrease the number of saved mail. The number of saved mail affects memory usage, disk space, and performance.

DATE AND TIME SETTINGS
- Select the preferred date and time display format.

++

COPY AND PASTE
- The popup displays mail to allow selecting the text to copy and paste. Click to put the cursor into the text, then select all using CTRL+A and copy using CTRL+C.

MISSING MAIL INFO
- Some other addons process mail before Mail History can save the mail. If an entire mail is missing, you may see the message "Missed mail due to other addons." And if attachment info is missing, you may see the message "Unknown attachment."
- Some old addons replaced the ESOUI mail functions so Mail History is not notified of mail. Please ensure you're using addons that have been updated recently.

NOT CERTIFIED MAIL
- Mail is saved in an unencrypted file which may be modified on the file system. The existence of data does not guarantee or certify its authenticity. The data is intended to be used as a personal copy of your mail and itís not to be used as proof of sending or receiving mail.

PERSISTING DATA
- The ESOUI system is designed to hold data in memory and only persists the data to disk when a user reloads the ui, logs off, or exits the game. If the game or machine crashes before reloading the ui, logging off, or existing the game, then any new mail will be lost. The easiest way to force persisting the data to disk is to execute the command: /reloadui
2023-02-24 v10 - Fixed a bug when unintentionally deleting Player mail when intending to only delete System mail.

2023-02-18 v9 - Added the ability to Reply and Forward mail from the history using the right-click content menu or from the mail popup window.

2023-02-12 v8 - Added a keybinding to toggle the history window. Added options for the date and time format. Simplified options for showing System mail which includes hirelings, trader, pvp, etc. Added a new option to stop saving System mail altogether (besides just hiding it). Updated RU Russian translations by Verling! Updated to API version 101037 for ESO 8.3 Scribes of Fate.

2023-02-09 v7 - PLEASE BACKUP YOUR SAVED VARIABLES! Fixed an issue with updating data across versions. Support for hiding the guild trader mail in DE, EN, FR, JP, and RU. Updated DE German translations by Baertram! Updated RU Russian translations by Verling!

2023-02-06 v6 - Added DE German translations by Baertram! Added RU Russian translations by Verling! Duplicate sent mail (e.g., guild newsletter) is kept as a single mail with multiple recipients. Added a status message for how many mail are being shown. Added a progress bar when using the search filter. Added a tooltip option to display some mail details from the history when mouse over.

2023-02-03 v5 - Fixed the error when clicking on the window title. Moved saved data to be server region specific, but settings are server region agnostic. Updated the date and time to use the system locale. Display the character in the history who was sending, taking, returning, or deleting the mail. Support for hiding the hireling mail in DE, EN, FR, JP, and RU. Added language support for display strings but still need translations. Save mail that was taken, returned, or deleted in gamepad mode. Works with Lazy Writ Crafter auto-loot hireling mail.

2023-02-02 v4 - Indicate which character on your account was sending, taking, returning, or deleting the mail. Show and hide the mail history using mailbox events to support gamepad mode. Added another event handler to attempt saving mail before other addons remove them.

2023-02-02 v3 - Refresh data every time the history is shown so any updated settings are applied. Handle unknown attachments when mail data is missing due to other addons.

2023-01-30 v2 - Added an option to save more mail; and added an option to hide hireling mail. Added a search filter to the history to allow finding mail with specific text. Added a popup window that shows more details when clicking on mail from the history; and allows selecting CTRL+A and copying CTRL+C the mail text.

2023-01-25 v1 - Preview release.
Optional Files (0)


Archived Files (7)
File Name
Version
Size
Uploader
Date
9
22kB
PacificOshie
02/18/23 07:39 AM
8
21kB
PacificOshie
02/12/23 12:49 PM
7
20kB
PacificOshie
02/09/23 04:46 PM
6
20kB
PacificOshie
02/06/23 07:45 PM
5
14kB
PacificOshie
02/03/23 04:42 PM
4
11kB
PacificOshie
02/02/23 04:03 PM
3
10kB
02/02/23 07:05 AM


Post A Reply Comment Options
Unread 02/14/23, 12:00 AM  
Verling
 
Verling's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 30
Uploads: 4
Originally Posted by PacificOshie
Thanks for the suggestions!

(1.) Yeah, it's difficult to read the listing when the fields don't line up. I'm looking into columns, but it seems complicated at first glance. Let me think about this one for a while.

(2.) Regarding the date format, I originally had YYYY-MM-DD because that is my personal preference, however, I've change the date format to use the system locale format so dates are shown in a more global friendly manner. I am unable to override the locale in the addon. I'll consider adding alternative date and time settings when the default locale format is undesired.

(3.) You're right, if I'm only saving Player mail (without system mail) then having 10 may be sufficient for many people. My original goal was to keep all mail (even the hidden mail) so you can always find mail when needed. However, I see that many people don't value System mail as much as Player mail, so I'm considering to change the options to avoid saving System mail, and only save Player mail. I think this is what you're suggesting. Let me know if I've misunderstood.

I'm continuing to make enhancements while this addon is quite new, so ideas are fresh too. Thanks!

++

Originally Posted by Verling
1. Is it fundamental to make the name of the character picking up the mail first? If the names are different in length, then a very uneven row. Purely my opinion, this column should be in the last row.

2. If you do 1. then let's look further at the date and time format. there it is written, for example, 9.02.2023. Is there an option to include it like this : 09.02.2023 ?
Then the columns will be smoother. And it will be more convenient to watch.

3. The minimum number of saved emails is 100. I would reduce that to 10. First of all, clean hidden emails. This way only important emails will remain.
In the future, it may also add the ability to set a checkbox to prohibit the deletion of a letter.
Thanks for the update !

2. Thank you. This is what you need !

3. It is very important to understand how to do it better. For all the time I received about 700 letters.
That's a lot. You can turn off receiving system messages. But not all systems are necessary and important for all players.
For example, like Bertram, I prefer to see only certain important system emails and personal correspondence.
A friend of mine saves all the letters of mercenaries.
I suggest:
a) Make it possible to delete hidden emails from the list. I pressed the button - the database was cleared.

b) Divide hiding from the merchant, mercenaries and pvp rewards by separate settings items.
So that players can choose what they want to hide.
Report comment to moderator  
Reply With Quote
Unread 02/12/23, 09:45 AM  
PacificOshie
 
PacificOshie's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 15
Uploads: 2
Hiya Baertram! Thanks for the suggestions!

It seems like anyone who wants to hide the hireling, trader, pvp, etc, they should probably just hide all System mail. I'll simplify the options for hiding System mail. In addition, I'll add an option to stop saving System mail too. Thanks!

++

Originally Posted by Baertram
Hi there,

would it be possible to filter system mails so that the saved stuff won't blowup too much because of them?
Same like the hireling and guild trader mails, maybe there is a way to detect the AvA and dungeon reward mails or any other system generated ones (without having to compare names of senders)?

I'd love to have all of them not saved and only player created mails saved (or maybe these are detectable by a @displayName as sender or similar?)

Thank you.
Report comment to moderator  
Reply With Quote
Unread 02/12/23, 09:22 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4426
File comments: 5518
Uploads: 77
Hi there,

would it be possible to filter system mails so that the saved stuff won't blowup too much because of them?
Same like the hireling and guild trader mails, maybe there is a way to detect the AvA and dungeon reward mails or any other system generated ones (without having to compare names of senders)?

I'd love to have all of them not saved and only player created mails saved (or maybe these are detectable by a @displayName as sender or similar?)

Thank you.
Report comment to moderator  
Reply With Quote
Unread 02/12/23, 08:01 AM  
PacificOshie
 
PacificOshie's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 15
Uploads: 2
Re: Re: Re: MailR

Thanks MegwynW! I believe that Reply is now a built-in capability in ESO without any addons. However, forwarding mail may require an addon.

As a future enhancement for Mail History, I could add buttons to allow replying and forwarding any of the saved mail in Mail History. I'll add this to my list. Maybe it will help.

Thanks for sharing your scenario with me!

++

Originally Posted by MegwynW
Originally Posted by PacificOshie
Does MailR provide some key capability for you? I'm wondering if there are alternative addons that could be used.
The message reply and forward functionality that MailR implements is something I use frequently and I'm not aware of other addons that replicate it.
Report comment to moderator  
Reply With Quote
Unread 02/11/23, 03:23 PM  
MegwynW

Forum posts: 0
File comments: 20
Uploads: 0
Re: Re: MailR

Originally Posted by PacificOshie
Does MailR provide some key capability for you? I'm wondering if there are alternative addons that could be used.
The message reply and forward functionality that MailR implements is something I use frequently and I'm not aware of other addons that replicate it.
Report comment to moderator  
Reply With Quote
Unread 02/11/23, 09:49 AM  
PacificOshie
 
PacificOshie's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 15
Uploads: 2
Re: MailR

Hiya MegwynW! When I started creating Mail History, I noticed that I wasn't getting the expected mail notifications and callbacks from the esoui core mail system. Upon investigating MailR, I found that it overrides the esoui core mail system with its own implementation. I have uninstalled MailR and added a warning for users of Mail History because if Mail History doesn't get the expected mail notifications and callbacks from the esoui core mail system, then it can't save a copy of the mail.

Does MailR provide some key capability for you? I'm wondering if there are alternative addons that could be used.

++

Originally Posted by MegwynW
What exactly is the incompatibility with MailR? There is no mention of it on the addon page. Thanks.
Report comment to moderator  
Reply With Quote
Unread 02/10/23, 10:41 PM  
MegwynW

Forum posts: 0
File comments: 20
Uploads: 0
MailR

What exactly is the incompatibility with MailR? There is no mention of it on the addon page. Thanks.
Report comment to moderator  
Reply With Quote
Unread 02/10/23, 07:50 PM  
PacificOshie
 
PacificOshie's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 15
Uploads: 2
Thanks for the suggestions!

(1.) Yeah, it's difficult to read the listing when the fields don't line up. I'm looking into columns, but it seems complicated at first glance. Let me think about this one for a while.

(2.) Regarding the date format, I originally had YYYY-MM-DD because that is my personal preference, however, I've change the date format to use the system locale format so dates are shown in a more global friendly manner. I am unable to override the locale in the addon. I'll consider adding alternative date and time settings when the default locale format is undesired.

(3.) You're right, if I'm only saving Player mail (without system mail) then having 10 may be sufficient for many people. My original goal was to keep all mail (even the hidden mail) so you can always find mail when needed. However, I see that many people don't value System mail as much as Player mail, so I'm considering to change the options to avoid saving System mail, and only save Player mail. I think this is what you're suggesting. Let me know if I've misunderstood.

I'm continuing to make enhancements while this addon is quite new, so ideas are fresh too. Thanks!

++

Originally Posted by Verling
1. Is it fundamental to make the name of the character picking up the mail first? If the names are different in length, then a very uneven row. Purely my opinion, this column should be in the last row.

2. If you do 1. then let's look further at the date and time format. there it is written, for example, 9.02.2023. Is there an option to include it like this : 09.02.2023 ?
Then the columns will be smoother. And it will be more convenient to watch.

3. The minimum number of saved emails is 100. I would reduce that to 10. First of all, clean hidden emails. This way only important emails will remain.
In the future, it may also add the ability to set a checkbox to prohibit the deletion of a letter.
Report comment to moderator  
Reply With Quote
Unread 02/10/23, 01:04 PM  
DohNotAgain

Forum posts: 1
File comments: 93
Uploads: 0
Originally Posted by Verling
1. Is it fundamental to make the name of the character picking up the mail first? If the names are different in length, then a very uneven row. Purely my opinion, this column should be in the last row.

2. If you do 1. then let's look further at the date and time format. there it is written, for example, 9.02.2023. Is there an option to include it like this : 09.02.2023 ?
Then the columns will be smoother. And it will be more convenient to watch.

3. The minimum number of saved emails is 100. I would reduce that to 10. First of all, clean hidden emails. This way only important emails will remain.
In the future, it may also add the ability to set a checkbox to prohibit the deletion of a letter.
I don't know much about LUA programming, but if it has formatted output capabilities then your points 1 and 2 could probably be easily fixed without rearranging the orders. For me, personally, I'd rather not have the name at the end.

I like that checkbox idea.
Report comment to moderator  
Reply With Quote
Unread 02/10/23, 12:54 PM  
DohNotAgain

Forum posts: 1
File comments: 93
Uploads: 0
Originally Posted by PacificOshie
Hiya DohNotAgain! Ah, thanks! I see what you mean now. Yes, I will implement a keybinding to toggle the history window in an upcoming release. Thanks for the suggestion!
Thank YOU for this.
Very much appreciated!
Report comment to moderator  
Reply With Quote
Unread 02/09/23, 09:10 PM  
Verling
 
Verling's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 30
Uploads: 4
1. Is it fundamental to make the name of the character picking up the mail first? If the names are different in length, then a very uneven row. Purely my opinion, this column should be in the last column.

2. If you do 1. then let's look further at the date and time format. there it is written, for example, 9.02.2023. Is there an option to include it like this : 09.02.2023 ?
Then the columns will be smoother. And it will be more convenient to watch.

3. The minimum number of saved emails is 100. I would reduce that to 10. First of all, clean hidden emails. This way only important emails will remain.
In the future, it may also add the ability to set a checkbox to prohibit the deletion of a letter.
Last edited by Verling : 02/13/23 at 11:30 PM.
Report comment to moderator  
Reply With Quote
Unread 02/09/23, 08:44 PM  
PacificOshie
 
PacificOshie's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 15
Uploads: 2
Hiya DohNotAgain! Ah, thanks! I see what you mean now. Yes, I will implement a keybinding to toggle the history window in an upcoming release. Thanks for the suggestion!

++

Originally Posted by DohNotAgain
Originally Posted by PacificOshie
Originally Posted by DohNotAgain
Could you add a hotkey option to toggle the window on and off please?
I only want to see it when I want to look at something.

Of course, I could simply be overlooking that option....

I am happy to see this addon.
Hiya, would this work for you?...
- Mail History has a setting to automatically show the history with the mailbox, so you can turn that OFF.
- In addition, you can manually show the history with the /mailhistory command.

Let me know if there is some other capability you're thinking about. Thanks!
Yup, already turned off the automatic option.
I was so happy when I saw that in settings!

I'd rather have a hotkey than have to type out /mailhistory when I want to look at it.
This may sound dumb, but for me it is not.
Years ago I got a brain injury from meningitis.
Remembering to type /mailhistory to open Mailhistory, as stupid as it sounds, is not a guarantee.
That's my normal now and I have to live in it.
I am much more likely to remember alt-m (2 keys) than /mailhistory (12 keys).

If there was an in game way to map the text /mailhistory to a hot key I would do that.
Maybe there's a different addon that does that?
If I could do that both of our problems would be solved: I'd have a hotkey and you wouldn't need to program one in.
Report comment to moderator  
Reply With Quote
Unread 02/09/23, 06:00 PM  
DohNotAgain

Forum posts: 1
File comments: 93
Uploads: 0
Originally Posted by PacificOshie
Originally Posted by DohNotAgain
Could you add a hotkey option to toggle the window on and off please?
I only want to see it when I want to look at something.

Of course, I could simply be overlooking that option....

I am happy to see this addon.
Hiya, would this work for you?...
- Mail History has a setting to automatically show the history with the mailbox, so you can turn that OFF.
- In addition, you can manually show the history with the /mailhistory command.

Let me know if there is some other capability you're thinking about. Thanks!
Yup, already turned off the automatic option.
I was so happy when I saw that in settings!

I'd rather have a hotkey than have to type out /mailhistory when I want to look at it.
This may sound dumb, but for me it is not.
Years ago I got a brain injury from meningitis.
Remembering to type /mailhistory to open Mailhistory, as stupid as it sounds, is not a guarantee.
That's my normal now and I have to live in it.
I am much more likely to remember alt-m (2 keys) than /mailhistory (12 keys).

If there was an in game way to map the text /mailhistory to a hot key I would do that.
Maybe there's a different addon that does that?
If I could do that both of our problems would be solved: I'd have a hotkey and you wouldn't need to program one in.
Report comment to moderator  
Reply With Quote
Unread 02/07/23, 03:54 PM  
P5ych3
 
P5ych3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 80
Uploads: 2
Lightbulb Ayyy

Now this certainly looks enticing.. nice work! This is something a lot of people will find useful. I will have to give this a try later.
Report comment to moderator  
Reply With Quote
Unread 02/07/23, 02:32 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4426
File comments: 5518
Uploads: 77
On PTS my saved mail history is gone after each reloadui?
Seems that your SavedVariables ar enot saved properly somwhere....

Here is a screenshot of merTorchbug inspecting your MailHistory.data table:


It's empty after each reloadui.
My MailHistoryData.Default table is empty too.
And I definately have taken 3 hireling mails today which were shown properly with your previous version of the addon (updated it today at the evening and before all was okay).

Edit:
It seems to have to do with your v4MaiLData and v5MailData ZO_SavedVArs calls!
if I comment these lines it's working fine:
Lua Code:
  1. -- <<<< SETTINGS
  2.  
  3.     -- Prepare the SavedVars.
  4.  
  5.     -- FIRST (old versions)
  6.     -- Get older versions of the data in case we need to update the data.
  7.     -- Note, if we get the new version first, it will destroy any old version, so we need to try to get these old versions first.
  8.     --[[
  9.         local v4MailData = ZO_SavedVars:NewAccountWide("MailHistoryData", 1, nil, {table={}})
  10.         local v5MailData = ZO_SavedVars:NewAccountWide("MailHistoryData", 1, nil, {table={}}, GetWorldName())
  11.  
  12.     MailHistory._v4MailData = v4MailData
  13.     MailHistory._v5MailData = v5MailData
  14.     ]]
  15.  
  16.     -- SECOND (current version)
  17.     -- Mail data SavedVars is version 2 and region specific (GetWorldName).
  18.     -- Mail data SavedVars version 2 is used by Mail History addon v6.
  19.     MailHistory.data = ZO_SavedVars:NewAccountWide("MailHistoryData", 2, nil, {table={}}, GetWorldName())

If the comments are removed MailHistory.data will be empty in the end

If you want to migrate settings from old to new SV versions (like from non worldName to worldName) then load the old sv into a local copy, create a ZO_ShallowTableCopy to strip metatables and SV wraper of ZO_SavedVars!
Then use that copied table reference as "default" values for your new ZO_SavedVars with an increased version, or simply a total different table name so that the data is not mixed within the SV files on disk!!! (this will just copy the entries from old Sv copied table to new SV table).
After that set the old SV table = nil and do a ReloadUI("ingame") once in your code.

To prevent this being an endless loop check for the oldTable ~= nil BEFORE you try to assign it to ZO_SavedVars (else it won't be nil!).
e.g. if your SV tablename of the old SV was
MailHistoryData and your new table will be MailHistoryDataNew, check at the beginning
if MailHistoryData ~= nil then
--Migration needed
end
Last edited by Baertram : 02/07/23 at 06:39 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: