Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

windows script outlook 2010

Posted on 2013-02-01
3
Medium Priority
?
356 Views
Last Modified: 2013-02-05
I am NEW to scripting, meaning I have started learning from the scripting guys website. So I know next to NOTHING.
I would like to attempt to make a script thinking that if I have something in mind that i want to happen, it would be easier to make the script.
so for outlook 2010, i get delivery receipts ( I get these voluntarily, I want the receipts ) and I thought it would be nice to have something periodically go into my inbox and delete the delivery receipts.
Would this be a ridiculously ambitious script for a know nothing like me to attempt?
0
Comment
Question by:JeffBeall
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
atsvirginia earned 2000 total points
ID: 38844971
This may work:

#!/bin/bash
# rm_mssg.sh user subject

if [ -z "$2" ]; then
 echo "usage:  rm_message.sh <fromuser_name> <subject>"
 echo "  Rummages through all mail boxes looking for messages from <fromuser_name> with subject=<subject>"
 echo "  Example: ./rm_mssg.sh butthead_user rems "
 echo "  Put double-quotes around multi-word subjects"
 exit 0
else
 addr=$1
 subject=$2

 for usractnopac in `zmprov gaa`
  do
   echo "Searching $usractnopac  for Subject:  $subject From: $addr"
   for msg in `zmmailbox -z -m "$usractnopac" s -l 999 -t message "from:$addr subject:$subject"|awk '{ if (NR!=1) {print}}' |
      grep -v -e Id -e "-" -e "^$" | awk '{ print $2 }'`
      do
        echo "Removing "$msg""
        zmmailbox -z -m $usractnopac dm $msg
      done
   done
fi

http://www.zimbra.com/forums/administrators/36646-contrib-how-delete-emails-based-subject-script.html
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 38845000
Thank you atsvirginia - but I was just wondering if this would be crazy hard. I thought if I attempted making the script, that would be a good way to learn. But it wouldn't be a good way if it was something that would require someone with more advanced knowledge.
I don't want to sound ungrateful, but I didn't want someone to make the script for me, because I wouldn't learn that way.
0
 
LVL 1

Author Closing Comment

by:JeffBeall
ID: 38855903
Thank you for your help.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question