Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: How to automate email retrieval
- To: tlug@example.com
- Subject: Re: How to automate email retrieval
- From: Venkatesh Raghavan <raghavan@example.com>
- Date: Fri, 16 Mar 2001 12:09:43 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=iso-2022-jp
- Organization: OCU
- References: <E284BBED5A93D211987D00805F85B499443676@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <j0K9KB.A._3F.sTYs6@example.com>
- Resent-Sender: tlug-request@example.com
Hi, Thanks for the tip. Wrote an nkf filter for procmail which works fine for me. Attaching the fiter file just in case someone else may need to use it. Cheers Raghavan Osaka City University --------------procmail nkf filter------------------------- :0 * ^Content-Type:[ ^I]*text/plain[ ^I]*;[ ^I]*charset="?iso-2022-jp"? * ^Content-Transfer-Encoding:[ ^I]*[78]bit { :0 fw | nkf -e -m :0 Afhw | formail -I "Content-Type: text/plain; charset=euc-jp" :0 Afhw | formail -I "Content-Transfer-Encoding: 8bit" } :0 * ^Content-Type:[ ^I]*text/html[ ^I]*;[ ^I]*charset="?iso-2022-jp"? * ^Content-Transfer-Encoding:[ ^I]*[78]bit { :0 fw | nkf -e -m :0 Afhw | formail -I "Content-Type: text/html; charset=euc-jp" :0 Afhw | formail -I "Content-Transfer-Encoding: 8bit" } :0 * ^Content-Type:[ ^I]*multipart/mixed[ ^I]*;"? * ^(From|Subject): .*=\?iso-2022-jp\? { :0 fw | nkf -e -m :0 Afhw | formail -I "Content-Transfer-Encoding: 8bit" } :0 * ^Content-Type:[ ^I]*message/rfc822[ ^I]*;"? { :0 fw | nkf -e -m :0 Afhw | formail -I "Content-Type: text/html; charset=euc-jp" :0 Afhw | formail -I "Content-Transfer-Encoding: 8bit" } --------------------------------------------------------------------- "Doughty, Matt" wrote: > It is possible to write a filter rule in procmail that will translate the mail before sorting > using nkf. You can find examples of this sort of rule in the procmailex man page. > > hope that helps > > Matt Doughty BOT BSC Japan > > -----Original Message----- > From: Venkatesh Raghavan [mailto:raghavan@example.com] > Sent: 13”N3??15“u 14:46 > To: tlug@example.com > Subject: Re: How to automate email retrieval > > Hi all, > > Thanks for your responses. Further comments > in the quoted text below. > > "Scott M. Stone" wrote: > > > On Wed, 14 Mar 2001, Venkatesh Raghavan wrote: > > > > > When I do fetchmail on my from my linux client > > > Japanese characters do not get displayed > > > correctly (mojibake again). My mailspool on the > > > mailservers contains messages that are not euc-jp > > > > > > Is there a way of converting the messages to euc-jp encoding > > > while doing fetchmail, like piping to nkf. > > > > might want to also check and make sure you're using the Japanified version > > of fetchmail... there is a port, and I would think that it probably > > addresses this already. > > Can't find the Japanified version. The Japanese install document > available at http://www.fkimura.com/fetchmail0.html does not mention > about the Japanified version either. > > Shimpei Yamashita wrote: > > > Some people have reported problems in the past with older versions of > > fetchmail. Upgrading fetchmail seemed to help. I use fetchmail 5.3.8 and have > > no problems with Japanese mail. > > My version was 5.5.2. tried with the 5.7.4 too. > > Gomez Noguera David Eduardo wrote: > > > I dont know if my reply got to the list, but since i didnt see it, i supose it > > didnt. > > so here i go again :) > > try procmail. > > later you might find procmail usefull for another bucnhc of tasks. > > > > Tried invoking fetchmail through procmail as shown below > > > fetchmail -m "/usr/bin/procmail -f - " > > but this does not solve the problem. > > Japanese characters are displayed correctly after converting my > local mailspool to euc-jp using nkf after fetching the mail. > But this will not allow reading my japanese mail as soon as they > are fetched. > > Looking for some further suggestions. > > Thanks in advance. > > Raghavan > Osaka City University
- References:
- RE: How to automate email retrieval
- From: "Doughty, Matt" <DoughtyM@example.com>
Home | Main Index | Thread Index
- Prev by Date: sendmail relay
- Next by Date: Re: Linux-to-Linux copying?
- Prev by thread: RE: How to automate email retrieval
- Next by thread: ADSL and Linux
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links