Hello,
I have a public standard mailserver "vserver1" and my Intranet Server
"samba3" download the messages from there with fetchmail. After this I
read the messages from my local IMAP server.
But now, if I get spam, I like to upload them back to "vserver1" and
tried following folder hook and macro:
----[ '~/.mutt/hook-folder' ]-------------------------------------------
########################################################################
#
# folder-hook [!]<pattern> <command>
#
########################################################################
folder-hook . 'set strict_threads=yes; \
set sort_re=yes; \
set
reply_regexp="^(re([\\[0-9\\]+])*|aw):[ \t]*"; \
source ~/.mutt/security.pgp.unset; \
set display_filter=""; \
my_hdr From: Michelle Konzack
<michelle.konzack@xxxxxxxxxxxxxxx>; \
macro generic <F5> ":set
delete=yes\ns=.100_spam/\n\n:set delete=ask-yes\n"; \
macro index <F5> ":set
delete=yes\ns=.100_spam/\n\n:set delete=ask-yes\n"; \
macro pager <F5> ":set
delete=yes\ns=.100_spam/\n\n:set delete=ask-yes\n"'
#=======================================================================
folder-hook .Business 'source ~/.mutt/security.pgp.private; \
my_hdr Fcc: =.Business/; \
my_hdr From: Michelle Konzack
<michelle.konzack@xxxxxxxxxxxxxxx>'
folder-hook .Linux 'source ~/.mutt/security.pgp.linux; \
my_hdr Fcc: =.Linux/; \
my_hdr From: Michelle Konzack
<linux4michelle@xxxxxxxxxxxxxxx>'
<snip>
folder-hook .ML_debian 'source ~/.mutt/security.pgp.debian; \
my_hdr Fcc: =.ML_debian/; \
my_hdr From: Michelle Konzack
<linux4michelle@xxxxxxxxxxxxxxx>; \
macro generic <F5> ":set
delete=yes\ns
imaps://a-debian.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"; \
macro index <F5> ":set
delete=yes\ns
imaps://a-debian.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"; \
macro pager <F5> ":set
delete=yes\ns
imaps://a-debian.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"'
folder-hook .ML_devel 'source ~/.mutt/security.pgp.devel; \
my_hdr Fcc: =.ML_devel/; \
my_hdr From: Michelle Konzack
<linux4michelle@xxxxxxxxxxxxxxx>; \
macro generic <F5> ":set
delete=yes\ns
imaps://a-devel.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"; \
macro index <F5> ":set
delete=yes\ns
imaps://a-devel.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"; \
macro pager <F5> ":set
delete=yes\ns
imaps://a-devel.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"'
folder-hook .ML_linux 'source ~/.mutt/security.pgp.linux; \
my_hdr Fcc: =.ML_linux/; \
my_hdr From: Michelle Konzack
<linux4michelle@xxxxxxxxxxxxxxx>; \
macro generic <F5> ":set
delete=yes\ns
imaps://a-linux.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"; \
macro index <F5> ":set
delete=yes\ns
imaps://a-linux.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"; \
macro pager <F5> ":set
delete=yes\ns
imaps://a-linux.ml4michelle@xxxxxxxxxxxxxxxxxxxxxxxx/INBOX.Learn_IS_Spam\n\n:set
delete=ask-yes\n"'
folder-hook .ML_mail 'source ~/.mutt/security.pgp.mail; \
my_hdr Fcc: =.ML_mail/; \
my_hdr From: Michelle Konzack
<linux4michelle@xxxxxxxxxxxxxxx>'
<snip>
------------------------------------------------------------------------
it does not mather, HOW I write the three lines, they do not still work.
Also I have tried to "set imap_pass=" but it does not work.
Any suggestions?
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/> Michelle Konzack
<http://www.can4linux.org/> c/o Vertriebsp. KabelBW
<http://www.flexray4linux.org/> Blumenstrasse 2
Jabber linux4michelle@xxxxxxxxxxxxx 77694 Kehl/Germany
IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947
ICQ #328449886 Tel. FR: +33 6 61925193
Attachment:
signature.pgp
Description: Digital signature