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

Re: fetchmail questions



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 14 December 2001 11:59 pm, Stig Brautaset wrote:
> * Alec <alec1976nyc@yahoo.com> spake thus:
> > Hi
> >
> > Is it possible to get fetchmail to dump messages from my yahoo account
> > into, say "~/yahoo", instead of mixing it with the other mail in
> > "/var/mail/alec".
>
> Not that I know of, as fetchmail delivers the mail it fetches from your
> yahoo account to your local MTA (mail transfer agent -- in your case,
> probably Exim) for further delivery. Exim puts your mail in
> /var/mail/alec for collection.
>

exim doesn't have to - its not to difficult to alter /etc/exim/exim.conf and 
create a transport to deliver messages to a mbox called ~/yahoo or a maildir 
called ~/yahoo.  

Its worth spending a bit of time examining the exim.conf file and 
understanding how the sections work.  After the first seciton which defines 
most of the global options go to with the section on directors and see how a 
message (to be delivered locally) would be compared with director one by one 
until one that matches is found - and which then specifies a transport to 
finally deliver it.

Look at the transports  -particularly "local-delivery:" and see how it uses 
appendfile to add it to the /var/spool/mail/x{local-part} file.  You can 
easily create your own transport to write into /home/{local-part}/yahoo - and 
then create a director which detects the message (for instance say a special 
user "xyz" use a "local_parts = xyz" )and chooses the right transport.

In fetchmail you would then "poll yahoo mail" [don't know the exact form for 
doing this] and then say something like "user me there is xyz here"

For the fancy options look at the exim specification under the documentation 
section at www.exim.org.

- -- 

  Alan - alan@chandlerfamily.org.uk
http://www.chandlerfamily.org.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8Gp2h1mf3M5ZDr2kRAmFUAJ0fuKJ+YyqtQlSVcq2LV3cM7E+f/gCfZXFF
85nRvEJoSpyvXOyeDWxMwkA=
=gdk+
-----END PGP SIGNATURE-----



Reply to: