Menu

Message from the developer

Help
AdamS
2010-06-11
2013-04-29
1 2 > >> (Page 1 of 2)
  • AdamS

    AdamS - 2010-06-11

    If you are struggling to get IMAP ID Proxy to work please leave a message here and I will do my best to help.

     
  • Jon Lonny

    Jon Lonny - 2010-06-14

    Hi, I get this with Mac Mail:

    The server error encountered was: The connection to the server “127.0.0.1” on port 9143 timed out.

    Here is the log:

    Jun 14, 2010 11:08:33 AM imapIdProxy.Main main
    INFO: IMAP ID Proxy started, listening on port 9143
    Jun 14, 2010 11:09:26 AM imapIdProxy.Main$ServerThread <init>
    INFO: Opened connection to imap.mail.yahoo.com:993
    Jun 14, 2010 11:09:26 AM imapIdProxy.Main$ServerThread run
    FINER: Server: * OK IMAP4rev1 server ready (3.5.62.7)

     
  • AdamS

    AdamS - 2010-06-14

    Hi jonlonny
    Thanks for trying the software out.   I've never tried the proxy with Mac Mail, so it may need a quick fix….

    Please can you edit ImapIdProxy.Properties and add a line
    Debug  = TRUE

    Then the log will contain every message that is sent.
    *****PLEASE EDIT OUT YOUR ACCOUNT AND PASSWORD :-) *****

    If it's a huge file, then we'll figure out a way you can send me a file.

    Cheers
    Adam

     
  • tcejones

    tcejones - 2010-07-02

    Hi,

    I have 3 questions.

    1. The proxy loaded when I did "open with" Java against the the jar file in explorer but when I tried to use the javaw line command it complained about a main class not being found.  Any idea what the problem is? 

    2. Could you give me an example of how to configure the properties file to use a secure connection please?  Is it just by selecting the 993 port or is that the default?  If I uncomment the Yahoo lines, will that give me a secure connection?

    3. Could you tell me the best was of autostarting the proxy please (I'm using XP currently)?

    Many thanks for providing this facility.  It's going to be really useful.  I was almost tempted to move to Gmail but like the facilities Yahoo provides and I hate the Gmail grouping by subject.  So this makes life much easier.

    Many thanks.

     
  • Anonymous

    Anonymous - 2010-07-11

    Hi, thanks for this project. I've used on Linux to login to my Yahoo account, but it hangs on a large INBOX folder. Small folders are fine.

    The end of the log is:

    * 413 FETCH (FLAGS (\Seen) UID 6128)
    * 414 FETCH (FLAGS (\

    Yes, truncated like that. netstat -at shows that there are incoming bytes unread on the socket:

    tcp    15164      0 linux:36557               imap.mail.vip.ac4:imaps ESTABLISHED

    A program bug not reading all available bytes? Where is the source? I'd be happy to take a look myself, I know Java.

     
  • AdamS

    AdamS - 2010-07-11

    To greenpossum
    Thanks for the offer to debug, much appreciated.  My Yahoo mailbox is fairly small, but I did see a hang once then it went away when I tried to debug.

    The source is available through SourceForge at http://imapidproxy.svn.sourceforge.net/viewvc/imapidproxy/trunk/.  (You can navigate to it from the links at the top under the title "IMAP ID Proxy": Summary, Files, …, Code.  Click on that, then SVN Browse.)

    Let me know how you get on,
    Regards
    Adam

     
  • AdamS

    AdamS - 2010-07-11

    To tcejones
    Thanks for trying the project out.  I've tried my best to answer your questions.

    1) I think what's happening here is that XP is "helpfully" deciding that a jar file should be opened using "javaw ImapIdProxy.jar", whereas in fact it should be "javaw -jar ImapIdProxy.jar".  It would be possible to configure XP to fix that, but I think a better way is as suggested by your 3rd question.

    2) For v0.2 and above, the default config gives you a secure connection to Yahoo, so no need to edit anything.

    3) For Windows (XP, Vista, 7) you can make a shortcut to start the proxy.  If you make the shortcut in your "Startup" directory, then the proxy will start when you start Windows.  This is a 1 minute task if you know how, but if you've never done it before it might seem more complex:-) 

    The exact instructions will vary depending on your Windows version, and how you have configured Windows Explorer.  I'll try point you in the right direction, but try googling or ask me again if you get stuck.
    - Right click on the "Start" button and click "Open".
    - Double-click on "Programs", then "Startup".
    - Right click some blank space on the right-hand side, then click "New" -> "Shortcut".
    - Type in this (but change the path to point at where you downloaded the file to):
    javaw -jar "c:\Program Files\ImapIdProxy\ImapIdProxy.jar
    - Pick whatever name you like, select OK.
    - Right click on your new shortcut and select properties.
    - Change "Start in" to the directory you downloaded to.
    c:\Program Files\ImapIdProxy\

    I'll see if I can make this a bit easier in future versions.

    Regards
    Adam

     
  • Anonymous

    Anonymous - 2010-07-12

    The problem with the proxy hanging on large folders is a program logic error. In line 213, you only handle one half of the bidirectional connection. You also need to copy bytes in the other direction. It's not always the case that all the bytes from the server have been received in the previous calls of readBytes(). As netstat showed, there is data from the server that is unconsumed.

    You really need to check both the socket from the server and the socket from the client to see if there is more data available and to copy the data over to the other side. Unfortunately this requires a large rewrite of the program, something I don't have the time to undertake for you. Either you need to use non-blocking I/O in conjunction with polling, or to use two threads, one for each data direction.

     
  • AdamS

    AdamS - 2010-07-12

    To greenpossum
    Thanks for your time.  I fixed the code to use two threads and committed new source code. I'll publish a new release in a few days, but if you get a chance to test in the meantime to prove the bug is fixed that would be most helpful.

    (FYI I had hoped that the "request/response" nature of IMAP might allow me to get away with just one thread, but the problem is that isAvailable can return false part way through a response if there is a small delay in the traffic stream.)

    Regards
    Adam

     
  • Anonymous

    Anonymous - 2010-07-12

    Yes, I've just used it to access my INBOX containing > 800 messages. A bit slow at collecting the headers, but it all came across. Thanks. Maybe you could increase the buffer size from 1000 bytes to reduce the number of read calls.

     
  • AdamS

    AdamS - 2010-07-12

    To greenpossum
    Thanks.  Buffer size increased as suggested.
    Adam

     
  • Derek Hoiem

    Derek Hoiem - 2010-07-14

    Wow.  The new version works great.  I did get a bunch of Growl messages (server disconnected) the first time I hit a folder that had 990 messages in it.  However, it seemed to eventually grind through them all.  Working well right now in Thunderbird on Mac OS X 10.6.4.

     
  • Anonymous

    Anonymous - 2010-07-28

    It's working pretty well so far for me with Mac OS X 10.6.4 and Mail.app. It asks me every now and again for my password saying that the proxy rejected it but then carries on working. Downloading folders full of emails (10 years worth on my account) takes a little while and is a little unstable but it seems to carry on from where it left off on the whole.

    Adam, I've emailed you to ask if you need my help in testing or anything. Let me know if you do. :)

     
  • AdamS

    AdamS - 2010-07-30

    To #13 "https://www.google.com/accounts"
    Great news that it works with Mail.app.  I'm not a Mac user, but I guess that is the same thing as when the other guy talked about "Mac Mail".

    "A little unstable with large folders" seems like a fair summary of the current status.  If you are willing to spend some time trying to improve that, then great thanks, we could give it a go.  I've no idea what your knowledge level is.  Very briefly I guess I'd like to see the debug log of any errors, especially those that you can reproduce consistently.

    To get debug log you need to edit ImapIdProxy.Properties and remove the # from the start of the "Debug" line.  Then pick out the relevant bits (excluding your account name and password).

    I'm not very familiar with SourceForge, but hopefully there is some way you can send me a personal message, and we can then send each other emails.

    Regards
    Adam

     
  • Paul Sheldon

    Paul Sheldon - 2010-07-31

    I'm a W7 user of Thunderbird 3.1.1. After updating TB to 3.1.1 I downloaded IMAP ID Proxy, unzipped to a file and executed the Java command without complaint. Then went to TB and altered the server setting for server name localhost with port 9143 and no connection security. I then sent a test message to that account and in TB requested Get Messages. The response is an Alert Box with: "An error occurred with the POP3 mail server. Mail server localhost responded: " no further information provided. I can send the log file if this helps. Doesn't look like TB is communicating with the proxy. Should I have removed some of the comments from properties file? What next?
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main main
    INFO: IMAP ID Proxy
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main main
    INFO: STARTED
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main readConfig
    INFO: CONFIGURATION
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main readConfig
    INFO: Target server: imap.mail.yahoo.com
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main readConfig
    INFO: Target port: 993
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main readConfig
    INFO: ID to send: "GUID" "1"
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main readConfig
    INFO: Secure: true
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main readConfig
    INFO: Debug: false
    Jul 31, 2010 11:26:32 AM imapIdProxy.Main readConfig
    INFO: Listen port: 9143
    Jul 31, 2010 11:26:33 AM imapIdProxy.Main main
    INFO: LISTENING for new connections
    Jul 31, 2010 11:28:48 AM imapIdProxy.Main$ServerThread <init>
    INFO: New connection
    Jul 31, 2010 11:28:48 AM imapIdProxy.Main$ServerThread run
    INFO: Sending ID: 7777 id ("GUID" "1")

    Jul 31, 2010 11:29:03 AM imapIdProxy.Main$ServerThread <init>
    INFO: New connection
    Jul 31, 2010 11:29:04 AM imapIdProxy.Main$ServerThread run
    INFO: Sending ID: 7777 id ("GUID" "1")

    Jul 31, 2010 11:35:48 AM imapIdProxy.Main$ServerThread <init>
    INFO: New connection
    Jul 31, 2010 11:35:49 AM imapIdProxy.Main$ServerThread run
    INFO: Sending ID: 7777 id ("GUID" "1")

    Jul 31, 2010 11:43:50 AM imapIdProxy.Main$ServerThread <init>
    INFO: New connection
    Jul 31, 2010 11:43:50 AM imapIdProxy.Main$ServerThread run
    INFO: Sending ID: 7777 id ("GUID" "1")

     
  • Anonymous

    Anonymous - 2010-07-31

    phshldn: That sounds like you have set that account in TB to talk to a POP3 server. You should set it to talk to an IMAP server.

     
  • Anonymous

    Anonymous - 2010-07-31

    Re: disconnections and reconnections with the Yahoo server, I've seen those also, although the mail client generally recovers. It seems that the Yahoo server is prone to disconnect rather quickly. Maybe it might be possible for the proxy to send some keepalive commands during long fetches to reduce the number of reconnects and relogins.

    I've also noticed that the Yahoo server also sends some non-standard replies. I'm not sure if anything can be done about those.

     
  • Paul Sheldon

    Paul Sheldon - 2010-08-02

    Well, when I went to set up the account TB insisted on specifying POP3 server. I was under the impression that POP3 to the localhost location would be alright as the Imap Proxy specified the imap.mail.yahoo.com server in the properties file (once one removes the #'s). What have I missed?

     
  • Phil

    Phil - 2010-08-03

    Hi, I'm 'https://www.google.com/accounts' above. For some reason logging in with Google Accounts gave me a silly username and it also didn't email me when this thread was updated as I requested, hence my lack of reply so far. I tried sending you an email through Sourceforge last week but I'm guessing it didn't get through.

    I've been using the proxy for nearly a week now on my desktop computer for nearly a week now and it's been superb. I've got it set up to run on an old iMac that I use as a webcam security monitor and my Mac Pro accesses the proxy on this.

    It was a little buggy asking for passwords every now and again at the beginning but that was only while it was trying to download all of my emails (about 17000 emails in 15 folders). Once all the emails were downloaded it has worked pretty much without issue. I think I've only had to type my password in once all week.

    I can certainly help you with debug logs. I'm about to get it set up on my MacBook Pro too. I had it working before but haven't downloaded all my emails yet and I want the script to run hidden in the background ideally.

     
  • Paul Sheldon

    Paul Sheldon - 2010-08-03

    When TB starts, I get a "Could not connect to server localhost; the connection was refused". Some really basic questions:
    (1) Does one need to manually create the account in TB to force the server (to localhost) to be IMAP instead of the POP3 that TB wants to default to for Y!Mail?
    (1a) Does it matter what order the account is created relative to Java command?
    (2) Does the Java script need to be executed every time after a full shutdown?
    (2a) Is there a service I can find in MSCONFIG to verify the right stuff is working?
    (2b) What file is created/updated by the Java script ImapIdProxy.jar so I can verify that?

     
  • Anonymous

    Anonymous - 2010-08-04

    1. Yes, whatever you do, TB has to be set to talk to an IMAP server. ImapIdProxy is a proxy, not a protocol converter (which is not possible between IMAP and POP3 anyway).
    2. It's better if the Java process is already running when you create the account.
    3. The Java process must be running whenever you want to use the proxy, which pretty much means all the time TB is running. So might as start it at boot.
    4. Sorry, I run Linux, so I don't know how to check if a service is running, or to start it.
    5. It will create a .log and a .lck file in the directory containing the JAR file when running.

    Here are my setttings in TB:

    Server type: IMAP
    Server name: localhost Port 9143
    User name: full Yahoo email address
    Connection security: None
    Authentication: password, insecure (don't worry about this, it's only on localhost that it's in plaintext)

    The autosetup is unlikely to detect port 9143 so you may have to stop the scan and enter the Server name and Port manually.

    It may detect that port 465 on smtp.yahoo.com is available. This is good, it means you can relay your mail via Yahoo and your mail will be sent out via Yahoo instead of your ISP and less likely to be labelled as spam.

     
  • Paul Sheldon

    Paul Sheldon - 2010-08-04

    Greenpossum: Thanks for trying to help. Still no joy. Same error - connection refused. Here are account server settings.
    Server Type: IMAP Mail Server
    Server Name: localhost Port: 9143
    User Name: p----n@yahoo.com (actual Yahoo test account name inserted)
    Connection security: None
    Authentication method: Password, transmitted insecurely

    As soon as Yahoo is mentioned when setting up account, TB wants to set up POP3 account. So I removed account and started over using an email address that included imap. That seemed to allow an imap server configuration. The username above is the name I can send mail to as a test.

     
  • Anonymous

    Anonymous - 2010-08-04

    Connection refused usually means the peer (in this case the proxy) is not running. Do you actually have it running on your local machine? In rare circumstances it could be firewall settings. But first check that you are running the JAR file on your machine. There should be a log file in the directory and it should contain messages about startup, and if you manage to connect, details about the connection.

     
  • Paul Sheldon

    Paul Sheldon - 2010-08-04

    Greenpossum: Can you feel my red face? I restarted proxy server and now TB works fine receiving mail. Sending/replying is another problem. Service is a bit flaky there - sometimes it works, sometimes not.

     
  • Anonymous

    Anonymous - 2010-08-05

    Sending mail via smtp.yahoo.com:465 works fine for me. Strictly speaking this is not an ImapIdProxy issue since that data doesn't go through it, but I will comment a bit on this:

    Remember any mail that you send via Yahoo's SMTP server should have a From: of your Yahoo account. Yahoo is entitled to reject any email relayed through it that doesn't come from a Yahoo account name. You can ensure this by using Yahoo's SMTP server only for the Yahoo account in TB.

    You could also continue to relay your outgoing mail via your ISP, as generally ISP's allow customers to put whatever From line they want as long as you are on their network. The advantage of going through Yahoo's SMTP server is when you are a road warrior.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.