 |
|
 |
actually i want to make a program, which i wll install on machine of mail server,
and this program will check the mails content, once when mail reaches to mailbox(mean filterling email when mail is physically saved in mail database by Mail Submission Agent MSA).
after filtering mail content and finding a specified patteren this program will farward the same email to another account either on same server or another,
so how the program will farward email to another email account which is on same mail server and how the program will forward the mail outside mail server.
so is this possible and how.
plz give me hints
|
|
|
|
 |
|
|
 |
|
 |
Do you have any question to do?
|
|
|
|
 |
|
 |
I want to monitor receive and send mail , and can get both sides mail-Address.
|
|
|
|
 |
|
|
 |
|
 |
I´m a beginner in C++ and MFC Development but i found 2 little Bugs.
so i would post here the fixes.
(and sorry for my bad english)
in the function
LRESULT CMailMonitorDlg::OnTrayIcon(WPARAM wParam, LPARAM lParam)
you can add the follow 3Lines
KillTimer(3);
SetTrayIcon();
Shell_NotifyIcon(NIM_MODIFY, &tnid);
How you make it is youre choise.
example i add this
if (uMouseMsg == WM_LBUTTONDOWN)
{
KillTimer(3);
SetTrayIcon();
Shell_NotifyIcon(NIM_MODIFY, &tnid);
}
and delete follow WM_LBUTTONDOWN ||
the next is the bug when explorer crashes the Taskicon is not recreated.
MailMonitorDlg.cpp
find
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
after add this
const UINT CMailMonitorDlg::m_nTaskbarCreatedMsg = ::RegisterWindowMessage(_T("TaskbarCreated"));
at the end add this
// This is called whenever the taskbar is created (eg after explorer crashes
// and restarts. Please note that the WM_TASKBARCREATED message is only passed
// to TOP LEVEL windows (like WM_QUERYNEWPALETTE)
LRESULT CMailMonitorDlg::OnTaskbarCreated(WPARAM /*wParam*/, LPARAM /*lParam*/)
{
//ToDo
MostrarTrayIcon();
return 0L;
}
MailMonitorDlg.h
find this
void MostrarTrayIcon();
after add this
static const UINT m_nTaskbarCreatedMsg;
find this
afx_msg LRESULT OnTaskbarNotifierClicked(WPARAM wParam, LPARAM lParam);
after add this
LRESULT OnTaskbarCreated(WPARAM wParam, LPARAM lParam);
-- modified at 12:06 Saturday 7th January, 2006
|
|
|
|
 |
|
 |
i dont know why, but your app dont functionate... i've used pop.googlemail.com and the username was devil.contact@googlemail.com, any idea?!
|
|
|
|
 |
|
 |
Yessssss. "Functionate". Uh, right. Nice one.
|
|
|
|
 |
|
 |
Hello ALL,
Mail Monitor looks so good. I find it hard to understand the function declaration & implementation since Its not in English language. Can anyone help in getting the attachment from the Email.
Thanks,
Naveen
|
|
|
|
 |
|
|
 |
|
 |
Dear evrybody,
would u please explain the technique to detect the new mails.
What will be changes to compile with VC++ 6.0
|
|
|
|
 |
|
 |
