[imp] Problem with Fetchmail

Jan Schneider jan at horde.org
Wed Jul 26 00:25:56 PDT 2006


Zitat von commedo <commedo at portal.ebdesk.com>:

> I've figure out the problem. I log in to IMP by selecting POP3 as mail
> server (because my mail server is a POP3 server) and of course user and
> password. I get my Inbox page after logging in. I set an external (POP3)
> account to fetch in Fetchmail account. I tried to fetch the mail and always
> get 0 new message although there are some new messages in the external mail
> server (I test it using telnet to its port 110). I'm curious and tried to
> debug the IMP code and finally found that IMP is succeed to retrieve mails
> from POP3 server BUT unable to save the message into my mail server using
> imap_append() and got error message "the method is unsupported in POP3
> server". I concluded that imap_append() is working for IMAP server only. And
> later I re-login to IMP by selecting IMAP server (after I installed
> COURIER-IMAP server) and got the Inbox page as like as I login by selecting
> POP3. And trying to fetchmail again. It's work now.
> Finally I conclude that the fetchmail is working if only if the
> installed/local mail server is an IMAP server because the retrieved mail is
> saved to local mailbox after retrieval using function that is compatible for
> IMAP only.
> I'm just worder why using this method? Are there no other ways to save
> retrieved mail into local mailbox?

No. But it's still a bug because you shouldn't have the option to  
fetch mails into your accout if using a POP3 server. Please create a  
ticket a bugs.horde.org.

> -----Original Message-----
> From: imp-bounces at lists.horde.org [mailto:imp-bounces at lists.horde.org] On
> Behalf Of Jan Schneider
> Sent: Selasa, 25 Juli 2006 14:47 comm
> To: imp at lists.horde.org
> Subject: Re: [imp] Problem with Fetchmail
>
> Zitat von commedo <commedo at portal.ebdesk.com>:
>
>> Hi, I'm deploying Horde+IMP using qmail+vpopmail. I experienced that
>> fetchmail for external account is not working properly. I tried to debug
> the
>> IMP program (source code) and found that call of imap_append() function
> (in
>> function: IMP_Fetchmail::_addMessage(), file: horde/imp/lib/Fetchmail.php)
>> is always failed.
>> And I tried to create a simple code to ensure that the call of
> imap_append()
>> is failed as following:
>>
>> <?
>> $stream = imap_open("{192.168.50.41/pop3:110}","comm at test.com",
> "hallo456");
>>
>> $check = imap_check($stream);
>> print "Msg Count before append: ". $check->Nmsgs."\n";
>>
>> imap_append($stream,"{192.168.50.41/pop3:110}"
>>                    ,"From: commedo at test.com\r\n"
>>                    ."To: comm at test.com\r\n"
>>                    ."Subject: test - ".time()."\r\n"
>>                    ."\r\n"
>>                    ."this is a test message, please ignore\r\n"
>>                    );
>>
>> $check = imap_check($stream);
>> print "Msg Count after append : ". $check->Nmsgs."\n";
>>
>> imap_close($stream);
>>
>> ?>
>>
>> With the code, I experienced the same problem with fetchmail feature
> caused
>> by imap_append() function which is always failed.
>
> And what error message do you get?
>
> Jan.
>
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
>



Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the imp mailing list