IMAP setting flags for DSN message problem
Hi,
I have a question about processing DSN flags using Java Mail.
We are trying to set SEEN and FLAGGED flags also for DSN messages (for any other messages it is working perfectly fine).
The problem is that no flags are set, no IMAP commands are issued.
For any 'normal' messages the IMAP command is issued (for example: A27 STORE 13 +FLAGS (\Seen)).
We are using Exchange Server 2007 with IMAP support enabled on the mailbox.
The strange thing is that i can manualy set SEEN and FLAGGED flags from Outlook on this DSN message and then print flags for this message from Java Mail.
Is there any standard for FLAG processing for DSN messages? Is this a problem in Java Mail / Exchange or some limitation? As I believe DSN in also a javax.mail.Message from the implementation point of view...
Regards
Hi Bill,
This was a good point, about calling setFlags method on the wrong message.
The problem is because, we are dealing with Exchange bug described here:
BODYSTRUCTURE with "multipart" "signed" not parsing
and using workaround described here:
http://www.oracle.com/technetwork/java/faq-135477.html#imapserverbug
However, we were setting flags on message created using following code
SharedByteArrayInputStream bis = new SharedByteArrayInputStream(bos.toByteArray());
MimeMessage cmsg = new MimeMessage(session, bis);not on original message from the mailbox.
Regards
Similar Messages
-
Programmatically setting UserPrefs for User Messaging Service
Hi,
do anyone knows or have tried to set UserPrefs, for User Messaging Service in SOA Suite, instead of using the web interface?
I have tried using the API provided, but with no success.
Appreciate any pointers and hints.
Thank you
yee thianI solved this... when u r saving from Em it is not saving ur configuration. so go to driverconfig.xml file at below location
Manully enter all the configuration values and restart the server.
C:\Oracle\Middleware\user_projects\domains\ofmw_base_domain\config\fmwconfig\servers\bam_server1\applications\usermessagingdriver-email\configuration -
Hi
I have a table that stores requests raised by employees as below
name Request_ID date status
ABC 112 05-Dec-11 rejected
ABC 786 06-Dec-11 approved
ABC 987 07-Dec-11 rejected
ABC 119 08-Dec-11 approved
MNP 221 09-Nov-11 rejected
MNP 666 10-Nov-11 approved
MNP 221 11-Nov-11 rejected
MNP 999 12-Nov-11 approved
RST 99 23-Dec-11 rejected
RST 101 24-Dec-11 approved
RST 876 25-Dec-11 rejected
RST 127 26-Dec-11 approved
I need to check the status of the latest request of each employee and set the flag of all his requests as -
‘A’ if the latest request status is ‘approved’
‘B’ if the latest request status is ‘rejected’
The resultset should be something like -
name Request_ID date status Flag
ABC 112 05-Dec-11 rejected A
ABC 786 06-Dec-11 approved A
ABC 987 07-Dec-11 rejected A
ABC 119 08-Dec-11 approved A
MNP 221 09-Nov-11 rejected B
MNP 666 10-Nov-11 approved B
MNP 221 11-Nov-11 approved B
MNP 999 12-Nov-11 rejected B
RST 99 23-Dec-11 approved A
RST 101 24-Dec-11 approved A
RST 876 25-Dec-11 rejected A
RST 127 26-Dec-11 approved A
Could you please help me in framing this SQL. Use of any analytical function would be helpful
Regards
-pankajHi, Pankaj,
Welcome to the forum!
910543 wrote:
Hi
I have a table that stores requests raised by employees as belowWhenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data, so that the people who want to help you can re-create the probelm accurately and test their ideas. since this is your first message, I'll do it for you:
CREATE TABLE table_x
( name VARCHAR2 (5)
, request_id NUMBER
, dt DATE -- DATE is not a good column name
, status VARCHAR2 (10)
, CONSTRAINT x_uk UNIQUE (name, dt)
INSERT INTO table_x (name, request_id, dt, status) VALUES ('ABC', 112, TO_DATE ('05-Dec-2011', 'DD-Mon-YYYY'), 'rejected');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('ABC', 786, TO_DATE ('06-Dec-2011', 'DD-Mon-YYYY'), 'approved');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('ABC', 987, TO_DATE ('07-Dec-2011', 'DD-Mon-YYYY'), 'rejected');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('ABC', 119, TO_DATE ('08-Dec-2011', 'DD-Mon-YYYY'), 'approved');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('MNP', 221, TO_DATE ('09-Nov-2011', 'DD-Mon-YYYY'), 'rejected');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('MNP', 666, TO_DATE ('10-Nov-2011', 'DD-Mon-YYYY'), 'approved');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('MNP', 221, TO_DATE ('11-Nov-2011', 'DD-Mon-YYYY'), 'rejected');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('MNP', 999, TO_DATE ('12-Nov-2011', 'DD-Mon-YYYY'), 'approved');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('RST', 99, TO_DATE ('23-Dec-2011', 'DD-Mon-YYYY'), 'rejected');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('RST', 101, TO_DATE ('24-Dec-2011', 'DD-Mon-YYYY'), 'approved');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('RST', 876, TO_DATE ('25-Dec-2011', 'DD-Mon-YYYY'), 'rejected');
INSERT INTO table_x (name, request_id, dt, status) VALUES ('RST', 127, TO_DATE ('26-Dec-2011', 'DD-Mon-YYYY'), 'approved');
COMMIT; name Request_ID date status ...If those are all the columns in the table, and you want to display a flag column, you can do something like this:
SELECT name
, request_id
, dt
, status
, CASE FIRST_VALUE (status) OVER ( PARTITION BY name
ORDER BY dt DESC
WHEN 'approved' THEN 'A'
WHEN 'rejected' THEN 'B'
END AS flag
FROM table_x
;If the table has a flag column, and you need to populate it, you can use the query above in a MERGE statement. (You may be better off not actually storing the flag, however, if it's hard to keep up to date.)
MNP 221 09-Nov-11 rejected
MNP 666 10-Nov-11 approved
MNP 221 11-Nov-11 rejected
MNP 999 12-Nov-11 approved ...
I need to check the status of the latest request of each employee and set the flag of all his requests as -
‘A’ if the latest request status is ‘approved’
‘B’ if the latest request status is ‘rejected’
The resultset should be something like -
name Request_ID date status Flag
MNP 221 09-Nov-11 rejected B
MNP 666 10-Nov-11 approved B
MNP 221 11-Nov-11 approved B
MNP 999 12-Nov-11 rejected BIn the original data, the status for the row with request_id=999 was 'approved'. Is there a typo somewhere?
Edited by: Frank Kulash on Jan 26, 2012 10:57 PM -
Set password for DSN (SQL Toolkit)
Hello everybody,
I'm working on WinNT4.0 with LV5.1.1 and SQL Toolkit v5.0. I've got an ODBC
DSN for an Oracle7 database. I'm asked for a password when I make a connection
to the DSN, which I now enter manually.
After that I can read and write data to the database.
Does anybody know how I can set the password automatically with the SQL Toolkit
to avoid the dialog ?
Otherwise there always has to be a user present when a connection to the
database is made, which would be very unkomfortable.
Is there any solution ?
Many thanks in advance.
Ralf.Wire a string constant to the SQL Connect VI's Connection Parameters input
and include the appropriate connection parameters. For MS SQL7 the info
looks like this:
UID=username;PWD=password
I don't use Oracle, but I imagine it would be similar. If your unsure, create
a file DSN using the ODBC administrator in NT and mimic the parameters it
creates.
"Ralf Erdmann" wrote:
>>Hello everybody,>I'm working on WinNT4.0 with LV5.1.1 and SQL Toolkit v5.0.
I've got an ODBC>DSN for an Oracle7 database. I'm asked for a password when
I make a connection>to the DSN, which I now enter manually.>After that I
can read and write data to the database.>Does anybody know how I can set
the password automatically with the SQL Toolkit>to avoid the dialog ?>
Otherwise
there always has to be a user present when a connection to the>database is
made, which would be very unkomfortable.>Is there any solution ?>>Many thanks
in advance.>Ralf.> -
JMS/AQ: Setting properties for JMS message using PL/SQL
I have created a procedure in PL/SQL that uses JMS messages, and now I need to include a property so that the subscriber can use a message selector to filter out unwanted messages. Is this possible using PL/SQL?
A previous post said: "... But you can have properties in the message payload itself and also define selectors on the message content ...". But I looked at Sun's tutorial and there it said: "A message selector cannot select messages on the basis of the content of the message body."
I have 300 different screens and messages apply only to one screen at a time. When the user is looking at screen 'A' I want him to only recieve messages that apply to screen 'A'. I thought I would do this with message selector, but is there any other way?
Here is my code(borrowed from an earlier post)
PROCEDURE ENQUEUE_JMS_MESSAGE AS
BEGIN
DECLARE
Enqueue_options DBMS_AQ.enqueue_options_t;
Message_properties DBMS_AQ.message_properties_t;
Message_handle RAW(16);
User_prop_array SYS.AQ$_JMS_USERPROPARRAY;
Agent SYS.AQ$_AGENT;
Header SYS.AQ$_JMS_HEADER;
Message SYS.AQ$_JMS_TEXT_MESSAGE;
Message_text VARCHAR2(100);
BEGIN
Agent := SYS.AQ$_AGENT('',NULL,0);
User_prop_array := SYS.AQ$_JMS_USERPROPARRAY();
Header := SYS.AQ$_JMS_HEADER( Agent, '', 'aq1', '', '', '', User_prop_array);
Message_text := 'Message 1 from PL/SQL';
Message := SYS.AQ$_JMS_TEXT_MESSAGE(Header, LENGTH(Message_text), Message_text, NULL);
DBMS_AQ.ENQUEUE(queue_name => 'tstopic',
Enqueue_options => enqueue_options,
Message_properties => message_properties,
Payload => message,
Msgid => message_handle);
END;
END;
-ChristerThanks for the answer. I managed to set the Correlation id and retrieve it using getJMSCorrelationID(). But I did not manage to use the MessageSelector on it. I have used the Topicbrowser which is not part of the JMS standard? I tried to enqueue the messages using Java too and tried to use the topicbrowser on both JMSCorrelationID and user defined properties withou success. Is there some special requirements of the TopicBrowser?
Enumeration messages;
oracle.jms.TopicBrowser browser =tsess.createBrowser(topic, "TS", "JMSCorrelationID = 'TST'");
int count = 0;
messages = browser.getEnumeration();
if(messages.hasMoreElements())
System.out.println("message"); //never executed
dtxtmsg = (TextMessage)(tsub1.receiveNoWait()) ; //returns a message
String corrID = dtxtmsg.getJMSCorrelationID(); //returns: TST
Thanks for your help so far...it would really save my day if you have some ideas on this too!
-Christer -
Set "E" for V1801 Message: Pricing error: Mandatory condition ZR01 missing
Dear All,
I want to set below error message to appear as ERROR.
Right now this message appear as a GREEN Color message. Therefore user can save the sales order without pricing.
My requirement is to BLOCK the user from entering a sales order in to the system without pricing. (Not even a incomplete order)
Message
Pricing error: Mandatory condition ZR01 is missing
Message no. V1801
Please note I have done following configurations.
- I have set ZR01 condition as MANDATORY in my pricing procedure. - B'se it's the price for the material
- I have set "Manual Entry not possible" for this condition type - Price should always pick from VK11, User should not be able to enter manually.
If Price is not there, user should not be able to create a SO.
NOTE:
In the transaction OVAH, I cant see this message no to set as E.
even in SE91, I don't see a place to set the message type.
Is there any other way to set this message as "E" & to prevent user from entering a SO to the system without price???
Appreciate your help !Dear Senya,
Your suggestion works really fine with me.
It didn't make that message an ERROR message type. But it prevents user saving any incomplete document, where in my case it's pricing. So user has to complete the pricing in order to save it.
Thanks a lot for the help !
All others, thanks a lot for your suggestions !!!
Edited by: Anupa Wijesinghe on Aug 10, 2009 6:41 AM -
Info Record Flagged for deletion
Dear Friends,
I am not sure if should raise this question in MM or PS area as error message is related to MM and occurring into PS area.
Issue Description In my company (building construction) we create Project/Network which would have hundreds of activities. Each network activity will have some component (materials). At component it contains info like Material number, Purchase Org, Vendor, Info record etc. Under clean up process info record is flagged for deletion because we donu2019t buy the component from that vendor any more then procurement dept flag that info record and create a new info record with the new vendor.
If we try to update any data through either CJ20N or CN22 it gives error message u201CInfo record flagged for deletionu201D , message number is CN 766 and it doesnu2019t allow to save the project or network as this message is set with category u201CErroru201D. This is quite annoying for the business users.
Requirement I want to know about u201CHow to make this error message informationalu201D??
My effort to find the solution I tried to use transaction OBA5, OBMSG through which we can change the configuration so that message will be only informational, but the issue is that I couldnu2019t find the application area CN with Message number 766.
It would be a great help if any one of you could suggest me a possible solution for this issue.
Regards,
SunnyPurpose of deletion flag is not to control which vendor is a valid source of supply in relation to one material. It is in connection with archiving process....
In info record (ME12 --> "Purch. Org. Data 1.") you can set "Available from" (EINA-LIFAB) and "Available to" (EINA-LIFBI) in "Supply Option" section. Message 06681 belongs to it which can be controlled in:
SPRO > Materials Management > Purchasing > Environment Data > Define Attributes of System Messages
Please consider this option...(you can also use source list (ME01) but it is too strict control in my opinion) -
Programati​cally set flags in a DIAdem View
Is there a command to set flags for a 2D axis system in a view? I would like to automate the process of setting flags for a curve, copying the points, and creating a report with a graph of the copied data and a table of that data. I can do the report I just need to be able to set the flags prgramatically once the users sets the band cursors where he/she wants.
Thanks,
AJLHi AJL,
Currently it is not possible to set VIEW flags via script. But, if your customer has selected the band width you know all necessary parameters.
View.ActiveSheet.Cursor.X1
View.ActiveSheet.Cursor.X2
With pno you can determine the row in a data channel with contents closest to a given value. Example:
iRowStart = pno(NameOfXChannel, View.ActiveSheet.Cursor.X1)
iRowStop = pno(NameOfXChannel, View.ActiveSheet.Cursor.X2)
Then you can use DataBlCopy to copy the selected area.
Greetings
Walter -
Messaging Problem with Both Sims in Asha 200
I have set SIM1 for sending messages but usually it happens that when i send message it gets sending by SIM2, what's the issue and if its by Nokia so i request please provide the fix in next SW update.
The error appears to come from the ariba code. I suggest asking them.
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at ariba.j2ee.weblogic.Properties.initialize(Properties.java:53) -
Firefox sync is not syncing my bookmarks across computers I have set up for firefox sync,
Firefox sync is not syncing my bookmarks across computers I have set up for firefox sync
Same problem here... First i had to update my firefox to the shittest new version which i hate... The more firefox desktop updates the worse it gets. I'm still using firefox 28 cause its the best version ever...
Anyways so i updated my fiefox to latest 32 something version and installed firefox beta on android. It syncs everything except passwords. And no, i do not use the master password its always disabled!
Can somebody tell me how to sync the passwords from firefox desktop to android on latest version and perhaps maybe on firefox 28 to if thats still possible?
I can only say that syncing doesn't work for me on the latest firefox 32 and android beta firefox! -
Hi,
I am having a problem with my IMAP accounts. Everything has been running fine for months and then i needed to redo all my accounts and when i redid the settings I no longer have the little globe icons for my IMAP accounts. Now all the folders that are stored on my server drop down from the inbox and therefore the drafts, trash, sent etc. don't sync any longer.
This is what I have tried. I already did the "Use this mailbox for..." option, and i have redone the mailboxes several times (just incase I set something up wrong). This is driving me crazy.
Previously all my stored mailboxes appeared at the bottoms of the left hand colum with tne @ globe symbol. Someone help please.
RNY
Ibook G4 Mac OS X (10.4.4)Hi Bill,
This was a good point, about calling setFlags method on the wrong message.
The problem is because, we are dealing with Exchange bug described here:
BODYSTRUCTURE with "multipart" "signed" not parsing
and using workaround described here:
http://www.oracle.com/technetwork/java/faq-135477.html#imapserverbug
However, we were setting flags on message created using following code
SharedByteArrayInputStream bis = new SharedByteArrayInputStream(bos.toByteArray());
MimeMessage cmsg = new MimeMessage(session, bis);not on original message from the mailbox.
Regards -
Question on - GWIA - Relay Host for outbound messages setting
We are being forced to use a "centralized" message relay host due to
State mandates. So . . . most everything is working except messages
sent to comcast.net. For some reason the GWIA is trying to communicate
directly with comcast.net (76.96.62.116). Here is my configuration
(all my GW systems are GW 7.0.3 lastest service patch, NW6.5SP8 server):
PO - on its own server
PO MTA - on its own server
GWIA MTA and GWIA - on their own server
GWIA is configured to use "Relay Host for outbound messages:" -
domain.com
The following is from my GWIA Log showing where I sent a message to my
comcast and hotmail e-mail accounts. For some reason, the GWIA is
trying to send my comcast.net addressed message directly to comcast
server instead of relaying thourgh my relay host. Is there some
setting or config file I need to look at to see how this is
happening?????
14:24:21 3EA MSG 626 File:
GWIA/VOL1:\MBCWEB\WPGATE\GWIA\wpcsout\gwi2e63\4\4C2DF69 5.000 Message
Id: (4C2DF68F.1FC:166:8140) Size: 0
14:24:21 3EA MSG 626 Sender: [email protected]
14:24:21 3EA MSG 626 Converting message to MIME:
MEDBD06/VOL1:\MBCWEB\WPGATE\GWIA\send\xc2df695.141
14:24:21 3EA MSG 626 Recipient: [email protected]
14:24:21 3EA MSG 626 Queuing message to daemon:
GWIA/VOL1:\MBCWEB\WPGATE\GWIA\send\sc2df695.141
14:24:21 3EA MSG 626 Converting message to MIME:
GWIA/VOL1:\MBCWEB\WPGATE\GWIA\send\xc2df695.142
14:24:21 3EA MSG 626 Recipient: [email protected]
14:24:21 3EA MSG 626 Queuing message to daemon:
GWIA/VOL1:\MBCWEB\WPGATE\GWIA\send\sc2df695.142
14:24:21 3E0 DMN: MSG 627 Sending file:
GWIA/VOL1:\MBCWEB\WPGATE\GWIA\send\pc2df695.141
14:24:21 3E0 DMN: MSG 627 Attempting to connect to 76.96.62.116
14:24:22 3FC DMN: MSG 628 Sending file:
GWIA/VOL1:\MBCWEB\WPGATE\GWIA\send\pc2df695.142
14:24:22 3FC DMN: MSG 628 Attempting to connect to domain.com
14:24:22 3FC DMN: MSG 628 Connected to XXX.XX.XXX.XX
14:24:22 3FC DMN: MSG 628 Transferred
14:24:22 3FC DMN: MSG 628 SMTP session ended: [XXX.XX.XXX.XX]
(domain.com)Chris,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
Can't save location for Trash at Server Settings (IMAP setting).
Hi,
I'd like to set a folder (one under an account name) to move messages to when deleting messages with IMAP.
I can't select Trash under an account name at Server Settings. I can only select Trash under "Inbox" under the account name.
I find that the folder settting was not saved at all. Folders settings for sent messages and drafts are OK.
How can I save a folder setting (one under an account name) for deleted messages ?
I guess this situation results to 2 Trashes (one under the account name and oner under "Inbox" under the account name). In fact, I have a trouble deleting Trash under "Inbox" under the account name.
Thanks in advance for any advices or clues for the solution or workaround.(addition to the question)
To be exact, folder selection pull-down menu doesn't start with the account name, rather, start with "Inbox", therefore, I can only choose Trash under "Inbox". -
Cannot set deletion flag for order
Dear Experts,
I am trying to set deletion flag for order XXXX,
i am getting Error Massage " You cannot set deletion flag for order XXX (see log) Message no. CO432"
my order status is REL CNF DLV PRC GMPS MACM OPGN SETC
How can i set deletion flag for order.....
Please give your suggestion.
Thanks for support.......Dear,
Order status is REL CNF DLV PRC GMPS MACM OPGN SETC
And, I have checked log u201CThere are no entries in the deletion flag logu201D
There no balance- I have not done any confirmation (Total Qty 1000 EA, Delivered Qty 0 EA)
You have done confirmation and delivery has happened thats why the status shows "CNF & DLV" You need to complete your settlement.
Check and revert back.
Regards,
Alok Tiwari -
Set the Unicode check flag for all programs.
Hello friends,
We are now upgrading our ecc6 system to unicode. The problem is that all our programs
are not flaged for unicode checks and there for have syntax errors. I now how to mark
this flag for a single program but how can I do it to all programs?
I realy need your help.
Thanks in advance,
Gershon.Hi Gershon,
In general, transaction UCCHECK is designed to cover all Unicode adaptations needed. The guide called
u201CRequirements of ABAP Programs in Unicode Systemsu201D, which can be found via:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b02d3594-ae48-2a10-83a7-89d369b708e5
gives customers a comprehensive description of possible errors. Please also have a look at the docu provided directly in transaction UCCHECK. In addition, SAP notes 1322715 (search for UCCHECK) and 1319517 (point 8.) might be helpful.
Please note that customer programs have to be adapted - simply setting the Unicode flag works only for the objects with a green traffic light in UCCHECK .
Best regards,
Nils Buerckel
SAP AG
Maybe you are looking for
-
Files opening in unreadable code need help urgently please
When I was given my new Toshiba laptop as a gift in 2007 Microsoft Office with Word and Excel etc were already set up so I do not have any discs or keycodes. .Being a senior person, it is also possible that my son who gifted it to me may have install
-
Can I connect my Lacie Space II - 2 Tb to an Apple TV and stream my movies in the LaCie to my TV through the Apple TV? I would really like to have an apple TV to stream from and use also as media player in replacement of mt PC. Is this possible? Than
-
Captivate 7 will not open in Windows 7
I have recently installed Capt7 however it doesnt start properly. I run the program in administrator, it starts and runs through the preparation screens, launches a new window (blank) and then closes down without any warning messages. Windows 7 ultim
-
Is it possible to call CF functions dymanically?
Is it possible to call a ColdFusion function dynamically? For example you might have a date variable: myDate that you want to apply a ColdFusion date function to. However, the function itself needs to be dynamic because you might want to call "dateFo
-
Want a relatively inexpensive enclosure to put a spare SATA drive in to serve as backup plus misc. Would probably partition it. I know that I could put it in the Mac Pro to that end but would prefer to have independence of Power Supply and motherboar