Solved

windows script outlook 2010

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
The viewer will learn how to count occurrences of each item in an array.
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now