would u please explain the technique to detect the new mails.
the key is'n UIDL POP3 command:
UIDL [msg]
Arguments:
a message-number (optional), which, if present, may NOT
refer to a message marked as deleted
Restrictions:
may only be given in the TRANSACTION state.
Discussion:
If an argument was given and the POP3 server issues a positive
response with a line containing information for that message.
This line is called a "unique-id listing" for that message.
If no argument was given and the POP3 server issues a positive
response, then the response given is multi-line. After the
initial +OK, for each message in the maildrop, the POP3 server
responds with a line containing information for that message.
This line is called a "unique-id listing" for that message.
In order to simplify parsing, all POP3 servers are required to
use a certain format for unique-id listings. A unique-id
listing consists of the message-number of the message,
followed by a single space and the unique-id of the message.
No information follows the unique-id in the unique-id listing.
The unique-id of a message is an arbitrary server-determined
string, consisting of one to 70 characters in the range 0x21
to 0x7E, which uniquely identifies a message within a
maildrop and which persists across sessions. This
persistence is required even if a session ends without
entering the UPDATE state. The server should never reuse an
unique-id in a given maildrop, for as long as the entity
using the unique-id exists.
Note that messages marked as deleted are not listed.
While it is generally preferable for server implementations
to store arbitrarily assigned unique-ids in the maildrop,
this specification is intended to permit unique-ids to be
calculated as a hash of the message. Clients should be able
to handle a situation where two identical copies of a
message in a maildrop have the same unique-id.
Possible Responses:
+OK unique-id listing follows
-ERR no such message
Examples:
C: UIDL
S: +OK
S: 1 whqtswO00WBw418f9t5JxYwZ
S: 2 QhdPYR:00WBw1Ph7x7
S: .
...
C: UIDL 2
S: +OK 2 QhdPYR:00WBw1Ph7x7
...
C: UIDL 3
S: -ERR no such message, only 2 messages in maildrop
(From http://www.faqs.org/rfcs/rfc1939.html[^])
This uniqueIDs saved in registry, identifies each mail.
What will be changes to compile with VC++ 6.0
This project was made in VS C++ 6.0, if you creates a new project in vs c++6.0 it will compile Ok.
|
|
|
|
 |
|
 |
Just in case somebody would need it - in my free time I'm administrator of mmm3.sf.net - open source mail checker with multiple accounts, filters, previewing etc.
I've seen this topic and thought that if anybody is interested in related source code, this could be worth seeing too - http://mmm3.sf.net[^].
Igor Green
http://www.grigsoft.com
Compare It! + Synchronize It! : Files and folders comparison never was easier!
|
|
|
|
 |
|
 |
I'm a big fan of MagicMail - it rocks!
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
 |
|
 |
And MagicMail comes from where exactly?
|
|
|
|
 |
|
 |
Not sure what you mean - was the link 404? (It works for me).
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
 |
|
 |
Sorry, I thought you were referring to something other tthan 'Magic Mail Monitor' from the previous post. So I was wondering where the program you were talking about was located, not realizing they are the same thing.
I am going to check the MMM out tonight.
What I want to do is to modify the program to automatcially delete some SPAM mails for me too! I get about 150 SPAM a day or more
I was going to look at Spamihilator, not necessarily a monitor, but a spam eliminator
http://www.spamihilator.com except that it has to run, as I understand it, alongside your mail program. I wanted something running in the background WITHOUT my mail client constantly running, hence my curiosity in MMM.
|
|
|
|
 |
|
 |
Actually it should be pretty easy to modify MMM to delete spam based on a set of rules (black-list, keywords). I've always wanted to write a spam killer that does exactly what you mentioned (i.e. not have the need to run your email client at all), but haven't had the time. Too busy with real work and maintaining my existing freeware.
One day soon, I hope...
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
 |
|
 |
Hi there
I'm running the current version and its not playing ball and it doesn't work
Without delving into the code I do notice that the "Account" editbox and the Usuario registry key have had spaces appended to them
from the registry
Usuario ->"bryce "
it should be just "bryce" as that is what i typed into the "Account" editbox
so i imagine this is one problem that should be fixed in the code
The app looks nice, it just don't work (on my XP pro box here at work)
cheers
bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
 |
|
 |
oops someone else alreayd posted this bug
sorry!
bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
 |
|
 |
The "username bug" was corrected.
|
|
|
|
 |
|
 |
I checked the procedure of msg sending and receiving. "user name" ok, but the error happend after the password is sent out...at the same time other email software can connect ...so what can be the problem? format of the password command string?
|
|
|
|
 |
|
 |
The "username bug" was corrected.
|
|
|
|
 |
|
 |
Hi ! I love the program.
I have one question.
Does anyone know how to implement proxy support !
I work in a network environment and we use a proxy,
but the program doesn't work.
|
|
|
|
 |
|
 |
When running on (at least) win98 or win2k, I found that you will end up with many additional Usuario keys inserted under the Servidor key, each with one additional space-character after the name, which prevents an "equal-found-so-just-update-this-one" resolution to the CReg... update operation that occurs with each check-email operation.
To prevent this, update the userData class method as follows (assumes that the argument is read-only):
int userData::setUsuario(CString unUsuario)
{
this->Usuario = unUsuario;
// add fix for string length
this->Usuario.TrimRight();
// end fix
return 0;
}
Use regedit to remove all current instances of "username" below "Server-encrypted-key" below "MailMonitor++" below "Software" below "HKEY_CURRENT_USER", and then everything should continue working as expected without additional instances of the same username added.
This is a good project.
I would like to extend it.
I have multiple email accounts, and each of them is being spammed with over 100 messages per day, so instead of having to receive the message headers and data of each of these, I want to automatically eliminate/delete-from-that-server (based upon header-info only) any email arriving from a source that is NOT on my "WhiteList" of acceptable sources for that username for that server.
This source-value should be describable as (as in trendmicro antispam notation) an individual USERNAME (USER@XXX.ZZZZZZ) or a domain (XXX.ZZZZZZ) or a keyword (portion of domain) (XXX as in anyuser@XXX.zzzzzz). These are the ones to keep. Any other incoming messages are to be deleted, unseen and without notification of delivery.
This extension is basically no more than a smart-compare of header-source information against a CStringList of perhaps 100 entries of good-guys. There should be added to the application box a button to activate a dialog box for whitelist maintenance and option-setting, and a base-screen indication as to whether this deletion-option is activated.
Whether this info is authoritative from the registry or from a text-file imported to the registry would be up to you, but you must also be able to export from registry to text to possibly transport to multiple machines with the same setup and operating at the same time.
If you would like to create this extension, that would be great, if not then please respond with an email address where I can send my own attempt at this extension, and then you can rework this code that I created into what you consider acceptable for inclusion in your project.
Respond offline to roberte@stcc.cc.x.us.
|
|
|
|
 |