Public bug reported:

In the url
http://manpages.ubuntu.com/manpages/lucid/man1/postsuper.1.html in
section

--------
               mailq | tail +2 | grep -v ’^ *(’ | awk  ´BEGIN { RS = "" }
                  # $7=sender, $8=recipient1, $9=recipient2
                  { if ($8 == "u...@example.com" && $9 == "")
                        print $1 }
              ´ | tr -d ’*!’ | postsuper -d -
----------
Need to be change as it is not working in ubuntu.

A better approach is to use the code I wrote below for removing mails
from one user:

-----------
mailq | grep ^[A-Z\|0-9] | grep "u...@example.com" | awk '{print $1}' | 
postsuper -d -
-------------

** Affects: ubuntu-docs (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  In the url
  http://manpages.ubuntu.com/manpages/lucid/man1/postsuper.1.html in
  section
  
  --------
-                mailq | tail +2 | grep -v ’^ *(’ | awk  ´BEGIN { RS = "" }
-                   # $7=sender, $8=recipient1, $9=recipient2
-                   { if ($8 == "u...@example.com" && $9 == "")
-                         print $1 }
-               ´ | tr -d ’*!’ | postsuper -d -
+                mailq | tail +2 | grep -v ’^ *(’ | awk  ´BEGIN { RS = "" }
+                   # $7=sender, $8=recipient1, $9=recipient2
+                   { if ($8 == "u...@example.com" && $9 == "")
+                         print $1 }
+               ´ | tr -d ’*!’ | postsuper -d -
  ----------
- need to be change as it is not working in ubuntu. First "tail +2" need to 
change to "tail --line=+2"  but a better approach is to use the code I wrote 
below for removing mails from one user:
+ Need to be change as it is not working in ubuntu.
+ 
+ A better approach is to use the code I wrote below for removing mails
+ from one user:
  
  -----------
  mailq | grep ^[A-Z\|0-9] | grep "u...@example.com" | awk '{print $1}' | 
postsuper -d -
  -------------

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1329561

Title:
  postsuper manual needs update

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/1329561/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to