[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Mutt Configuration



something like this

set imap_user="user_name"
set imap_pass="pass"
bind index "\Ca" 'imap-fetch-mail'
set folder={exchange_ip}
set spoolfile={exchange_ip}INBOX
fcc-hook ~A {exchange_ip}"Sent Items"
set copy=yes
# ldap stuff
set query_command = "/usr/local/bin/ldap.pl '%s'"
bind editor "\t" complete-query
EOF

ldap search script:
#!/usr/bin/perl

              use strict;
              use Net::LDAP;

              my $ldap_server = "lda_server";
              #my $BASEDN = "ou=your,o=dn, c=*"; 
              my $BASEDN = "ou=your,o=dn"; 

              my @fields = qw(cn mail sn givenname);

              my $ldap = Net::LDAP->new($ldap_server) or die "$@";

              $ldap->bind;

              my @result;

              foreach my $ask_for (@ARGV) {
                  my $query = join '', map { "($_=$ask_for*) " } @fields;
                  my $mesg = $ldap->search(base => $BASEDN, filter =>
"(|$query)");
                  $mesg->code && die $mesg->error;
                  foreach my $entry ($mesg->all_entries) { 
                      my $mail = $entry->get_value('mail');
                      my $name = $entry->get_value('givenName') . " " .
              $entry->get_value('sn');
                      my $telephone = $entry->get_value('telephoneNumber');
                      push(@result, "$mail\t$name\t$telephone");
                  }
              }
              print "LDAP query: found ", scalar(@result), "\n";
              print join "\n", @result;

              exit 1 if ! @result;

              $ldap->unbind;

Marcin Kurc
CAD Systems Administrator
Cooper-Standard Automotive 

-----Original Message-----
From: Bannerman, Israel [mailto:Israel.Bannerman@mfn.com]
Sent: Monday, March 11, 2002 10:20 AM
To: debian-user@lists.debian.org
Subject: Mutt Configuration


To all:

I recently just installed Mutt 1.3.27-4 and I want pull my email off of an
Exchange server with IMAP enabled. How would I configure Mutt for this and
what would be the proper steps or procedures in configuring Mutt for IMAP
usage with an Exchange server?


Thank you,
-Israel


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



Reply to: