I'm doing a SEARCH with "HEADER In-Reply-To <rfc822_msg_id>" to get a message's replies. I'm not sure how to verify it, but I'm guessing maybe it's happening for emails that have a *lot* of replies already? It's only happening on a couple of emails.
Would you know if it's possible to only get 1 message from the SEARCH? I only need one. And I don't need the messages' bodies either. So if it's possible to limit the response, maybe that will help with the issue. Also, would doing multiple requests to the same IMAP server simultaneously have any undesirable results? Thanks, John On Thursday, October 24, 2013 2:25:03 PM UTC+8, Vinny P wrote: > > On Wed, Oct 23, 2013 at 8:39 PM, John Del Rosario > <[email protected]<javascript:> > > wrote: > >> but my tasks are failing due to the 60 second limit on urlfetch. >> >> I've tried setting urlfetch.set_default_fetch_deadline(600), but it >> doesn't seem to do anything. >> >> File >> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/remote_socket/_remote_socket.py", >> line 864, in recv >> >> > > This is not a URLFetch problem. IMAPlib doesn't connect via HTTP (which > URLFetch handles), it connects via IMAPS port 993. This means that the > failure is in the sockets API. Notice that the stack trace makes reference > to sockets, not urlfetch. You need to tell the socket to stay open > longer. I don't believe imaplib supplies an easy way to increase the socket > timeout, so you may need to dig into imaplib source and increase the > timeout there. > > What IMAP operations are you calling that takes 60+ seconds for the server > to respond? I have a Java application that connects to Gmail via IMAP and > other external mail servers via POP3, and I have always received fast > responses. > > > > ----------------- > -Vinny P > Technology & Media Advisor > Chicago, IL > > App Engine Code Samples: http://www.learntogoogleit.com > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
