Smith
I have not worked with the "mail" action before; so I am
not sure which method/s can work with it - possibly
the info it accesses it is stored in the session (implied by
the "store-urlname"? (tho' the syntax here seems to have
too many " in it to work). In which case a match such as:
<map:match pattern="mail/mail.wml">
<map:generate src="docs/mail.xml"/>
<map:transform src="stylesheets/mail.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="userID" value="{session-mail:userid}"/>
<map:parameter name="userTag" value="{session-mail:passwd}"/>
</map:transform>
<map:serialize/>
</map:match>
NB NB the 'session-mail' part is not real... but see if there
are equivalents to this in the Cocoon mail handling capabilities.
Derek
>>> [EMAIL PROTECTED] 2004/08/23 08:53:01 AM >>>
Quoting [EMAIL PROTECTED]:
> (its stilll not clear what you want to actually do with the
> login info so I am not sure what option best suits...)
This is what i do with the login info:
1) The login info is posted to the url mail/mail.wml.
2) The pipeline match for the url calls the action "mail".
<map:act type="mail" src="{1}">
<map:parameter name="store-urlname"
value="imap://''mail-userid'':''mail-passwd''@imap.sify.com/"
/>
</map:act>
The action is defined as follows:
<map:action name="mail" src="org.apache.cocoon.mail.MailAction"
logger="sitemap.action.mail"/>
Therefore what i need to do is obtain the login info from the url
parameters and post it to the url mail/mail.wml which will call the mail
action and connect thro imap using user name and
password.
What method will best suit my need?
regards,
Smith.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]