Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

hotkey macro to move emails to spam folder.

238 views
Skip to first unread message

m...@benjaminarai.com

unread,
Jul 20, 2006, 5:23:01 PM7/20/06
to
Hi,

I want to make a macro that when I hit a key when a email is selected
in the index it will automatically move the email from the the current
folder to the "Spam" folder. Currently I have to select the email,
copy the email to the Spam directory, and finally delete the email in
the current folder. A macro that could do these three things would be
very helpful.

Does anybody know of a macro that does this? I would write it myself
but I cannot find any decent examples.

Benjamin Arai
m...@benjaminarai.com
http://www.benjaminarai.com

m...@benjaminarai.com

unread,
Jul 20, 2006, 5:55:36 PM7/20/06
to
To answer my own question:

folder-hook . 'macro pager S "<save-message>=.Trash \r" "move message
to trash"'
folder-hook . 'macro index S "<save-message>=.Trash \r" "move message
to trash"'
folder-hook +Trash bind index d delete-message

This works for me. I am using Maildir, result may vary depending on
mail store.

Alan Connor

unread,
Jul 20, 2006, 8:03:17 PM7/20/06
to
On comp.mail.mutt, in <1153430581.3...@h48g2000cwc.googlegroups.com>, "m...@benjaminarai.com" wrote:
> Path: text.usenetserver.com!atl-c01.usenetserver.com!news.usenetserver.com!atl-c05.usenetserver.com!news.usenetserver.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail
> From: m...@benjaminarai.com
> Newsgroups: comp.mail.mutt
> Subject: hotkey macro to move emails to spam folder.

Not a problem.

> Date: 20 Jul 2006 14:23:01 -0700
> Organization: http://groups.google.com
> Lines: 16
> Message-ID: <1153430581.3...@h48g2000cwc.googlegroups.com>
> NNTP-Posting-Host: 172.29.52.47

DNS shows no such IP in existence.

$ whois 172.29.52.47

OrgName: Internet Assigned Numbers Authority
OrgID: IANA
Address: 4676 Admiralty Way, Suite 330
City: Marina del Rey
StateProv: CA
PostalCode: 90292-6695
Country: US

NetRange: 172.16.0.0 - 172.31.255.255
CIDR: 172.16.0.0/12
NetName: IANA-BBLK-RESERVED
NetHandle: NET-172-16-0-0-1
Parent: NET-172-0-0-0-0
NetType: IANA Special Use
NameServer: BLACKHOLE-1.IANA.ORG
NameServer: BLACKHOLE-2.IANA.ORG
Comment: This block is reserved for special purposes.
Comment: Please see RFC 1918 for additional information.

<snip>

What's going on here? Is that IP a complete forgery?

> Mime-Version: 1.0
> Content-Type: text/plain; charset="iso-8859-1"
> X-Trace: posting.google.com 1153430586 30208 127.0.0.1 (20 Jul 2006 21:23:06 GMT)
> X-Complaints-To: groups...@google.com
> NNTP-Posting-Date: Thu, 20 Jul 2006 21:23:06 +0000 (UTC)
> User-Agent: G2/0.2
> X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4,gzip(gfe),gzip(gfe)
> Complaints-To: groups...@google.com
> Injection-Info: h48g2000cwc.googlegroups.com; posting-host=172.29.52.47; posting-account=LH9qew0AAAATMsES6QkRlBAIOBK9fEvM
> Xref: usenetserver.com comp.mail.mutt:136120
> X-Received-Date: Thu, 20 Jul 2006 17:23:07 EDT (text.usenetserver.com)

<article not downloaded:
http://slrn.sourceforge.net/docs/README.offline>

I just can't see anyone who uses Mutt choosing to use google to
access the Usenet.

It doesn't make any sense. Someone who used google to access the
Usenet would use Yahoo or Hotmail web interfaces to send mail
with.

And, as you can see above, he is using Linux. I don't know
anyone who uses Linux that posts through google who isn't a
troll. Generally pretty nasty ones. They do it only because
google makes sockpuppet creation so easy. The rest of the time
they use slrn or tin or, less commonly, one of the better
graphical newsreaders. And often, leafnode.

Nor does leaving a name out of the From header make sense
for a newbie. 99% of the examples they see on the Usenet
have a name. Troll's don't like them because they make
them more identifiable. With just an email address they
can change a single character in it and no one will even
notice, yet google will now consider them to be a different
person and create a new posting history in the Archives at
http://groups.google.com/advanced_group_search

