* Srikrishan Malik <[email protected]> [06-24-14 23:30]: > On Tue, Jun 24, 2014 at 04:47:45PM -0400, Patrick Shanahan wrote: > > * Srikrishan Malik <[email protected]> [06-24-14 02:02]: > > > I am using the inbuilt pop and smtp for gmail. > > > Is there a way to forward all received emails from pop server to > > > procmail instead of putting those to the spoolfile? > > > > Not directly using mutt, but a simple matter using fetchmail or another > > mail retrieval agent. I use fetchmail. > > Yeah, I shifted to that mode last night. > I tried to change code to call procmail after a mail is fetched, but > it does not seem that simple. I will try again when I get some time.
iiuc, mutt's internal pop is actually reading mail on the server somewhat similar to imap, ie: you do not really have a local copy stored, ie: mutt is not a MRA, but a mail reader/client. I guess you could pipe the current email to procmail for local storage, ie: | formail -ds procmail this would use the procmail recipies and store mail accordingly. But you can save or copy the current email to the file/directory of your choice, also ..... -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net
