Author |
Message
|
RITCHEA |
Posted: Sat Aug 20, 2011 10:12 pm Post subject: get messages in email input node |
|
|
Apprentice
Joined: 25 Jul 2011 Posts: 27
|
I want to configure Email input node but still unable to fetch messages from my mail account
I have run the following commands:
mqsideleteconfigurableservice MB7BROKER -c EmailServer -o myservice
mqsicreateconfigurableservice MB7BROKER -c EmailServer -o myservice
mqsichangeproperties MB7BROKER -c EmailServer -o myservice -n serverName -v
pop3://xyz.com:110
mqsichangeproperties MB7BROKER -c EmailServer -o myservice -n
securityIdentity -v mySecurityIdentity1
mqsisetdbparms MB7BROKER -n email::mySecurityIdentity1 -u
ritchea@xyz.com -p mypassword
and set- email server property as- myservice
security identity as- mySecurityIdentity1
please suggest.. |
|
Back to top |
|
 |
smdavies99 |
Posted: Sat Aug 20, 2011 11:04 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
What errors are you getting? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
RITCHEA |
Posted: Sun Aug 21, 2011 2:12 am Post subject: |
|
|
Apprentice
Joined: 25 Jul 2011 Posts: 27
|
I am not getting any error but still it is not fetching messages from mail account...
my flow is:
emailInput node--> filter(to check attachment)-->fileoutput node.. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Aug 21, 2011 9:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
RITCHEA wrote: |
I am not getting any error but still it is not fetching messages from mail account... |
What does a user trace show about the activity (or lack of) in the node? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
RITCHEA |
Posted: Sun Aug 21, 2011 10:27 pm Post subject: |
|
|
Apprentice
Joined: 25 Jul 2011 Posts: 27
|
actually user name i m using is ritchea.agrawal@companyname.com in my mqsisetdbparms command but in real time it only accepts ritchea.agrawal and if i give the user name without @... in command it shows edit source look up path if i launch debugger.... is that could be a problem... |
|
Back to top |
|
 |
RITCHEA |
Posted: Sun Aug 21, 2011 10:33 pm Post subject: |
|
|
Apprentice
Joined: 25 Jul 2011 Posts: 27
|
where should i use trace node in flow... as i m not getting message in email node itself.... |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun Aug 21, 2011 11:06 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Vitor said 'User Trace' not a trace node.
So...
Try this.
1) Stop the Flow.
2) enable user trace on the flow (mqsichangetrace ... -r -l debug)
3) Start the flow
Wait a couple of minutes
4) disable user trace (mqsichangetrace .... -l none)
5) read the log (mqsireadlog)
6) format the log
Now look to see if there are any errors when the flow starts up. It should attempt to logon to the email server. If there are problems it should show up here. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
RITCHEA |
Posted: Mon Aug 22, 2011 9:57 pm Post subject: |
|
|
Apprentice
Joined: 25 Jul 2011 Posts: 27
|
still unable to find the problem.... |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Aug 22, 2011 10:20 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Does the trace log show anything? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
RITCHEA |
Posted: Tue Aug 23, 2011 3:23 am Post subject: |
|
|
Apprentice
Joined: 25 Jul 2011 Posts: 27
|
Is there any way one can check in filter node that the attachment received in email input node...is csv or text...from email input node... |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 23, 2011 5:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
RITCHEA wrote: |
Is there any way one can check in filter node that the attachment received in email input node...is csv or text...from email input node... |
Yes. By understanding the logical message structure that the emailInput node produces for an email with attachments, and using that information to construct your filter expression.
But be aware that just because an email attachment has an original file name that ended with ".txt", does not mean in any way that it actually represents text content. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 23, 2011 5:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
RITCHEA wrote: |
Is there any way one can check in filter node that the attachment received in email input node...is csv or text...from email input node... |
Does this mean you've resolved the email problem? If so, how? (If only for the benefit of future readers)
Or was the apparent lack of email reading caused by no output files being written out due to this issue in the filter node? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
RITCHEA |
Posted: Tue Aug 23, 2011 11:22 pm Post subject: |
|
|
Apprentice
Joined: 25 Jul 2011 Posts: 27
|
yes, thankfully i have resolved the problem i ran following commands on MBcomamnd console:
mqsideleteconfigurableservice MB7BROKER -c EmailServer -o myservice
mqsicreateconfigurableservice MB7BROKER -c EmailServer -o myservice -n serverName,securityIdentity -v pop3://{maillingserver}:110,mySecurityIdentity
mqsisetdbparms MB7BROKER -n email::mySecurityIdentity1 -u {username} -p {mypassword}
Take care of spaces n cases....
set properties of EmailInput node:
emailserver: pop3://maillingserver:110
severrsecurity:mySecurityIdentity1
it worked !!!
Last edited by RITCHEA on Thu Aug 25, 2011 1:24 am; edited 1 time in total |
|
Back to top |
|
 |
RITCHEA |
Posted: Tue Aug 23, 2011 11:25 pm Post subject: |
|
|
Apprentice
Joined: 25 Jul 2011 Posts: 27
|
but i unable to check if the attachment received is text or csv...
i ran following code on filter node
IF Root.MIME.Parts.Content-Type= '*.txt' THEN
RETURN FALSE;
ELSE
RETURN TRUE;
END IF;
please suggest... |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Aug 24, 2011 12:05 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
RITCHEA wrote: |
serverName,securityIdentity -v pop3://maillingserver:110,mySecurityIdentity
mqsisetdbparms MB7BROKER -n email::mySecurityIdentity1 -u ritchea.agrawal -p mypassword
set prop[erties
emailserver: pop3://maillingserver:110
severrsecurity:mySecurityIdentity1
|
I'm sure that is a typo {or maybe it isn't} _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|