Category: Personal Notes

  • postfix-delete.pl scipt

    #!/usr/bin/perl $REGEXP = shift || die “no email-adress given (regexp-style, e.g. bl.*@yahoo.com)!”; @data = qx</usr/sbin/postqueue -p>; for (@data) { if (/^(w+)(*|!)?s/) { $queue_id = $1; } if($queue_id) { if (/$REGEXP/i) { $Q{$queue_id} = 1; $queue_id = “”; } } } #open(POSTSUPER,”|cat”) || die “couldn’t open postsuper” ; open(POSTSUPER,”|/usr/sbin/postsuper -d -“) || die “couldn’t open postsuper”…

  • How do I set up Microsoft Outlook 2007 using IMAP?

    Step 1:    On your computer, click the Start Menu and select Control Panel. Step 2: If using Windows XP, double-click the Mail icon. If using Windows Vista, Windows 7 or above, type Mail into the search box at the top-right of the Control Panel window to quickly find the Mail icon. Then, double-click it.…

  • How to add user to a “User” localgroup in Windows 7.

    @echo off rem —————————————————————————— rem adding ‘webserverpage’ account and adding to the Users group rem —————————————————————————— rem — Displaying Batch Filename — echo “Now executing %~f0 … ” echo. echo. echo. rem ——————————— net user webserverpage password /add /y net user webserverpage password /ACTIVE:YES /EXPIRES:NEVER /PASSWORDCHG:NO /PASSWORDREQ:YES net localgroup users webserverpage /add /y rem —…