Solved

windows script outlook 2010

Posted on 2013-02-01
3
331 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 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

856 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