Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000483.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
11
12    <title>Status for Andrew DeFaria: Remaining PQA Issues/GNATS stripmime</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/000482.html" title="PQA Merge (Part II)" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000484.html" title="Forking in PerlTk" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
29             <div id="banner-inner" class="pkg">
30                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31                <h2 id="banner-description">Searchable status reports and work log</h2>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000482.html">&laquo; PQA Merge (Part II)</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000484.html">Forking in PerlTk &raquo;</a>
44                      </p>
45
46                      <a id="a000483"></a>
47                      <div class="entry" id="entry-483">
48                         <h3 class="entry-header">Remaining PQA Issues/GNATS stripmime</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Worked with Vinh's group and adjusting to life with the new Controller CQ Database. Wrote instructions for how to unsubscribe to some Broadcom email distribution lists</li>
53
54   <li>Documented how to install the new Clearquest Client Software</li>
55
56   <li>Coded stripmime filter for GNATS.</li>
57 </ul>
58                            </div>
59                            <div id="more" class="entry-more">
60                               <h2>Stripmime</h2>
61
62 <p>The script described above basically takes as input an email message. It then extracts the header portion and the body portion. It uses some CPAN modules (MIME::Base64 and MIME::Tools as well as MIME::Parser) to analyze the message and obtain the message "parts". Some transformations are performed on the header information and then it is written to stdout. For the plaintext part (if present) it will again write out the message to stdout Other, non-textual parts (AKA attachments) are written to a subdirectory based on the message name/number and a note is included to stdout indicating were to find the attachment.</p>
63
64 <p>The stripemime script placed in /tools/gnats/4.0/bin does the same thing except that attachments are disregarded and no mention of them are written to stdout. However there is an implicit assumption above that there does exist at least one plaintext version of the mail message. This need not be the case. I know, for example, when using Thunderbird I have the option of sending email as HTML, plain text or both. I tend to send both, which are  epresented in the raw email as MIME multipart with the first part being a plaintext version of the HTML, which is sent as the second multipart as HTML. However, if I were to select HTML Only I would not get the plaintext part.  Stripemime, as currently coded would generate a blank email message.</p>
65
66 <p>Also, on gnats-irva-3, could my shell be set to bash? I've tried to set it but I get permission denied. Also, I don't appear to have a home directory set to /home/adefaria for the gadefaria user?</p>
67
68 <p>Finally, MIME::Parser is not installed on gnats-irva-3:</p>
69
70 <div class="code"><pre>
71 gnats4@gnats-irva-3[+1035] bin/stripmime
72 Can't locate MIME/Parser.pm in @INC (@INC contains:
73 /tools/perl/5.004_04/SunOS/lib/sun4-solaris/5.00404
74 /tools/perl/5.004_04/SunOS/lib
75 /tools/perl/5.004_04/SunOS/lib/site_perl/sun4-solaris
76 /tools/perl/5.004_04/SunOS/lib/site_perl .) at bin/stripmime line 47.
77 BEGIN failed--compilation aborted at bin/stripmime line 47.
78 </pre></div>
79
80 <p>I had managed to install MIME::Parser on my Cygwin system using "perl
81 -MCPAN -e 'install MIME::Parser'"</p>
82                            </div>
83                         </div>
84                         <p class="entry-footer">
85                            <span class="post-footers">Posted by  on November 21, 2005  5:38 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000483.html">Permalink</a>
86                         </p>
87                      </div>
88
89                      
90
91                      
92                   </div>
93                </div>
94             </div>
95          </div>
96       </div>
97    </div>
98 </body>
99 </html>