Therefore, I have to conclude that this person is a troll,
posting with a cheap google sockpuppet because they know
that no one here would help them if they revealed one of the
psuedo-identities that they usually post with.

Here's the ticket: Post using a regular newsreader/newsserver and
put a name in your From header.

Or a whole lot of the best people on the Usenet aren't even going
to look at your articles.


Alan

--
See my headers.

Troy Piggins

unread,
Jul 20, 2006, 8:46:58 PM7/20/06
to
* m...@benjaminarai.com wrote:
> Hi,

> I want to make a macro that when I hit a key when a email is selected
> in the index it will automatically move the email from the the current
> folder to the "Spam" folder. Currently I have to select the email,
> copy the email to the Spam directory, and finally delete the email in
> the current folder. A macro that could do these three things would be
> very helpful.

Instead of copying it, why don't you save it?

> Does anybody know of a macro that does this? I would write it myself
> but I cannot find any decent examples.

macro index d "s=trash\n<sync-mailbox>" "move message to trash"
macro pager d "s=trash\n<sync-mailbox>" "move message to trash"
macro index S "s=spam\n<sync-mailbox>" "move message to spam"
macro pager S "s=spam\n<sync-mailbox>" "move message to spam"

--
Troy Piggins : "My karma just ran over my dogma"
,-o
o ) Ubuntu linux 6.06 http://ubuntu.com RLU#415538 http://counter.li.org
`-o uptime: 10:46:00 up 16 days,13:27,2 users,load average:0.00,0.00,0.00

Message has been deleted

Jeroen Valcke

unread,
Jul 24, 2006, 6:06:24 AM7/24/06
to
Hi,

On Thu, 20 Jul 2006 14:55:36 -0700, me wrote:
> To answer my own question:
>
> folder-hook . 'macro pager S "<save-message>=.Trash \r" "move message
> to trash"'
> folder-hook . 'macro index S "<save-message>=.Trash \r" "move message
> to trash"'
> folder-hook +Trash bind index d delete-message
>
> This works for me. I am using Maildir, result may vary depending on
> mail store.

I have almost the same macro definition. However I was missing the
<save-message> (or <sync-mailbox) command. Or these necessary?

Also when I execute my macro mutt will ask me
"Append messages to imap://imap.fw.belnet.be/INBOX/trash?([yes]/no):"
Do you have the same behaviour?
How can I solve this so that mutt automatically appends the message?

I didn't used to have this 'append message' question on mutt version
1.5.6. Apparantly upgrading to version 1.5.11 introduced this
inconvenience.

-Jeroen-

Brendan Cully

unread,
Jul 24, 2006, 9:09:06 PM7/24/06
to
Jeroen Valcke <jer...@noSPM.be> writes:

> Hi,
>
> On Thu, 20 Jul 2006 14:55:36 -0700, me wrote:
>> To answer my own question:
>>
>> folder-hook . 'macro pager S "<save-message>=.Trash \r" "move message
>> to trash"'
>> folder-hook . 'macro index S "<save-message>=.Trash \r" "move message
>> to trash"'
>> folder-hook +Trash bind index d delete-message
>>
>> This works for me. I am using Maildir, result may vary depending on
>> mail store.
>
> I have almost the same macro definition. However I was missing the
> <save-message> (or <sync-mailbox) command. Or these necessary?
>
> Also when I execute my macro mutt will ask me
> "Append messages to imap://imap.fw.belnet.be/INBOX/trash?([yes]/no):"
> Do you have the same behaviour?
> How can I solve this so that mutt automatically appends the message?

unset confirmappend

Claude S. Sutton

unread,
Aug 27, 2006, 10:30:30 AM8/27/06
to
On Mon, 24 Jul 2006 12:06:24 +0200, Jeroen Valcke wrote:


> Also when I execute my macro mutt will ask me
> "Append messages to imap://imap.fw.belnet.be/INBOX/trash?([yes]/no):"
> Do you have the same behaviour?
> How can I solve this so that mutt automatically appends the message?
>
> I didn't used to have this 'append message' question on mutt version
> 1.5.6. Apparantly upgrading to version 1.5.11 introduced this
> inconvenience.
>
> -Jeroen-

Do you have:

set noconfirmappend

in your muttrc file?

CSSJR

0 new messages