<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Deleting_Particular_Mail_From_All_Accounts</id>
	<title>Deleting Particular Mail From All Accounts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Deleting_Particular_Mail_From_All_Accounts"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Deleting_Particular_Mail_From_All_Accounts&amp;action=history"/>
	<updated>2026-07-25T07:33:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Deleting_Particular_Mail_From_All_Accounts&amp;diff=160&amp;oldid=prev</id>
		<title>Shashank at 05:18, 17 August 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Deleting_Particular_Mail_From_All_Accounts&amp;diff=160&amp;oldid=prev"/>
		<updated>2012-08-17T05:18:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:18, 17 August 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Zimbra]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Following script deletes a particular mail from all accounts. In the script, the subject of the mail is &amp;quot;Re: Annual Performance Appraisal Results: FY 2011-12&amp;quot; and the sender is &amp;quot;narinder.kalia@orientbell.com&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Following script deletes a particular mail from all accounts. In the script, the subject of the mail is &amp;quot;Re: Annual Performance Appraisal Results: FY 2011-12&amp;quot; and the sender is &amp;quot;narinder.kalia@orientbell.com&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   echo &amp;quot;Searching $addr&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   echo &amp;quot;Searching $addr&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #for msg in `zmmailbox -z -m &amp;quot;$addr&amp;quot; s -l 999 -t message &amp;quot;subject:$subject&amp;quot;|awk &amp;#039;{ if (NR!=1) {print}}&amp;#039; | grep -v -e Id -e &amp;quot;-&amp;quot; -e &amp;quot;^$&amp;quot; | awk &amp;#039;{ print $2 }&amp;#039;`&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #for msg in `zmmailbox -z -m &amp;quot;$addr&amp;quot; s -l 999 -t message &amp;quot;subject:$subject&amp;quot;|awk &amp;#039;{ if (NR!=1) {print}}&amp;#039; | grep -v -e Id -e &amp;quot;-&amp;quot; -e &amp;quot;^$&amp;quot; | awk &amp;#039;{ print $2 }&amp;#039;`&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   for msg in `zmmailbox -z -m &quot;$addr&quot; s -l 225 -t message &#039;subject:&quot;Re: Annual Performance Appraisal Results: FY 2011-12&quot; and From:narinder.kalia@orientbell.com&#039; | awk &#039;{ if (NR!=1) {print}}&#039;   | egrep -v &#039;Id|-----|^$&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; &lt;/del&gt;| awk &#039;{ print $2 }&#039;`&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   for msg in `zmmailbox -z -m &quot;$addr&quot; s -l 225 -t message &#039;subject:&quot;Re: Annual Performance Appraisal Results: FY 2011-12&quot; and From:narinder.kalia@orientbell.com&#039; | awk &#039;{ if (NR!=1) {print}}&#039;   | egrep -v &#039;Id|-----|^$&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039; &lt;/ins&gt;| awk &#039;{ print $2 }&#039;`&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   do&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    echo &amp;quot;Removing &amp;quot;$msg&amp;quot;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    echo &amp;quot;Removing &amp;quot;$msg&amp;quot;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Shashank</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Deleting_Particular_Mail_From_All_Accounts&amp;diff=159&amp;oldid=prev</id>
		<title>Shashank: Created page with &quot;Following script deletes a particular mail from all accounts. In the script, the subject of the mail is &quot;Re: Annual Performance Appraisal Results: FY 2011-12&quot; and the sender i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Deleting_Particular_Mail_From_All_Accounts&amp;diff=159&amp;oldid=prev"/>
		<updated>2012-08-17T05:11:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Following script deletes a particular mail from all accounts. In the script, the subject of the mail is &amp;quot;Re: Annual Performance Appraisal Results: FY 2011-12&amp;quot; and the sender i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Following script deletes a particular mail from all accounts. In the script, the subject of the mail is &amp;quot;Re: Annual Performance Appraisal Results: FY 2011-12&amp;quot; and the sender is &amp;quot;narinder.kalia@orientbell.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 for i in `cat userlist2`; do&lt;br /&gt;
  addr=$i&lt;br /&gt;
  echo &amp;quot;&amp;quot;&lt;br /&gt;
  echo &amp;quot;Searching $addr&amp;quot;&lt;br /&gt;
 #for msg in `zmmailbox -z -m &amp;quot;$addr&amp;quot; s -l 999 -t message &amp;quot;subject:$subject&amp;quot;|awk &amp;#039;{ if (NR!=1) {print}}&amp;#039; | grep -v -e Id -e &amp;quot;-&amp;quot; -e &amp;quot;^$&amp;quot; | awk &amp;#039;{ print $2 }&amp;#039;`&lt;br /&gt;
  for msg in `zmmailbox -z -m &amp;quot;$addr&amp;quot; s -l 225 -t message &amp;#039;subject:&amp;quot;Re: Annual Performance Appraisal Results: FY 2011-12&amp;quot; and From:narinder.kalia@orientbell.com&amp;#039; | awk &amp;#039;{ if (NR!=1) {print}}&amp;#039;   | egrep -v &amp;#039;Id|-----|^$&amp;quot; | awk &amp;#039;{ print $2 }&amp;#039;`&lt;br /&gt;
  do&lt;br /&gt;
   echo &amp;quot;Removing &amp;quot;$msg&amp;quot;&amp;quot;&lt;br /&gt;
   zmmailbox -z -m $i dm $msg&lt;br /&gt;
   echo &amp;quot;Deleted from $i&amp;quot;&lt;br /&gt;
   echo &amp;quot;&amp;quot;&lt;br /&gt;
  done&lt;br /&gt;
 #  fi&lt;br /&gt;
 done&lt;/div&gt;</summary>
		<author><name>Shashank</name></author>
	</entry>
</feed>