Re: Mailcap entry for inline BMP?
On 2001-03-29 12:11:57, Bob Bell wrote: Unfortunately I can't use procmail because there it isn't in Cygwin yet and it don't compile OOTB (I am Cygwin on NT4). > You might try using emil in your procmailrc to convert uuencoded > files into MIME attachments. If that works, you should then be able to > deal with the BMP as a MIME attachments. As things currently stand, it > would just be treated as part of the message. > > On Thu, Mar 29, 2001 at 04:08:18PM +, malcolm.boekhoff ><[EMAIL PROTECTED]> wrote: > > Can some clever person please post a mailcap entry to deal with messages from > > Microsoft Outlook Express, where the sender has attached a BMP. > > > > The BMP kind of gets in-lined into the message, so that if you were reading it > > with OE you would see the picture (some kind of OLE stuff, I think). I.e. you > > don't have to explicitly open the attachment, you can see it in the preview > > window. > > > > The properties you get from OE are: > > > > --> Message properties start here <-- > > Received: from boekhoffm (BOEKHOFF_M [10.16.92.39]) by cloisters-exch.actfs.co.uk >with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) > > id G683370T; Thu, 29 Mar 2001 16:55:34 +0100 > > Message-ID: <000801c0b869$0bc7bc50$[EMAIL PROTECTED]> > > From: "Malcolm Boekhoff" <[EMAIL PROTECTED]> > > To: "me" <[EMAIL PROTECTED]> > > Subject: etst > > Date: Thu, 29 Mar 2001 16:58:06 +0100 > > X-Priority: 3 > > X-MSMail-Priority: Normal > > X-Mailer: Microsoft Outlook Express 5.00.2919.6600 > > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 > > > > > > > > > > > > > > begin 600 1.bmp > > M0DU6$@H``#8HD`$``"8"```!`!@``"`2"@#$#@``Q`X` > > M > > M > > M > > M > > M > > M > > M > > > > .. and loads more. > > --> Message properties end here <-- > > > > -- > Bob Bell <[EMAIL PROTECTED]> > - > "Linux represents a best-of-breed Unix, that is trusted in mission > critical applications, and -- due to it's open source code -- has > a long term credibility which exceeds many other competitive OS's." >-- Microsoft "Halloween" Document
Re: Procmail & user+ext@bla.com addresses
* Lars Hecking <[EMAIL PROTECTED]> [010329 19:15]: >> I can use a (folder)-hook to set my From: header and envelope from to >> [EMAIL PROTECTED] >> But how can I motivate procmail to filter my mail into >> /home/user/Maildir/muttusers >> if a mail to [EMAIL PROTECTED] comes back in? > What about > :0: > * ^TO_user+muttusers@her\.com > /home/user/Maildir/muttusers/ I think he was looking for a somewhat more general solution:) Maybe: :0: * ^TO_user+\/.*@her\.com `echo $MATCH | sed "s/@.*//"` Untested, of course. (You might have to escape the "+" in the second line, cannot remember the procmail regex syntax right now, too late:) -- christian r. mollsthe rain descended, [EMAIL PROTECTED] and the floods came
Re: regexp invalid range problem
On Thu, Mar 29, 2001 at 03:55:59PM +0200, HEGEDUS Ferenc wrote: > > Error in /h/d/dark/.muttrc, line 98: Invalid range end > It has something to do with locales. If you use LANG='C' it doesn't give error about the range end. Regards, Z. -- ^ { Peter BARABAS } { [EMAIL PROTECTED] } { [EMAIL PROTECTED] } $ {\n} ^ $me = 'Z0D'; $me_regexp = '/^(Z[03]D|q{Z0D})$/'; $ {\n} ^ @_o_pe_ra_tors_ = qw~q '' qq "" qx `` qw qr m // ?? qr s tr y~; $ {\n} ^ ^|`- _,- '\_ <-_-_-> ,/^ {$+$} :-) ::: ::: ::: : <- $ {\n}
macro trouble
Hi all, I was wondering if anyone could help me with this macro. I'm trying to pipe messages with patches in them through sed. But nothing I'm doing is working. Here's how I think it should look. # extract patch from email # sed command removes email signatures, macro index ,p '| sed \'N;/^\n-- $/,$d\' | (cd src/vim/src; patch)' What am I doing wrong? -- Justice keepeth the way of the innocent: but wickedness overthroweth the sinner. -- Proverbs 13:5 --
regexp invalid range problem
Hi I have a following line in my .muttrc: color body blue black [a-z] This causes: Error in /h/d/dark/.muttrc, line 98: Invalid range end This regex only work if i writing [a-b] Why? I tried " ' \ characters a lot. :) Thanks. d Ps: Mutt 1.3.15i (2001-02-12), debian woody
Re: Mailcap entry for inline BMP?
Yes, When you are reading that email, press v to find out what it tells you about the application type, something like: application/vnd.ms- So then you put this in .mailcap in your home directory: application/vnd.ms- ; /usr/local/bin/gimp %s; copiousoutput The above assumes that you have Unix OS and that you want to run gimp as a viewer. Hope that helps. EW On Thu, 29 Mar 2001, malcolm.boekhoff wrote: > > Can some clever person please post a mailcap entry to deal with messages from > Microsoft Outlook Express, where the sender has attached a BMP. > > The BMP kind of gets in-lined into the message, so that if you were reading it > with OE you would see the picture (some kind of OLE stuff, I think). I.e. you > don't have to explicitly open the attachment, you can see it in the preview > window. > > The properties you get from OE are: > > --> Message properties start here <-- > Received: from boekhoffm (BOEKHOFF_M [10.16.92.39]) by cloisters-exch.actfs.co.uk >with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) > id G683370T; Thu, 29 Mar 2001 16:55:34 +0100 > Message-ID: <000801c0b869$0bc7bc50$[EMAIL PROTECTED]> > From: "Malcolm Boekhoff" <[EMAIL PROTECTED]> > To: "me" <[EMAIL PROTECTED]> > Subject: etst > Date: Thu, 29 Mar 2001 16:58:06 +0100 > X-Priority: 3 > X-MSMail-Priority: Normal > X-Mailer: Microsoft Outlook Express 5.00.2919.6600 > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 > > > > > > > begin 600 1.bmp > M0DU6$@H``#8HD`$``"8"```!`!@``"`2"@#$#@``Q`X` > M > M > M > M > M > M > M > > .. and loads more. > --> Message properties end here <-- >
Re: Mailcap entry for inline BMP?
You might try using emil in your procmailrc to convert uuencoded files into MIME attachments. If that works, you should then be able to deal with the BMP as a MIME attachments. As things currently stand, it would just be treated as part of the message. On Thu, Mar 29, 2001 at 04:08:18PM +, malcolm.boekhoff <[EMAIL PROTECTED]> wrote: > Can some clever person please post a mailcap entry to deal with messages from > Microsoft Outlook Express, where the sender has attached a BMP. > > The BMP kind of gets in-lined into the message, so that if you were reading it > with OE you would see the picture (some kind of OLE stuff, I think). I.e. you > don't have to explicitly open the attachment, you can see it in the preview > window. > > The properties you get from OE are: > > --> Message properties start here <-- > Received: from boekhoffm (BOEKHOFF_M [10.16.92.39]) by cloisters-exch.actfs.co.uk >with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) > id G683370T; Thu, 29 Mar 2001 16:55:34 +0100 > Message-ID: <000801c0b869$0bc7bc50$[EMAIL PROTECTED]> > From: "Malcolm Boekhoff" <[EMAIL PROTECTED]> > To: "me" <[EMAIL PROTECTED]> > Subject: etst > Date: Thu, 29 Mar 2001 16:58:06 +0100 > X-Priority: 3 > X-MSMail-Priority: Normal > X-Mailer: Microsoft Outlook Express 5.00.2919.6600 > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 > > > > > > > begin 600 1.bmp > M0DU6$@H``#8HD`$``"8"```!`!@``"`2"@#$#@``Q`X` > M > M > M > M > M > M > M > > .. and loads more. > --> Message properties end here <-- > -- Bob Bell <[EMAIL PROTECTED]> - "Linux represents a best-of-breed Unix, that is trusted in mission critical applications, and -- due to it's open source code -- has a long term credibility which exceeds many other competitive OS's." -- Microsoft "Halloween" Document
Re: Procmail & user+ext@bla.com addresses
Ralf Hildebrandt writes: > I can use a (folder)-hook to set my From: header and envelope from to > [EMAIL PROTECTED] > But how can I motivate procmail to filter my mail into > /home/user/Maildir/muttusers > if a mail to [EMAIL PROTECTED] comes back in? What about :0: * ^TO_user+muttusers@her\.com /home/user/Maildir/muttusers/ ?
Procmail & user+ext@bla.com addresses
I can use a (folder)-hook to set my From: header and envelope from to [EMAIL PROTECTED] But how can I motivate procmail to filter my mail into /home/user/Maildir/muttusers if a mail to [EMAIL PROTECTED] comes back in? -- [EMAIL PROTECTED]innominate AG System EngineerDon't be afraid of what you see - Diplom-Informatiker be afraid of what you don't see! tel: +49.(0)7000.POSTFIX fax: +49.(0)30.308806-698
Re: "Randomly" change From: and signature using Macros
Ailbhe Leamy wrote: > However, I obviously expressed myself badly. What I actually want is > the ability to hit > ^foo > > and have it change the From and Sig to a pre-determined one, > presumably using a :set command. ^bar to change to a different > one. I'd prefer to be able to do this _after_ composing a message, but > will accept answers on how to do it in the index. I'm not sure about the signature being changed after composition by a keyboard macro, an example to change the "From:" address to '[EMAIL PROTECTED] (name)' using ^W : macro compose \cw '( \ [EMAIL PROTECTED] (name)' 'change to "From: name <[EMAIL PROTECTED]>"' I hope it helps! -- Mr. Wade -- Linux: The Choice of the GNU Generation
Re: "Randomly" change From: and signature using Macros
* Ailbhe Leamy [[EMAIL PROTECTED]] on [29-03-01] wrote: > However, I obviously expressed myself badly. What I actually want is > the ability to hit > ^foo > and have it change the From and Sig to a pre-determined one, > presumably using a :set command. ^bar to change to a different > one. I'd prefer to be able to do this _after_ composing a message, but > will accept answers on how to do it in the index. Here is a solution, provided you use vim as your editor. If you don't then the general idea should allow you to create a similar function for your own editor. :map ;f /-- dGo-- :r !/usr/games/fortune/^From:C \From: Brian Foley <[EMAIL PROTECTED]> :map ;g /-- dGo-- :r !/usr/games/fortune/^From:C \From: Brian Foley <[EMAIL PROTECTED]> the "\" in front of the second lines of both macros are line continuation characters, if they dont work then just remove them and join the two lines before you put them in your .vimrc. These will toggle between two set From: lines while you are composing and randomise the sig. It could be easily adapted to use fixed sigs as well, just change the !/usr/games/fortune bit to some fixed text (or a unique sig file). Setting the Reply-To: would also be trivial. This assumes a couple of things: 1. you already have a sig in the file with a "-- " seperator 2. you have edit_headers turned on 3. you don't have any other lines beginning with "From:" I hope this helps. But please note that I havent acutally tested any of this. Brian. P.S. This has nothing to do with your post, but here is another cool vim trick that I discovered on this list a while back, and which may be of interest to the rest of the group. Put the following in your .vimrc.mail (or whatever .vimrc you source while editing mail): " Give mutt's window a proper header when composing let i = 1 let line = getline(i) while (match(line, "To:") == -1 && line != "") let i = i + 1 let line = getline(i) endwhile if (line != "") let i = match(line, " ") + 1 let j = match(line, "<") - 1 if j == -2 let j = match(line, ",") endif if j == -1 let j = strlen(line) endif let len = j - i let address = strpart(line, i, len) let title = "Mail to " . address let title = substitute(title, " ", " ", "g") let title = substitute(title, "\"", "", "g") execute 'set titlestring=' . title execute 'set iconstring=' . title else execute 'set titlestring=Mutt' execute 'set iconstring=Mutt' endif execute 'set titleold=Mutt' This will give a meaningful title to your xterm window when you are composing mail. If anybody has the time to improve it (eg when you send mail to mulitple people) I would be interested!!! -- Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf Visit the Intervarsity Track & Field web-site: www.iv2001.com
How to get 'N' next to folder containing new messages?
I have messages marked "N" in +cygwin, +mutt, but these folders are marked with "N" in the folder viewer (the screen you get if you ""). I have +cygwin and +mutt in "mailboxes". Funny that "N" appears next to "mbox" and "postponed", but not the other mailboxes containing new messages. Note that I have ""'d the messages from +inbox (the "spoofile"). They are still marked with "N" after saving though.
Mailcap entry for inline BMP?
Can some clever person please post a mailcap entry to deal with messages from Microsoft Outlook Express, where the sender has attached a BMP. The BMP kind of gets in-lined into the message, so that if you were reading it with OE you would see the picture (some kind of OLE stuff, I think). I.e. you don't have to explicitly open the attachment, you can see it in the preview window. The properties you get from OE are: --> Message properties start here <-- Received: from boekhoffm (BOEKHOFF_M [10.16.92.39]) by cloisters-exch.actfs.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id G683370T; Thu, 29 Mar 2001 16:55:34 +0100 Message-ID: <000801c0b869$0bc7bc50$[EMAIL PROTECTED]> From: "Malcolm Boekhoff" <[EMAIL PROTECTED]> To: "me" <[EMAIL PROTECTED]> Subject: etst Date: Thu, 29 Mar 2001 16:58:06 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 begin 600 1.bmp M0DU6$@H``#8HD`$``"8"```!`!@``"`2"@#$#@``Q`X` M M M M M M M .. and loads more. --> Message properties end here <--
Re: "Randomly" change From: and signature using Macros
On (29/03/01 10:06), Wade A. Mosely wrote: > send-hook . "set from=\"`~/.mutt/selectfrom`\"" > (Note the use of backquotes for command substitution.) > set signature='~/.mutt/createsig|' This is lovely and I fully intend to use it, as soon as I write the appropriate scripts. However, I obviously expressed myself badly. What I actually want is the ability to hit ^foo and have it change the From and Sig to a pre-determined one, presumably using a :set command. ^bar to change to a different one. I'd prefer to be able to do this _after_ composing a message, but will accept answers on how to do it in the index. And then I shall write some help docs on Macros. I couldn't find anything I understood. Ailbhe -- Homepage: http://ailbhe.ossifrage.net/
Re: "Randomly" change From: and signature using Macros
Ailbhe Leamy wrote: > Subject: "Randomly" change From: and signature using Macros > > Is this possible? I can't find anything really useful using a Google > search. For the "From:" you could specify a shell script that outputs your desired "From:" address on stdout, then use a send-hook to call it. For example, if the script to generate your "From:" address is ~/.mutt/selectfrom (and is mode +x) you could: send-hook . "set from=\"`~/.mutt/selectfrom`\"" (Note the use of backquotes for command substitution.) For the signature, just specify the script with a pipe. If $signature ends with a pipe ('|'), it is treated as a shell command and its stdout is used as the signature. If you had a script ~/.mutt/createsig that delivered a random signature on stdout, then: set signature='~/.mutt/createsig|' Good luck. :) -- Mr. Wade -- Linux: The Choice of the GNU Generation
Re: "Randomly" change From: and signature using Macros
Ailbhe Leamy proclaimed on mutt-users that: > Is this possible? I can't find anything really useful using a Google > search. For your .sig, it can be a shell script that calls (say) fortune. For the from header, I suggest you use set envelope_from and a set of vim macros. -s -- Suresh Ramasubramanian + Wallopus Malletus Indigenensis mallet @ cluestick.org + Lumber Cartel of India, tinlcI EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
"Randomly" change From: and signature using Macros
Is this possible? I can't find anything really useful using a Google search. Ailbhe -- Homepage: http://ailbhe.ossifrage.net/
Re: mutt-qmail-procmail, cannot send mail
[EMAIL PROTECTED] proclaimed on mutt-users that: > i find this changing operation to another list-folder > a bit clumsy -c? choose from a list-, is there another way? Just press c, and then =foldername will take you to the folder called foldername > and a second question: how to take the reply to: address > as e.g. [EMAIL PROTECTED], not to bother a person > unwillingly by private email, you dont seem to mind:-) In most mailing lists, dont set a reply-to header. The list will add its own header. > #default folder hooks > folder-hook . set sort=threads > folder-hook . set signature=/tmp/sig.mallet > folder-hook . 'set attribution = "Using a large mallet, %n whacked out:"' > folder-hook . my_hdr From: [EMAIL PROTECTED] (Suresh Ramasubramanian) > folder-hook . my_hdr Reply-To: [EMAIL PROTECTED] (Suresh Ramasubramanian) > folder-hook . my_hdr Organization: The Lumber Cartel, India (tinlcI) > folder-hook . my_hdr X-Operating-System: `uname -mnrs` > > #mutt folder hooks > folder-hook mutt unmy_hdr reply-to > folder-hook mutt set sort=threads > folder-hook mutt set signature=/tmp/sig.mallet > folder-hook mutt 'set attribution="%n proclaimed on mutt-users that: "' > folder-hook mutt my_hdr From: [EMAIL PROTECTED] (Suresh Ramasubramanian) > folder-hook mutt my_hdr Organization: The Lumber Cartel, India (tinlcI) > folder-hook mutt my_hdr X-Operating-System: `uname -mnrs` ps - as for the "stormy weather train driver", spammers are stupid - so expecting them to speak any language grammatically (even their own language) would be expecting a bit too much :) -s -- Suresh Ramasubramanian + Wallopus Malletus Indigenensis mallet @ cluestick.org + Lumber Cartel of India, tinlcI EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin