<<< Date Index >>>     <<< Thread Index >>>

Re: mutt new mail notification



Hi,

On Wed, Jun 10, 2009 at 11:15:43AM -0700, Brendan Cully wrote:
> On Wednesday, 10 June 2009 at 13:32, Christoph Ludwig wrote:
> > On Tue, Jun 09, 2009 at 05:47:09PM -0400, Paul Hoffman wrote:
> > > On Tue, Jun 09, 2009 at 06:51:15PM +0200, Christoph Ludwig wrote:
> > > > On Tue, Jun 09, 2009 at 10:15:04AM -0500, Kyle Wheeler wrote:
[...]
> > > > However, I have somewhat "strange" usernames. For instance, on one 
> > > > server in
> > > > the Windows domain "COMPANY" I have an account "christoph" that's 
> > > > associated
> > > > with the mailbox "christoph.ludwig". Exchange expects me therefore to 
> > > > log on
> > > > with the IMAP username "COMPANY/christoph/christoph.ludwig".
> > > > 
> > > > Due to the '/', I cannot put the username into the imaps-URL. That's no
> > > > problem as long as I want to check only one IMAP server with such a 
> > > > username
> > > > as I then simply set imap_user accordingly and state the "simple" 
> > > > usernames
> > > > explicitly as part of the imaps-URL on the remaining accounts. It is not
> > > > obvious (to me), though, how to deal with several IMAP accounts that 
> > > > have such
> > > > usernames.
> > > 
> > > What happens if you URL-encode the user name?
> > > 
> > > imaps://COMPANY%2Fchristoph%2Fchristoph.ludwig@xxxxxxxxxxx
> > 
> > mutt still complains that it cannot find host "COMPANY".
> 
> My vague recollection is that windows usernames are separated by
> backslashes. How about
> 
> imaps://COMPANY\\christoph\\christoph.ludwig@xxxxxxxxxxx/

great, that works! I was not aware that Exchange accepts both forward and
backward slashes as separators.

The other working solution is to set account-hook as suggested by Kyle.

However, that triggered two further questions:

1) Is there a way to define custom mailbox shortcuts so I don't have to type
in the full imaps URL every time I switch to a folder on the company server?
The only workaround I see after reading section 4.7 of the manual is to define
a number of aliases with fake addresses and make the folders on the company
server the default save folder for these aliases. However, this seems a crude
hack to me.

2) mutt checks for mail in the company mailbox only after I logged into the
mailbox at least once and therefore entered my password. Is there a way to
make mutt request the passwords for all accounts referenced in the mailboxes
list at program start? I don't want to put the passwords in a configuration
file.

Regards

Christoph