|
Configuring IMAPNot all of you use POP3 for mail reading mail, some of you, like me, use IMAP. I'll explain how this is done with Emacs.There's one thing you need to be aware of, and that is that the IMAP handler in Gnus does not use a POP3 server for incoming mail, instead it relies on you having the mail box on the server running IMAP. This means that you have to use external programs for fetching the mail before Gnus handles it, one such program is fetchmail. To read mail from an IMAP server you need to know the name of the server, your username and your password. Both the username and password will be asked by Gnus each time your restart after adding an IMAP server, however we don't want to answer them each time. Gnus will read the content of the file .authinfo in your home directory to find servers, usernames and their passwords. For instance let's create this file with some content, we'll pretend we got our mail on a server called imap.mail.server, our username is imap.user and password is secret. The file will then look like this:
I also suggest you change the permissions on the file to avoid any other users on the system to read it, you can do that by issuing the command
The next thing you should do is tell the IMAP program to filter out certain files on the server, usually you have your mail in a file called mbox, sometimes you keep them in a directory called mail. From what I've understand there's no defined standard for this so you just use what fits you. For instance we might configure IMAP to only show the mbox and any files in the mail directory, this leads to:
Now we're ready to add our very first IMAP server, first make sure you're in the Gnus group buffer. Press B to browse a foreign buffer. You'll first be asked for a backend, enter mmimap and press enter. Then enter the server name as the address and press enter. If everything works out succesfully you should be left with a list looking something like this:
Now for the last touch on IMAP groups, we want to split mails from the incoming mail box to various groups. All your incoming mail is usually put in /var/spool/mail/username where username is your login name on the IMAP server(The very same as used earlier), and we want to move this mail to our groups. We start by specifying were we get the mail:
Next we define the splitting rules for the mail, for instance:
Now you're ready for reading mail from both POP3 and IMAP and at the same time filtering out the bad mail. And remember "No Gnus is bad news". Comment ListThere are no comments. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||