Store mail local and view with several mail clients...
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Store mail local and view with several mail clients...
Owkay, in the past, I had some problems with email, so I'd like to store my mail in one directory and be able to view it with several mail clients from that local dir.
Fetchmail is probably the best solution as it does just what you ask for and it is a rock solid program that is widely used, so getting support (if needed) is usually just a quick Google search away.
yes, well I googled my way through and it seems that fetchmail stores the emails in /var/spool/mail/<user>, isn't it possible to change this directory to somewhere in my homedir?
Another thing, how do you set up your mail client to read the mails from this local dir (lets say kmail)?
I have never used Kmail, but isn't there some sort of account "local" account type (as opposed to IMAP or POP3)? There are several possibly types, like UNIX mbox format, Maildir, local delivery and so on.
yes, but I can't seem to figure out what this fields stand for:
locking method (choice between procmail, Mutt dotlock, Mutt dotlock privileged, FCNTL, None
it's how you want to lock the mbox while you use it, most clients have their own way, kmail just lets you choose, depending upon what permissions you have and preference.
i prefer fcntl myself, since virtually everything supports this as a standard, so if a time comes where you write your own scripts to play with your mail, it's supported nicely
ok, so I filled in the fields, I mailed myself and managed to get it using fetchmail. Then I tried to read it using kmail, but kmail doesn't notice the new mail. Not even when I explicitly ask him to look (File -> Check Mail).
When I copy an mail I had previously to /var/mail/<username> , then it does receive... how do I resolve this?
How is your fetchmail setup? I have two different setups - on my laptop I have fetchmail setup to deliver mail using procmail (actually copying the files to ~/mail/mbox). On my desktop it uses standard local delivery as I have an MTA for local use installed. This means fetchmail connects to my own machine and delivers the mails to username@localhost, so they end up in my /var/spool/mail/$USER directory.
All this is pretty easy to set up using fetchmailconf, which comes with fetchmail.
the only thing i've set up is fetchmail, nothing else (with fetchmailconf). Can you maybe post your procmail config file? This way, I could be able to put my mail in my home dir and maybe kmail is able to read that mbox file...
I noticed another option in kmail, 'local maildir'. Does anybody know what this means?
...and here is my .fetchmailrc (edited of course):
Code:
# Configuration created Thu May 6 00:59:47 2004 by fetchmailconf
set postmaster "recipent@mycomputername.com"
set bouncemail
set no spambounce
set properties ""
poll pop.mymailprovider.com with proto POP3
user 'remoteusername' there with password 'yeahasifidpostthat' is 'localusername' here options fetchall
mda "/usr/bin/procmail -p -f %F"
Maildir is an excellent option and depending on your MTA setup that is possibly how your mail is delivered by fetchmail.
tnx, this worked... ok, now I can read my mail with KMail. Procmail wasn't set up properly.
The thing I wanted in the first place was having some central mailbox, which I can read my mail from with different mail clients (eg. KMail & Evolution & Sylpheed & Pine& ...). (see my first post)
How could I set this up, since Kmail now still moves my mail to its own dir.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.