[asterisk-users] Re: Voicemail IMAP
Forrest Beck
jonforrest.beck at gmail.com
Thu Jan 11 20:02:04 MST 2007
OK. I needed to remove the flags from the string. So I modified
app_voicemail.c and recompiled.
It is working now by, not using the flags to login.
It logs in as: ares.school.da.org:143/imap/user=fbeck}INBOX
4587 if (strlen(authuser) > 0) {
4588 snprintf(tmp, sizeof(tmp),
"{%s:%s/imap/authuser=%s/%s/u
ser=%s}",imapserver,imapport,authuser,imapflags,vms->imapuser);
4589 } else {
4590 snprintf(tmp, sizeof(tmp),
"{%s:%s/imap/user=%s}",imapse rver,imapport,vms->imapuser);
In apps/ I modified app_voicemail.c line 4590 and removed "/%s" after /imap.
Then I removed ",imapflags " after imapport.
My next hurdle is the mailbox format. It's not mbx, and crashes
asterisk after creating the mail message.
Thanks.
On 1/11/07, Forrest Beck <jonforrest.beck at gmail.com> wrote:
> Thanks Ray. I also noticed in some a post reply
> http://www.mail-archive.com/asterisk-users@lists.digium.com/msg169259.html
> that there was a problem with the trailing options /. Is there a work
> around for removing the trailing /? I too am having a problem with
> it.
>
> Doesn't Work: {ares.school.da.org:143/imap//user=fbeck}INBOX
> Works: {ares.school.da.org:143/imap/user=fbeck}INBOX
>
> Thanks again!
>
>
> On 1/11/07, Forrest Beck <jonforrest.beck at gmail.com> wrote:
> > I know some of this doesn't belong on this list, but I am just
> > including it for problem history.
> >
> > I am trying to setup IMAP Voicemail with our email server.
> >
> > We are using a non-standards based groupware server called FirstClass.
> > The server has some built in support for IMAP.
> >
> > My problem seems to be that the authuser flag is not supported.
> >
> > When I use mtest in the imap toolkit to connect to the FirstClass
> > server, and input this as the Mailbox to connect to:
> >
> > {ares.school.da.org:143/imap/authuser=admin//user=fbeck}Inbox
> >
> > mtest replies:
> >
> > [Trying IP address [10.11.5.253]]
> > [FirstClass IMAP4rev1 server v8.262 at mail.ares.school.da.org ready]
> > ?Can't do /authuser with this server
> >
> > When I try to connect to the mailbox:
> > {ares.school.da.org:143/imap/user="fbeck"}Inbox
> >
> > I am prompted with a password which is accepted.
> >
> > mtest response is:
> > IMAP4rev1 (RFC 3501) server ares.school.da.org
> > Mutually-supported SASL mechanisms: CRAM-MD5
> > Supported standard extensions:
> > Access Control lists (RFC 2086)
> > Multiple namespaces (RFC 2342)
> > Extended UID behavior (RFC 2359)
> > Implementation identity negotiation (RFC 2971)
> > LIST children announcement (RFC 3348)
> > Supported draft extensions:
> >
> > Notice I also had to eliminate the flags and authuser sections of the URL.
> >
> > So my question is.....
> >
> > Has anyone found a way to include the IMAP username and password in
> > the users mailbox string? something like 1201 =>
> > 1201,Joe,email,,imapuser=joe|imappassword=somethingsecret ?
> >
> > I know all my users email passwords, as they have to change it through us...
> >
> > Thanks all.
> >
>
More information about the asterisk-users
mailing list