info-gnus-english
[Top][All Lists]
Advanced

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

Re: Conditionally point to a different IMAP server (home/work)


From: Sébastien Vauban
Subject: Re: Conditionally point to a different IMAP server (home/work)
Date: Tue, 28 Dec 2004 17:49:50 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) Hamster/2.0.5.5

Reiner,

>> I'd like help to conditionally configure the address of my IMAP
>> server, depending on the fact I'm at work or at the office.
>
> You want backquote ` and comma ,:
>
> (setq gnus-secondary-select-methods
>       `((nnml "")
>       (nnimap ""
>               (nnimap-address
>                ,(cond ((string= (upcase (system-name)) "PC3701")
>                        "169.51.86.39")
>                       (t
>                        "mail.mywork.com"))))))

I works like a charm. Exactly what I wanted!  Muchas gracias for
your precious help...

Another question, then: is it possible to apply the same
principle for the `.mailcap' file (use at work IE as the
browser, and Maxthon at home)?

    ,----[ .mailcap -- maps MIME types to external viewers ]
    | 
    | application/pdf; "C:/Program Files/Internet Explorer/IEXPLORE.exe" %s
    | image/*; "C:/Program Files/Internet Explorer/IEXPLORE.exe" %s
    | text/html; "C:/Program Files/Internet Explorer/IEXPLORE.exe" %s
    | 
    | 
    | # The following SHOULD work under XP, but DOES NOT!
    | # application/*; start "" %s
    | # archive/*; start "" %s
    | # audio/*; start "" %s
    | # image/*; start "" %s
    | # text/html; start "" %s
    `----

Best regards,
  Sébastien

-- 
Sébastien Vauban


reply via email to

[Prev in Thread] Current Thread [Next in Thread]