Javamail adding some default properties for IMAP protocol

Hi,
I'm using Javamail API 1.4.2 to read emails using IMAPS and POP3S. It looks like Javamail API adding some properties by default.Though I'm using the IMAPS to get mail store it's adding some plain imap related properties like mail.imap.fetchsize, mail.imap.statuscachetimeout, mail.imap.appendbuffersize and mail.imap.minidletime+.
see the debug trace below:
DEBUG: setDebug: JavaMail version 1.4.2
DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
DEBUG: mail.imap.fetchsize: 16384
DEBUG: mail.imap.statuscachetimeout: 1000
DEBUG: mail.imap.appendbuffersize: -1
DEBUG: mail.imap.minidletime: 10
DEBUG: trying to connect to host "myhost", port 993, isSSL true
* OK The Microsoft Exchange IMAP4 service is ready.
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI IDLE NAMESPACE LITERAL+
A0 OK CAPABILITY completed.
IMAP DEBUG: AUTH: NTLM
IMAP DEBUG: AUTH: GSSAPI
DEBUG: protocolConnect login, host=myhost, user=myuser, password=<non-null>
A1 LOGIN myuser password
A1 OK LOGIN completed.
A2 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI IDLE NAMESPACE LITERAL+
A2 OK CAPABILITY completed.
IMAP DEBUG: AUTH: NTLM
IMAP DEBUG: AUTH: GSSAPI
DEBUG: connection available -- size: 1
A3 SELECT INBOX
* 0 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags
* OK [UIDVALIDITY 184] UIDVALIDITY value
* OK [UIDNEXT 13] The next unique identifier value
A3 OK [READ-WRITE] SELECT completed.
I have tried Jamail API 1.4.3 but the result is same. I think the protocols for IMAPS should be *mail.imaps.fetchsize, mail.imaps.statuscachetimeout,
mail.imaps.appendbuffersize* and mail.imaps.minidletime+.
Here is the code I have used to get the store
public static Store getMailStore(String protocol, String emailServerHostName,
int portNumber, String userName, String password) throws MessagingException {
Store store;
Properties props = new Properties();
boolean isSessionDebugEnabled = false;
props.put("mail.host", emailServerHostName);
props.put("mail.port", portNumber);
props.put("mail.user", userName);
props.put("mail.store.protocol", protocol);
Session session = Session.getDefaultInstance(props, null);
session.setDebug(true);
store.connect(emailServerHostName, portNumber, userName, password);
return store;
public static void main(String[] args) {
Store store = null;
try {
store = getMailStore("imaps", "myhost", 993, "myuser", "password");
Folder inboxFolder = openFolderForRW(store, "INBOX");
} catch (MessagingException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
Am I need to add these properties manually for IMAPS?
Thanks,
PrasadKT

It's just laziness in the code that prints out the debug information.
It's using the correct property, but the debug output hardwires the
property name. Yes, I should clean it up...

Similar Messages

  • Acrobat pro: how set default properties for arrow and line tool seperately?

    I have a problem with the 'comment and markup' tools in Adobe Acrobat Pro.
    I would like to change the defaults of some of the tools, eg the arrow and the line tool.
    This can be achieved by right-clicking on something drawn using the tool in question and then selecting 'properties' - or by selecting the tool and then press ctrl+E, wich opens a 'Callout Tool Properties', and then change what you want there. The latter option keeps the changes as defaults - the former offers a box to tick in the 'properties' dialogue that opens - or, you can right-click on the object again after having changed the properties, and then select 'Make Current Properties Default'.
    My Problem is now, that, apparently, you cannot choose and save default properties freely and for each tool. I woul like to have the default properties for the line tool set as the following:
    -line color: yellow
    -line thickness: 8pt
    -opacity: 60%
    and fot the arrow tool as this:
    -line color: red
    -line thickness: 1pt
    -opacity: 100%
    This all works fine as long as the program is open. As soon as I exit and start it again opening another document /the same one again, the arrow tool changes to
    -line color: yellow
    -opacity: 60%
    only the line thickness remains at 1pt.
    If I change the properties of the line to the ones I want for the arrow, the arrow properties remain unaltered if I close Acrobat Pro.
    Why do these properties interfere? Why is it "line color/thickness" in both? Why, then, do only the opacity and the color interfere, but not the thickness - even if it's the latter two properties that are bot called "line xxx"? Why does Acrobat not save all properties for these two shapes seperately - even IF the two shapes are both of a line-like kind?
    Is there a way to get around this?

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • EVS  , change some default properties

    Hi ,
    I am using EVS for input filed .
    I want to change some default properties  , like :
    1. The EVS arrange the results in 6 values every page , i want to decide  how many results each page .
    2. The EVS display 2 columns , the setFieldLabel () method, set the lable of the "key" column.
    Which method change the lable of the  description field ( I already tried : setDescription && setColumnLabel ) ?
    Thanks ,
    F.F

    Hi FF
    Please go through these links
    Re: Extended Value Selector
    /people/valery.silaev/blog/2006/03/10/minus-evs-plus-ovs-value-help-smart-input
    Re: Extended Value Selector
    regards
    kalyan

  • How do I change the default properties for Replace(Ins)?

    Acrobat Pro X
    Comment tools: Annotations
    All tool icons EXCEPT Replace(Ins) show "Tool Default Properties" as an option when right-clicked.  When I right-click a particular replacement in the document and select "Properties," there is no option to set current as default.
    So, how do I change the default properties for this annotation tool?  I need to change the Author and the color.
    Thanks,
    Nancy

    Create customized controls for your graphs and controls and setup your favorite attributes .
    Use your custom controls instead of the canned controls.
    Do a search on UI and you will find a community that already created custom controls.
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA

  • Set default properties for Tools Content Modification Add Text?

    I'm running a French version of Adobe Acrobat XI version 11.0.0.
    I'm not enquiring about or alluding to the other tool that can be employed for adding text: Sign > Add Text.
    For instance, I'd like to change the default font, font size, font color, etc.
    Here's a picture:

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • Receive multipart message for IMAP  protocol

    I need receive content of multipart (not plain text) message with IMAP protocol.
    this code correct for POP3 and IMAP paintext message only:
    Part messagePart=message;
    Object content=messagePart.getContent();
    if (content instanceof Multipart) {
    messagePart=((Multipart)content).getBodyPart(0);
    System.out.println("[ Multipart Message ]");
    String contentType=messagePart.getContentType();
    System.out.println("CONTENT:"+contentType);
    if (contentType.startsWith("text/plain")
    || contentType.startsWith("text/html")) {
    InputStream is = messagePart.getInputStream();
    BufferedReader reader
    =new BufferedReader(new InputStreamReader(is));
    String thisLine=reader.readLine();
    while (thisLine!=null) {
    System.out.println(thisLine);
    thisLine=reader.readLine();
    any ideas?
    Thanks.

    You will find a better example, which looks at the parts recursively, if you look in the "demo" directory of your JavaMail download. I think it's msgshow.java but there aren't that many to choose from.

  • Adding some new fields for display in SAP Query

    I need to add some fields for display in SAP query  01 of  infoset /SAPQUERY/AM01. So I have changed the infoset by checking the additional fields which is already in LDB. Then I created the query by copying the 01 of  infoset /SAPQUERY/AM01 to Zusergroup with reference to the same infoset. In the newly created query, I am just checking the newly added field in Basic list. If I generate the program for this query, I get a error.
    Pls let me know how should I rectify this.
    Regards,
    Jeyananth

    Hi,
    Before generating the query, adjust the query from the menu of SQ01
    Thanks
    Shiva

  • Set default value for product type

    I want to set default value in product type drop  down box
    in component PRD01QR.
    view  SearchHelp.
    I tried with setter and getter , but not working
    they are using query string.

    Hi,
    You can achieve this by redefining the method GET_VH_PRODUCT_TYPE() in IMPL class of searchHelp view. Just copy paste the implementation of this method from super class and now control the internal table as per your requirement like
    comment out the line       APPEND INITIAL LINE TO lt_ddlb. (line no: 47)
    as it will add an empty line at the starting of internal of product type values which you dont want. In you case there should be some default value for product type field, so arrange the inetrnal table values according to you requirement and what ever value you want to default for product type that should be the first value in the drop down without empty line and add an empty line at the end of the internal table.
    No need to call super->GET_VH_PRODUCT_TYPE() in your implementation as you have written all the required code in your implemenation itself.
    Hope this would help you!
    Regards,
    Ajay

  • Adding fields in pa30 for IT 170

    hi
    i have added some custom  fields for infotype 170 in se11.now i want to see those fields in pa30 for that infotype 170(when i use it for a pernr in the display screen). how can i do that.
    any help in this regard wud be appreciated.
    thanks

    Hello Alan,
    Following are the steps from this Enhancement in infotype 0006
    Go to Tcode PM01, select the third tab frm left ie. enhance infotypes. Select CI include and press Create.
    Enter all the fields you want over here and then activate . Then come out and then select the module pool option there u get a bunch of includes
    INCLUDE ZP000610.(Global Data)
    INCLUDE MPPDAT00.
    INCLUDE FP50PPSB.
    INCLUDE MPPERS00.
    INCLUDE ZP000620.(PBO module)
    INCLUDE ZP000630.(PAI module)
    INCLUDE ZP000640.(form routines)
    You put in the code in the zp includes, activate come out and then select the third option in the check box ie.include screen.Customize the screen then after u come out there is a assign enhancement button on top, there u need to assign the program name like zp000600 and screen 0200 to the standard one.
    Regards,
    Ahmad

  • Setting default values for a column

    Hi,
    I have a table having some default values for the columns. I am using a PreparedStatment to insert into this table. For null values I am using setNull(..) method but the default values given for the columns are not inserted for null values.
    eg: INSERT INTO TEST VALUES(?,?);
    where TEST table contains two columns col1 and col2 with default values 'AA' and 'BB' respectively. My requirement is to make sure that when null values are specified for the columns then the database default should be picked up. using setNull(..) method doesn't help.
    Thanks in advance.
    Gyan

    Default value for a column can be picked up from DatabaseMetaData class.
    The below snippet shows that: -
    DatabaseMetaData metaData = connection.getMetaData();
    ResultSet resultSet = metaData.getColumns(null, null, "TEST", "COL%");
    while ( resultSet.next() )
    String defaultValue = resultSet.getString("COLUMN_DEF");
    String datatype = resultSet.getString("DATA_TYPE");
    System.out.println("defaultValue = " + defaultValue);
    System.out.println("datatype = " + datatype);
    }

  • How to change properties for some controls in runtime ?

    hi,
    I would like to change some of the properties for some controls in front panel in runtime. Number of control properties I want to change is depending of a log file user opens in final application.
    I attach an example where I'm trying to change the visibility of numeric controls. Problem I have I don't know which reference to connect to property node in case the control in for loop is not a numeric control. The example relies to label.text property but I could use the more generic classname property as well.  
    regards,
    petri
    Solved!
    Go to Solution.
    Attachments:
    dynamic reference.vi ‏11 KB

    pcardinale wrote:
    Initially, a control has no caption.  It's not just that the caption string is empty and the caption not visible, but the caption object does not exist.
    I think this should probably be changed in future versions, because even if each control had a caption, it would still be a negligible small part of the VI. The current behavior made sense many years ago where HD and memory space was very precious. Not any more!
    This issue comes up often enough that it warrants addressing the root of the problem.
    It is hard to convince the casual that the caption does not exist if he can simply do a "show caption" at edit time and it will show in all glory, even with the default set to the current label. It is confusing!
    There is even an idea about this that seems worth supporting (also read the link in the discussion).
    What do you think?
    LabVIEW Champion . Do more with less code and in less time .

  • What are the default values for the NetStream.multicast***** properties

    I read the api document about NetStream.multicast**** properties, but found no default values were given. Will the default values be changed when FP10.1 release?? Or, the values are always changing at runtime?
    I have a web-tv application, it broadcast some live videos created by my friends, I think that the latency and lag-time can be bigger in my app, I want to know the recommended default values for the multicast*** properties.
    I think the multicastWindowDuration and liveDelay are the keys. And I am confused between NetStreammulticastWindowDuration and NetStream.bufferTime..they like the same...
    Sorry for my poor english, Thanks.

    the publisher can set the multicast properties you listed to be the defaults for all of the subscribers of the stream.  in addition, the publisher can select whether or not "push" mode is used by changing NetStream.multicastPushNeighborLimit.  setting the limit to 0 disables push, setting it to non-zero enables push in the mesh, but only changes the actual push neighbor limit for the publisher.  if push is enabled for the stream, each peer will use push mode, but will start out with the global default limit (which is currently 4).  this is for safety.  we recommend you always leave push enabled.
    each peer (including the publisher) can change the multicast stream parameters dynamically.  changes are local to that peer.
    for the publisher to set the initial parameters for the stream that all peers will inherit as the default, the parameters must be changed on a new NetStream *before* NetStream.publish() is called.  example:
       var ns:NetStream = new NetStream(netConnection, groupSpecification);
       ns.multicastWindowDuration = 10; // change default for everybody
       ns.publish("mystream");
       ns.multicastWindowDuration = 15; // change window duration just for publisher, everybody else will start with 10 for this stream
    each subscriber can override the multicast stream properties locally, but the overrides must be set on the NetStream *after* receiving a NetStream.MulticastStream.Reset NetStatusEvent.NET_STATUS event in order for the override to stick.  overrides must be reapplied each time the NetStream.MulticastStream.Reset event is received.

  • ALV Grid default values for new rows added with Add/Insert buttons

    Hi!
    Help, please,  to find a way how to set default values for new rows added with Add/Insert buttons in
    ALV Grid.

    I have found salution:
    ALV Grid u2013 Insert row function
    Sometimes we need to assign some default values when we create a new row in a grid using standard ALV Append row button. In our scenario we will see how to assign default values to Airline Code (CARRID), Flight Connection Number (CONNID) and Flight date (FLDATE) when a new row is created. To do that we need to handle DATA_CHANGED event in the program like mentioned below.
    Definition of a class:
    Code:
          CLASS lcl_event_receiver DEFINITION
    CLASS LCL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
    METHODS:
         handle_data_changed
         FOR EVENT data_changed OF cl_gui_alv_grid
         IMPORTING er_data_changed
                           e_ucomm.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    Implementation of a class:
    Code:
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DATA_CHANGED.
        DATA: dl_ins_row TYPE lvc_s_moce.   " Insert Row
          FIELD-SYMBOLS: <fs> TYPE table.    " Output table
    Loop at the inserted rows table and assign default values
        LOOP AT er_data_changed->mt_inserted_rows INTO dl_ins_row.
          ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
          loop at <fs> into ls_outtab.
            ls_outtab-carrid  = 'LH'.
            ls_outtab-connid  = '400'.
            ls_outtab-fldate  = sy-datum.
            MODIFY <fs> FROM ls_outtab INDEX sy-tabix.
          endloop.
        endloop.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    Register the events to trigger DATA_CHANGED event when a new row is created.
    Code:
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.

  • Mass-Update Default Print Properties for Spool Authorization (S_SPO_ACT)

    Dear Experts
    To protect HR spool requests it is possible to use the print-authorization in combination with the authorization object S_SPO_ACT.
    In case a HR user prints a form the the print-popup will default the user-parameter SAU for print-authorization. When printed like this the value of the SAU-parameter will be added to the spool request.
    In case the HR user prints a ABAP-list the value of the user-parameter SAU is not defaulted in the print popup. Instead seperatly saved defaults print properties (see print popup -> properties) are taken.
    How can I mass-change these default print properties? How can I set these default print properties for other users?
    Thanks in advance

    Please note that with SAP BASIS release later than 620, parameter id 'SAU' is either no longer used or only used in a limit fashion. The default spool authorization is now stored in cluster 'UV' instead of at 'USR05' / parid 'SAU' .
    If your users already have 'SAU' parameter populated with proper spool authorization, SAP has an ABAP util 'RSTRANSPARAMSAU' to store this in the cluster. Once you run this util, default spool authorization will
    be populated properly each time spool files are created.

  • How can I get the default value of a particular preference programatically. I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=702631&forumId=1]
    Thanks - c</blockquote>
    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How can I get the default value of a particular preference in FireFox?.
    I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.
    I see some that there are values for preferences in firefox.cs but I am not certain that these are being used as the default values for preferences. prefs.js in user's profile only has the updated values and not the default values.
    Any help towards acheiving this programtically is greatly appreciated.
    If the default values are stored in a file, kindly let me know the format in which it is stored for me to parse it programatically.
    == User Agent
    ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    Dear Friend,
    Here when you have the callableSattement as ?=proc(?), the first ? is an output parameter. So you should register it as out parameter using registeroutparameter.
    Then you can get the value from the outparameter using callablestatement.getXXX().
    Try that way.
    For free tral versions of JDBC Drivers go to www.Atinav.com

Maybe you are looking for

  • Checked-In Activities not showing in Activation View

    All, Having a bit of trouble with our NWDI that just started happening.   Normally, when we check-in an activity in the Open Activities view of the Development Configurations perspective in NWDS, we should be getting a dialog that asks whether we wan

  • M2A_DBLINK and A2M_DBLINK in oracle apps ASCP

    what is the use of the M2A_DBLINK and A2M_DBLINK. why do we use it ? how do we set up these db links and on which instance. and how do you see the data flow from ASCP2OLTP during data pull from ERP and data load to ASCP instance. Thanks & regards, Kr

  • Creative cloud does not load

    I recently installed Creative Cloud for downloading the test version of Premiere Pro. Everything was fine, it was installed without problems. But now, when I try to start Creative Cloud, the window is empty, you can just see the loading button but no

  • Won't export to camera

    I am trying to put footage back onto DV using a Canon MVX350i. I have been going to Print Video but when recording starts all I get is blue footage on the camera. Any ideas? Thanks

  • Set TonerSaveMode=On as default printing preference, drag drop PDF to dock

    Printing large number of PDF documents by dragging and dropping them to the printer dock icon causes the documents to be printed with default settings (TonerSaveMode=Off) according to (com.apple.print.custompresets.forprinter.BrotherMFC7840W.plist, c