Exchange 2010 - - - Attachment Retention Solution - powershell

Currently I am working with getting rid of voicemail to email files to save space in our archiving solution. Currently I have a search-mailbox script written to take care of deleting the voicemail e-mails. Is there any other solution out there that would be more effective in controlling the deletion of specific attachments from users mailboxes? The script works but it seems crude and very ancient to me after I finished writing it. I also looked at Transport Rules and Retention Tags but neither seem to give me much granular control over just attachments or just a specific attachment name. Is there an Industry Standard on handling a situation similar to mine or am I headed in the right direction with just PowerShell?

Related

Approach to a non-redundant and robust alert system?

My team has a script on a cronjob schedule that checks for the presence of certain files in a directory, and if they are there, includes them in a report that is sent daily to our team's emails.
However, most days that report is empty, which is redundant and clutters my inbox. I suggested to my team to modify the script to only send out the report as an alert if there is at least one of these files. But they explained that if the script encounters some error, we won't know because the emails aren't sending - a false negative. A daily email report hence eliminates this concern.
I still don't think this is scaleable - e.g., if there are 10 independent alert systems this would make for a messy inbox. What is the best way to implement a more robust version of my approach - to send an alert only if a criterion is met - without the threat of false negatives?

Processing e-mail in Odoo 11 without previous threads – is this possible?

This Odoo company we're working with basically sends a lot of e-mail. One e-mail thread can turn into 100+ e-mails with different people brought into the conversation (CC'd) at different times. Due to the complexity of their e-mail management, they want to use their Gmail interface (Google Hosted) and CC an e-mail into odoo and they want it to get tracked in a thread. I've basically already done that... they have an e-mail like odoo+res.partner-432#domain.com (although it's hashed to not be easily readable) - they CC this and the full body thread gets included in chatter (mail.message) under respective model / id.
The challenge with this: the chatter messages can get huge very fast, due to their e-mail messages (because each e-mail includes main reply, and all previous history on thread). I've looked into some systems that have a "reply above this line" - and it just takes the latest message. And in those systems, eg. ticketing systems such as Zendesk, help scout, I believe the teams are using the ticketing system (not a gmail) and thus there is much more control over the inbox and incoming email (not to mention, those e-mails are usually 1-to-1, not including groups).
My questions:
Is there any other workaround that you see here to have odoo pull in only the last e-mail reply and not the full e-mail thread? I could probably build something like this: https://github.com/zapier/email-reply-parser - and hook it into odoos e-mail parsing, but that works on text format e-mails only (not HTML)... only. So it's not bulletproof, and I'm not sure it's worth it.
Even if this client DID use odoo 100%, I still don't think it would be possible to get it to work the way they want without major customizations (eg. Odoo's default behavior is to include all past e-mail threads)
I'm curious if anyone here see's any other solutions, otherwise – I doubt there is something here I haven't seen. :) (But very open to be proven incorrect!)

How do I pull counts of email sents to a specific smtp address

I was asked to see if I could pull statistics on the volumne of email, and specifically the size of attachments sent from within my organization to a particular email address.
I work a lot with Exchange Web services but this seems like a more like a powershell through the Exchange shell type of situtation. Does anyone have any pointers on this? I am comfortable with powershell but I am not familiar with the Exchange cmdlets.
I also asked this question on server fault as I was not sure what site would be most appropriate.
The first place I'd suggest trying to get this info from is the hub transport logs. Those only exist for 14 days by default so you may need to write a script that runs daily and exports the stats to a csv file or database.
If you need to get data older than 14 days right now then take a look at:
Search-Mailbox
Using the EWS approach many still be a viable route. Glen has been putting out some great stuff at:
EWS Managed API and Powershell How-To series Part 1

Email to rss on server

for my group at the university I'd like to set up a server-sided email-to-rss service.
It should work like that, that different people can send emails to a certain address (nothing proprietary like gmail but a certain imap or pop server) which will the be translated into an rss feed. One main and important feature has to be that one can see the sender of the email in the feed. Furthermore it would be nice (to take the load off the server) if the emails get translated to a feed only once a day or so.
Does anyone has some input on this subject? Are there any scripts/services which will allow that?
Thanks a bunch.
Instead of "reinventing the wheel", you could use a mailing list that supports RSS. Your people can then write the mails to the mailing list and you can then use the mailing list's RSS feed however you intend to.
This should help you find a solution: https://encrypted.google.com/search?q=mailing%20list%20rss
Pick a programming language you're familiar with, then use either an imap library to fetch the E-mails (through cron, every hour or something like that), or if you have access to procmail on your mail server, launch your script as an email arrives (this shouldn't be too much work to handle for a server, unless you're talking a vast amount of E-mail).
The script would just insert the E-mails into a database, before extracting them and outputting the RSS-feed directly from that (this shouldn't be more than a handful of lines of code).
There's a couple of providers that does this for you, although it seems that the most popular ones have disappeared. Advanced Email2RSS seems to be an option, although I have no idea how good they are or if it'll even solve your issue.

How to retrieve all email messages over *** characters long?

I always had trouble updating blogs i wrote, but it occured to me that whenever people ask me something I can give really long replies that could easily become articles.
However there`s not a feature in GMail or any other mail app for that matter, that enables me to search by message length.
Will I have to write a script to retrieve all messages and then process them or is there an easy way?
Well, what you could do is to use e.g. MS Office Outlook - I know they have a feature to create rules where you can specify to retrieve, move and what-not with e-mails sized over X ammount of kilobytes.
Might be an option?