Searching for an email in all Exchange 2007 mails boxs - powershell

I have an email address and need a power shell command to search all email boxes in the company to find all emails relating to this.
what would be the best command to use iv been looking around but can seem to fine a close enough answer.
I'm pretty new to using power shell

Start by reading through the Help on Export-Mailbox:
http://technet.microsoft.com/en-us/library/aa998579(v=EXCHG.80).aspx
The examples there shoud get you started. If you can't get that to work, you can come back and have examples of wha't you've tried as a starting point.

Related

Extracting attachments from mail box using AutoHotKey

I need to extract the attachments(pdf and .xlsx) from mail box using auto hot key.
Can somebody elaborate the steps for achieving this?
Any links could also be of help.
Thanks
#dheerendra
First, figure out how to do it in a stepwise fashion with just the mouse and/or keyboard (look for shortcut keys or accelerator keys or hot keys - those things with underlines under them). Once you can do it manually, secondly, use AutoHotKey (or any other scripting utility) to automate those steps. These links can help.
AutoHotKey can replicate Mouse clicks at locations:
https://www.autohotkey.com/docs/commands/Click.htm
AutoHotKey can replicate sending Keys from the keyboard:
https://www.autohotkey.com/docs/commands/Send.htm
That should do it, now you just put the steps into the script, maybe with some wait times between steps, or maybe with some error checking, or maybe add some flow control logic, or perhaps get and respond to additional user input, or even a GUI.
But if you have any trouble, show us what you tried (just enough of your code to disclose the troublesome part), and tell us what you expected to happen, and then tell us what actually happened.
EDIT: (Examples of the improvements)
E.g., you could use control logic to save in a place and name it depending on the sender or subject, or a category:
https://www.autohotkey.com/docs/commands/IfExpression.htm
Or you could get simple user input to determine where to save it and what to call it:
https://www.autohotkey.com/docs/commands/InputBox.htm
Or even create a full blown application with a GUI and connections to other data, and use that to establish a complete workflow process.
https://www.autohotkey.com/docs/commands/Gui.htm
Also, you didn't say what Mail client you are using, but I should mention that in addition to scripting mouse and keyboard actions, AutoHotKey lets you easily interact with Microsoft Outlook com interface which can easily expose email message objects and their attachments.
https://www.autohotkey.com/docs/commands/ComObjCreate.htm
Good luck, and Hth,

How do I build a script that automatically sends out emails?

So I've done some research on the topic, but I cannot seem to figure out how to get the emails to send. This is the sheet I've been using: https://docs.google.com/a/taktical.co/spreadsheets/d/18GsFLLUCCAba82Teyd4nI8XSuNwEBvunjpQeNdYY-6U/edit#gid=0
I want to be able to pull the information from the first sheet, and have the recipient email set to Contact Email 1. I also need an if statement that says if any cell in row D says "not found", to just simply not send the email.
Any help here would be greatly appreciated :)
I splitted your problem into 3 distinct areas, with suggestions on how to solve it.
Consider using the gspread API to read the data from your Google Doc into a Python script.
Then to send email with Python, see Python Documentation: Email examples.
Finally, to automatically run this Python script it kind of depends on which OS you are using. In Linux you could set it up as a cronjob or just autostart it to run all the time.
I hope this will get you somewhere.

Using applescript to edit a server variable

I do not know if I am asking this correctly (but none of my searches anywhere yielded an answer).
I'll try my best to explain;
I've created an Applescript that is used in a mail client (Mac Mail and MS Outlook).
Basically when an email is recieved, it checks the subject, if the subject contains "whatever" then the script executes.
This script asks if you'd like to send an auto-response. If you click no, nothing happens. If you click yes, one is sent. Simple enough right?
Well, the problem I ran into is 20 people all said yes at the same time, sending 20 auto-generated emails.
I am attempting to find SOMEWAY to have "it" check to see if someone has already clicked yes. Does anyone have any insight? Am I going too far outside the scope of Applescript? If so, any alternatives would be greatly appreciated.
You need some centralized way to keep track when a yes is clicked. So a simple text file on the server may do the job. What I'm thinking is that when someone clicks yes to send the auto-responce then the first thing the script does is check the central file to see if anyone else has already clicked yes. If the file does have a yes then a new dialog pops up and lets the user know the email was already responded to and of course that yes does not respond. If the file does not have a yes then the script writes a yes for that email to the file, then sends the response.
You would need some way to distinguish between the emails that come in at different times so you would check the central file for this unique email property... something that is unique to each email but the same for everyone that receives it. If there is not a unique property then maybe a time based check would work. For example you could write the time-of-day to the file, and you don't send a response if the file contains a time within 30 minutes or some other suitable time period.
I hope that gives you some ideas. Good luck.

AT Command to send Business Card (VCard)

I have developed my SMS solution using AT Commands. now i need to send Business Cards (VCards) using AT Command.
I have searched alot but can't find the command for the above.
Can anyone help me out.
Regards,
Zeeshan Saeed.
See this question. You don't need a different AT command. You need to edit the SMS to be in vCard format.

Existing tool or code to identify quoted text in emails

I am looking for a way to identify quoted text in emails. The goal is to add something along the lines of Gmails "show quoted text" feature to my web app which involves a mail handler bot.
There are similar questions on stackoverflow, but they are asking for an algorithm. I could implement this if I have to, but I would greatly prefer a tried and true solution.
Requirements:
1) Support both HTML and plain text emails
2) Operates on the full thread (that is, it has the original text to compare the quoted text against; no need to guess)
3) Handles common quote-related additions such as "On May 10th, 2008 at 6:35 PM Brandon wrote:"
A python library would be super magically awesome ideal, but I don't expect to get that lucky. A simple command line tool which can do this would pretty close to ideal, but I don't expect to that that lucky either. I'd gladly settle on a well known good implementation from an open source mail client which would be reasonably possible to extract into a tool.
Does anyone have a suggestion what my best bet would be?
I'm kind of surprised that there is no such thing as an "email handler bot construction kit".
Just following up on an email I received regarding this question.
Sup has a pretty easy to understand/extract/translate bit of logic for accomplishing this. I ported the relevant functions to Python and tweaked it for my purposes.
Sup is terminal-based mail client written in Ruby: http://sup.rubyforge.org/
Google has a patent for their method:
http://www.google.co.uk/patents/US7222299