Monday 23 December 2013

Outlook Attachment &Subject Reminder Macro

Outlook Attachment  Reminder Macro

 How to set it up:

1. Open Outlook.
2. Press Alt+F11 : This will open the Visual Basic editor.
3. Expand the project until you find “ThisOutlookSession” and select it.
4. Copy the code below into the Visual Basic code window.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim lngres As Long
If InStr(1, Item.Body, "attach") Or InStr(1, Item.Subject, "attach") <> 0 Then
If Item.Attachments.Count = 0 Then
lngres = MsgBox("word 'Attach' found, but no attachment - send anyway?", _
vbYesNo + vbDefaultButton2 + vbQuestion + vbSystemModal, "You asked me to warn you...")
If lngres = vbNo Then Cancel = True
End If
End If

If InStr(1, Item.Body, "include") Or InStr(1, Item.Subject, "include") <> 0 Then
If Item.Attachments.Count = 0 Then
lngres = MsgBox("word 'include' found, but no attachment - send anyway?", _
vbYesNo + vbDefaultButton2 + vbQuestion + vbSystemModal, "You asked me to warn you...")
If lngres = vbNo Then Cancel = True
End If
End If

If InStr(1, Item.Body, "enclose") Or InStr(1, Item.Subject, "enclose") <> 0 Then
If Item.Attachments.Count = 0 Then
lngres = MsgBox("word 'Enclose' found, but no file enclosed - send anyway?", _
vbYesNo + vbDefaultButton2 + vbQuestion + vbSystemModal, "You asked me to warn you...")
If lngres = vbNo Then Cancel = True
End If
End If
End Sub

 
5. Save.

Now to test:

6. Close & Reopen Outlook for good measure.
7. Write an email containing the word attach.
8. Click send. *This is when you should get the pop-up.

How to set it up:

1. Open Outlook.
2. Press Alt+F11 : This will open the Visual Basic editor.
3. Expand the project until you find “ThisOutlookSession” and select it.
4. Copy the code below into the Visual Basic code window.
5. Save.
Now to test:
6. Close & Reopen Outlook for good measure.
7. Write an email containing the word attach.
8. Click send. *This is when you should get the pop-up.
- See more at: http://www.businesshut.com/outlook-macros/outlook-attachment-reminder-macro/#sthash.F0RRLyFo.dpuf

How to set it up:

1. Open Outlook.
2. Press Alt+F11 : This will open the Visual Basic editor.
3. Expand the project until you find “ThisOutlookSession” and select it.
4. Copy the code below into the Visual Basic code window.
5. Save.
Now to test:
6. Close & Reopen Outlook for good measure.
7. Write an email containing the word attach.
8. Click send. *This is when you should get the pop-up.
- See more at: http://www.businesshut.com/outlook-macros/outlook-attachment-reminder-macro/#sthash.F0RRLyFo.dpuf

Outlook Attachment Reminder Macro

Outlook Attachment Reminder Macro

Outlook Attachment Reminder Macro

Outlook Attachment Reminder Macro

Wednesday 31 July 2013

Upgrade SVN in Ubuntu 12.04

Follow below steps to Upgrade svn from 1.6 to 1.7

# echo "deb http://opensource.wandisco.com/ubuntu lucid svn17" | sudo tee /etc/apt/sources.list.d/svn.list
# sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
# sudo apt-get update
# sudo apt-get install subversion

That should do the trick!!!

Thanks to : http://kovshenin.com/2013/subversion-1-7-on-ubuntu-12-04/

Wednesday 27 February 2013

Append shell commands to history immediately

 When working with multiple terminals you can always face ssh timeout which will result in loss of command history of the particular session.

To prevent this, Add below line in "/etc/bash.bashrc" file

export PROMPT_COMMAND='history -a'

After logoff login, every time a shell command runs it will be immediately stored in history file.

That should do the trick!!!

Enable Timestamp in bash history for all users

Time Stamp in Linux history can save you from many tight corners.

To enable this, please add below line to "/etc/bash.bashrc" file

HISTTIMEFORMAT="%d-%h-%Y %T "

Logoff login will enable time stamp in history like below example

57  03-Jan-2013 07:15:22 history

That should do the trick!!!

How to Prevent Emails from Going to the Junk Email Folder



Marking Email and Senders as "Not Junk"


Open Microsoft Outlook
Go to the Inbox Screen
Select the "Junk E-mail" folder
A list of mail items will appear on the right preview pane.


Right click on each mail item that is not considered junk
Scroll to and select Junk E-mail
Scroll to and click on "Mark as Not Junk..."


Follow the prompts to confirm each sender you would like to continue to receive mail from.
All mail from that sender will now be directed to the inbox instead of Junk e-mail folder.


Adding a Sender to the Safe Sender List

Mail that is screened by Outlook is diverted to a Junk E-mail folder. Mail that is filtered and identified as SPAM by SPAM SOAP is identified by a message sent to your mailbox from SPAM SOAP.

If mail is going to the Junk E-mail folder open your Junk E-mail folder. If you have moved the mail to a new folder, open that folder.



Right click on the message and scroll to Add Sender to Safe Senders List.
If mail from a specific domain is going to the Junk E-mail folder select the option to Add Sender's Domain (@example.com) to Safe Senders List. It is recommended that you use this option sparingly and avoid adding sender domains that are known to be havens for SPAMMERS such as Hotmail, Yahoo, and Gmail.
Once added to the Safe Senders List your Outlook will need to be open and running for the rule to be active.  Known as a "client-side rule" these filters will not work though Outlook Web Access https://mail.business.uconn.edu unless the PC that is running the rule has Outlook Running.