
location email in the user folder
Hello! Please tell me where is the email in the user folder? There is a script that should connect to computers and extract mail from them. I tried it in file 'Inbox' and file 'Sent', but there is no uniformity and on other computers the email may not be in the specified places. Is there a common unchangeable place in the profile folder where the email is stored?
Alle svar (5)
I don't know what you need, but this may help: - the profile default location is c:\users\<yourid>\appdata\roaming\thunderbird\profiles\<profilename> - within the profile the mail is normally in the imapmail folder for IMAP accounts and the Mail folder for POP accounts - within the relative imapmail or mail folder, the structure is <accountname>\<message folders> - message folders have two components, the message folder itself, and an index file ending in .msf - example would be inbox, inbox.msf, sent, sent.msf, etc.
To view your specific setup,
- click help>troubleshootinginformation
- scroll down to 'profile folder' and click 'open folder'
- you are now in the profile and the imapmail and mail folder are now visible.
I need to extract user@example.com from the user profile folder. So my question is, HOW CAN I DO THIS? Here's an example of what I did after I remotely connected to the compueter: $str=type .\inbox|?{$_ -match "^to"}|select -first 1; if ($str.StartsWith('To: =?UTF-8?')){$name1=$str.split().split("@")[2];$name1=$name1.TrimStart('<'); $name1} else{ $name=$str.split().split("@")[1]; $name} $name will display user in this case, but when connecting to another computer, the account will be in a different place and $name will no longer display mail.
You're seeking help in scripting and that is not a focus here. You may do better by locating a forum for that specific skill.
What do they discuss on this forum?
this forum focuses on using the Thunderbird email client and in helping people with retrieving and sending email. What you are wanting to do is not directly tied to Thunderbird.