separate filename from path before modifying it for title text

This fixes an issue where the file path ("D:\path\to\filename.md") gets
included if the Markdown file is located outside the Downpost script's location.

Signed-off-by: Arnel Legaspi <arnel_legaspi@zoho.com>
print a "success" message after successful login to mail server

Signed-off-by: Arnel Legaspi <arnel_legaspi@zoho.com>